On Tue, Jul 17, 2001 at 10:57:07AM -0400, Tom Carroll wrote:
> Hello all,
>
> I did some searching around and I could not find the answer to this problem:
>
> I created a snapshot of an XFS parition under LVM.
>
> lvcreate -L1G -s -n bkup /dev/vol0/home
>
> Then I attempted to mount the snapshot:
>
> mount -oro /dev/vol0/bkup /mnt
> mount: wrong fs type, bad option, bad superblock on /dev/vol0/bkup,
> or too many mounted file systems
>
> klog states:
> XFS: Filesystem has duplicate UUID - can't mount
>
> When I attempt to change the UUID:
> xfs_db -c'uuid generate' /dev/vol0/bkup
>
> xfs_db: cannot open /dev/vol0/bkup: Permission denied
>
> Even though I am root.
>
> Will anyone give a helping hand? Thanks in advance
The snapshot device is read-only, so you can't change the UUID.
I believe there is a kernel patch floating around to allow you to mount
multiple filesystems with the same UUID.
You'll then run into the next problem:
The snapshot is of an unclean XFS filesystem, and since the device is
readonly you can't reply the journal or run fsck. For now the only way
around this is to unmount your filesystem when taking the snapshot.
--
Ragnar Kjorstad
Big Storage
|