Autodetect XFS file system when mounting snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Confirmed
|
Wishlist
|
Lenz Grimmer |
Bug Description
[root@mysql ~]# Bin/mylvmbackup
20091024 05:43:57 Info: Connecting to database...
20091024 05:43:57 Info: Flushing tables with read lock...
20091024 05:43:57 Info: Taking position record into /tmp/mylvmbacku
20091024 05:43:57 Info: Running: lvcreate -s --size=5G --name=
File descriptor 4 (socket:[10885]) leaked on lvcreate invocation. Parent PID 6452: /usr/bin/perl
Logical volume "MYSQL_snapshot" created
20091024 05:43:59 Info: DONE: taking LVM snapshot
20091024 05:43:59 Info: Unlocking tables...
20091024 05:43:59 Info: Disconnecting from database...
20091024 05:43:59 Info: Mounting snapshot...
20091024 05:43:59 Info: Running: mount -o rw /dev/lvmgrupa/
mount: wrong fs type, bad option, bad superblock on /dev/lvmgrupa/
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@mysql ~]# dmesg | tail
...
...
Filesystem "dm-3": Disabling barriers, trial barrier write failed
XFS: Filesystem dm-3 has duplicate UUID - can't mount
Related branches
- Lenz Grimmer: Pending requested
summary: |
- When using XFS mylvmbackup fails to mount snapshot + Autodetect XFS file system when mounting snapshot |
I recon the problem is as the snapshot has same UUID as the already mounted fs where datadir is so solution would be to mount snapshot using nouuid option in this case.
It would be nice if you can recognise XFS and do that yourself or if you can add a switch like --mountopt where we can add mount options for the snapshot (in this case nouuid,nobarrier)