[linux-lvm] Re: LVM writeable snapshot patch for use with XFS

Steve Lord lord at sgi.com
Tue May 22 01:05:24 UTC 2001


I should add that all the code I posted as a patch last week for freezing
XFS for snapshotting is now incorporated into the XFS development tree.

One reason for Dale doing this is that an XFS filesystem contains a uuid
(in several places) which is checked by mount and compared against the
uuid of all mounted xfs filesystems on a machine. Duplicate uuids are
not allowed - this is for preventing two mounts of the same filesystem
via alternate hardware paths. The only way to fix this on linux is to
use an admin command to change the uuid of the snapshot.

Steve

> Here is a replacement for the writeable snapshot patch I posted earlier to
> these lists.  Its intended use is for changing the UUID on an XFS snapshot
> so the snapshot can be mounted at the same time as the original.  This patch
> is for beta 7 (the one I posted last week was beta 3) and doesn't have a bug
> the earlier patch did.
> 
> A patch for lvchange follows the lvm.c patch, as snapshots are still created
> read-only and must be changed to writable through lvchange.  This patch is
> against an older version, but still cleanly applies to beta7 for me.
> 
> Dale J. Stephenson
> Software Engineer
> Connex, A Western Digital Company
> steph at connex.com




More information about the linux-lvm mailing list