Skip to contentSkip to conversation

LVM snapshot not mountable

DISCUSSION Michael Monnerie 3 participants 4 messages May 25, 2010

lore
Share & tools
lore
#0 lore raw

This might be LVM specific, please apologize. For the first time I play around with LVM snapshots. I tried this:
lvcreate -s -n dbsnap -L 4G -v /dev/db/mysql
mount /dev/db/dbnap /mnt
but the mount fails, dmesg says:

[  598.440324] XFS: Filesystem dm-1 has duplicate UUID - can't mount

How could I mount it?

Signature · 10 lines
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 8 lines · Michael Monnerie

This might be LVM specific, please apologize. For the first time I play around with LVM snapshots. I tried this:
lvcreate -s -n dbsnap -L 4G -v /dev/db/mysql
mount /dev/db/dbnap /mnt
but the mount fails, dmesg says:

[  598.440324] XFS: Filesystem dm-1 has duplicate UUID - can't mount

How could I mount it?

mount -o ro,norecovery,nouuid /dev/db/dbnap /mnt

or use

xfs_admin -U generate /dev/db/dbnap

to give it a different uuid first in case you're dealing with a writeable snapshot.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 3 lines · On Dienstag, 25. Mai 2010 Christoph Hellwig wrote:

mount -o ro,norecovery,nouuid /dev/db/dbnap /mnt
or use
xfs_admin -U generate /dev/db/dbnap

Gracias, merci, grazie, danke, thanks.

Signature · 10 lines
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
In reply to Michael Monnerie

Le Tue, 25 May 2010 17:25:44 +0200
Michael Monnerie <[email protected]> écrivait:

Quoted 4 lines

but the mount fails, dmesg says:

[  598.440324] XFS: Filesystem dm-1 has duplicate UUID - can't mount

How could I mount it?

Simply read the message : you cannot mount 2 xfs filesystems with the same UUID at the same time. Obviously the snapshot carries the same UUID as the original. Use the "nouuid" option to mount it.

Signature · 6 lines
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<[email protected]>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs