Autodetect XFS file system when mounting snapshot

Bug #459746 reported by ahi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mylvmbackup
Confirmed
Wishlist
Lenz Grimmer

Bug Description

[root@mysql ~]# Bin/mylvmbackup-0.13/mylvmbackup --user=root --password=password --socket=/tmp/mysql.sock --vgname=lvmgrupa --lvname=MYSQL --backupdir=/opt/backup/
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/mylvmbackup-backup-20091024_054357_mysql-aUZhNf.pos...
20091024 05:43:57 Info: Running: lvcreate -s --size=5G --name=MYSQL_snapshot /dev/lvmgrupa/MYSQL
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/MYSQL_snapshot /var/tmp/mylvmbackup/mnt/backup
mount: wrong fs type, bad option, bad superblock on /dev/lvmgrupa/MYSQL_snapshot,
       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

Tags: xfs

Related branches

Revision history for this message
ahi (arhi-smece) wrote :

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)

Revision history for this message
Lenz Grimmer (lenzgr) wrote :

There is an option in mylvmbackup named "xfs" that should do just that (adding the ",nouuid" mount option. Did you try that one?

I agree, it would be better to do this automatically. Marking this a a "wishlist" item.

Changed in mylvmbackup:
assignee: nobody → LenZ (lenzgr)
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
ahi (arhi-smece) wrote :

works with xfs but yes, wishlist is to "autodetect" it and wishlist is "mount options" parameter (if that one exist I apologize but was unable to find it)

ahi

Lenz Grimmer (lenzgr)
summary: - When using XFS mylvmbackup fails to mount snapshot
+ Autodetect XFS file system when mounting snapshot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.