chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

create_snapshot fails when mounting volume with xfs filesystem #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an xfs filesystem on an lvm volume
2. Configure mmm_lvm.conf to use that filesystem
3. Run bin/lvm/create_snapshot

What is the expected output? What do you see instead?

Expected output is for the snapshot to be created and the filesystem to be 
successfully mounted.

Actual output is a fail to mount the xfs filesystem due to an xfs feature that 
checks for mounting 
a filesystem with the same UUID as an existing filesystem.  The mount option of 
"nouuid" needs 
to be passed to the mount command.

dbhost:# ../bin/lvm/create_snapshot 
Flush tables...
Res: '0E0'
Sync()...Done
Sleeping 1 sec...Done
Sync()...Done
File descriptor 3 left open
  Logical volume "mmm_snapshot" created
LVM res = '0'
mount: wrong fs type, bad option, bad superblock on /dev/data00/mmm_snapshot,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

ERROR: Can't create or mount snapshot: OK: Got status info!

What version of the product are you using? On what operating system?

mmm-1.0 from trunk - revision 93.

Please provide any additional information below.

Attached is a patch that allows an option "lvm_mount_opts" to be specified in 
mmm_lvm.conf so 
that site specific mount options can be set.  The default is left as "-orw" if 
the setting is absent.

Original issue reported on code.google.com by batal...@gmail.com on 9 Sep 2008 at 3:57

Attachments:

GoogleCodeExporter commented 9 years ago
Applied the patch in rev# 102 and added you to the project members list. Great 
thanks
for your help!

Original comment by kovy...@gmail.com on 4 Oct 2008 at 8:47