XFS + LVM Snapshot?
Hi,
Kernel: 2.4.15-pre4 with XFS patch ( linux-2.4-xfs CVS tree from SGI site)
LVM: current - LVM CVS
Patches applied: linux-2.4.11-VFS-lock.patch from LVM CVS
I have tried to test the LVM snapshot feature with XFS and encountered the following problem.
*I can not mount the original FS and snapshot FS at the same time. If I unmount the origianal XFS FS and then mount the snapshot FS, it works, tough.
Is there any patches that I missed??
Thanks in Advance.
Quoted 8 lines · Sean Oh
Kernel: 2.4.15-pre4 with XFS patch ( linux-2.4-xfs CVS tree from SGI site)
LVM: current - LVM CVSPatches applied: linux-2.4.11-VFS-lock.patch from LVM CVS
*I can not mount the original FS and snapshot FS at the same time. If I unmount the origianal XFS FS and then mount the snapshot FS, it works, tough.
Yes, you need an XFS patch which does something with the filesystem UUID in the snapshot. XFS has a feature which prevents the same filesystem from being mounted more than once.
What they do to fix this is to create writable snapshots. What I would rather they do is in the "duplicate UUID detection" code, allow mounting of devices which are on read-only media (e.g. a snapshot).
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
Sorry, but where can I find that patch?
Thanks again for your reply.
----- Original Message -----
From: "Andreas Dilger" <[email protected]>
To: "Sean Oh" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, November 18, 2001 7:22 AM
Subject: Re: [linux-lvm] [Q]XFS + LVM Snapshot?
Quoted 31 lines · Sean Oh
Quoted 8 lines
Kernel: 2.4.15-pre4 with XFS patch ( linux-2.4-xfs CVS tree from SGI site)
LVM: current - LVM CVSPatches applied: linux-2.4.11-VFS-lock.patch from LVM CVS
*I can not mount the original FS and snapshot FS at the same time. If I unmount the origianal XFS FS and then mount the snapshot FS, it works, tough.
Yes, you need an XFS patch which does something with the filesystem UUID in the snapshot. XFS has a feature which prevents the same filesystem from being mounted more than once.
What they do to fix this is to create writable snapshots. What I would rather they do is in the "duplicate UUID detection" code, allow mounting of devices which are on read-only media (e.g. a snapshot).
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 11 lines · Sean Oh
Hi,
Kernel: 2.4.15-pre4 with XFS patch ( linux-2.4-xfs CVS tree from SGI site)
LVM: current - LVM CVSPatches applied: linux-2.4.11-VFS-lock.patch from LVM CVS
I have tried to test the LVM snapshot feature with XFS and encountered the following problem.
*I can not mount the original FS and snapshot FS at the same time. If I unmount the origianal XFS FS and then mount the snapshot FS, it works, tough.
If you have fairly recent XFS code you should be able to mount the snapshot with the -onouuid,norecovery options.
patrick