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