xfs
[Top] [All Lists]

Re: LVM snapshot and XFS

To: Tom Carroll <tcarroll@xxxxxxxxxxxxx>
Subject: Re: LVM snapshot and XFS
From: Steve Lord <lord@xxxxxxx>
Date: Tue, 17 Jul 2001 13:12:27 -0500
Cc: linux-xfs <linux-xfs@xxxxxxxxxxx>
Comments: In-reply-to Tom Carroll <tcarroll@xxxxxxxxxxxxx> message dated "Tue, 17 Jul 2001 10:57:07 -0400."
References: <20010717105707.A15638@xxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> 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
> 
> -- 
> Tom Carroll                 email:  tcarroll@xxxxxxxxxxxxx
>                             pgp:     mailto:pgp@xxxxxxxxxxxxx?subject=GET%20t
> carroll@xxxxxxxxxxxxx

If you have a recent cvs kernel then there is a nouuid mount option
which will let it mount without changing the uuid. Otherwise you need
to make the backup lvm volume writable first - someone else will have to
tell you how to do that.

Steve


<Prev in Thread] Current Thread [Next in Thread>