mmm_clone EXT3-fs: Unrecognized mount option "nouuid" or missing value

687 views
Skip to first unread message

sbouli

unread,
Jul 2, 2010, 5:05:55 AM7/2/10
to MySQL Multi Master Manager Development
Hi,

First, I would like to thank you for your work, this software is a
huge help for me (coming from mssql).

I just setup a mmm cluster following the directives of http://mysql-mmm.org/mmm2:guide

and LVM (http://doc.ubuntu-fr.org/lvm#installation)

and now, after playing around with mmm_control, I try to use mmm_clone

so I switch offline db2 (non active master) and use the command :

#mmm_clone --host db1 --clone-mode master-master

I then get the error :
root@ns210898:/# mmm_clone --host db1 --clone-mode master-master
INFO: Checking destination directory '/mmm_restore'...
INFO: Directory is ok
Source host : db1
Destination dir : /mmm_restore
Dirs to clone : data, logs
Clone mode : master-master
Copy method : scp
Replication peer : db1
Setup master-master replication: yes
Dry run : no
WARN: MySQL is not running now, skipping shutdown ...
INFO: Verifying ssh connection to remote host
'ro...@192.168.3.11' (command: ssh -p 22 ro...@192.168.3.11 date)...
ro...@192.168.3.11's password:
vendredi 2 juillet 2010, 10:47:03 (UTC+0200)
INFO: OK: SSH connection works fine!
INFO: ssh -p 22 ro...@192.168.3.11 /usr/lib/mysql-mmm//tools/
create_snapshot
ro...@192.168.3.11's password:
File descriptor 4 left open
mount: wrong fs type, bad option, bad superblock on /dev/mapper/homevg-
mmm_snapshot,
missing codepage or helper program, or other error
Dans quelques cas certaines informations sont utiles dans
syslog - essayez
dmesg | tail ou quelque chose du genre

Logical volume "mmm_snapshot" created
ERROR: Can't create or mount snapshot: ERROR: Can't mount snapshot:
ERROR: Logical volume "mmm_snapshot" created
ERROR: Can't create or mount snapshot: ERROR: Can't mount snapshot:
Died at /usr/sbin/mmm_clone line 139.


Here is my mmm_tools.conf :

# cat /etc/mysql-mmm/mmm_tools.conf
include mmm_agent.conf

default_copy_method scp
clone_dirs data, logs

<host default>
ssh_user root

lvm_snapshot_size 1G
lvm_logical_volume homelg
lvm_volume_group homevg
lvm_mount_dir /mmm_snapshot
lvm_mount_opts -orw,nouuid

tools_user mmm_tools
tools_password *******
backup_dir /mmm_backup
restore_dir /mmm_restore
</host>


<copy_method scp>
backup_command scp -c blowfish -r %SSH_USER%@%IP%:%SNAPSHOT%/
%CLONE_DIR% %DEST_DIR%/
restore_command cp -axv %BACKUP_DIR%/* %DEST_DIR%/
true_copy 1
</copy_method>

<copy_method rdiff>
backup_command rdiff-backup --ssh-no-compression -v 5 !--
include %SNAPSHOT%/%CLONE_DIR%! --
e
xclude %SNAPSHOT% %SSH_USER%@%IP%::%SNAPSHOT%/ %DEST_DIR%/
restore_command rdiff-backup --force -v 5 -r %VERSION%
%BACKUP_DIR% %DEST_DIR
%/.mmm_restore;
cp -axvl --remove-destination %DEST_DIR%/.mmm_restore/* %DEST_DIR%/;
rm -r %DEST_DIR
%/.mmm_restore /
incremental_command rdiff-backup --parsable-output -l
%BACKUP_DIR%
single_run 1
incremental 1
</copy_method>

<copy_method ssh-gz>
backup_command ssh -c blowfish %SSH_USER%@%IP% "cd '%SNAPSHOT
%'; tar cv !'%CLONE_DIR%'!" |
g
zip > %DEST_DIR%/backup.tar.gz
restore_command cd %DEST_DIR%; tar xzfv %BACKUP_DIR%/
backup.tar.gz
single_run 1
</copy_method>


I think that the main problem is for the documentation of that tool, I
probably did something wrong ...

Thanks for your help !

Stéphane

Pascal Hofmann

unread,
Jul 2, 2010, 5:37:46 AM7/2/10
to mmm-...@googlegroups.com
Hi Stéphane,
> lvm_mount_opts -orw,nouuid
I think the "nouuid" mount option is only needed when using XFS (and unknown to ext3 and other file systems). Use just "-orw" instead.

Regards
Pascal

sbouli

unread,
Jul 2, 2010, 6:45:26 AM7/2/10
to MySQL Multi Master Manager Development
Hi Pascal,

On 2 juil, 11:37, Pascal Hofmann <m...@pascalhofmann.de> wrote:
> Hi Stéphane,>        lvm_mount_opts                  -orw,nouuid
>
> I think the "nouuid" mount option is only needed when using XFS (and unknown to ext3 and other file systems). Use just "-orw" instead.

you're right, that did the trick ;)

now I have "cp: ne peut évaluer `/etc/my.cnf': Aucun fichier ou
dossier de ce type"

which sound normal as the my.cnf file is in /etc/mysql/my.cnf, I
looked around and found that the path is coming from $host-
>{mysql_cnf} I don't get where this is set .. :
cat /usr/lib/mysql-mmm//tools/create_snapshot :
$res = system('cp', $host->{mysql_cnf}, '_mmm/');

thanks anyway !

Stéphane


>
> Regards
> Pascal

sbouli

unread,
Jul 2, 2010, 6:54:28 AM7/2/10
to MySQL Multi Master Manager Development
I did add the line :

mysql_cnf /etc/mysql/my.cnf

in host in file /etc/mysql-mmm/mmm_tools.conf

and it did the trick :)

going on with the next error !!

Thanks for your help !

Stéphane


> > Pascal- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
Reply all
Reply to author
Forward
0 new messages