Skip to contentSkip to conversation

XFS + LVM Snapshot?

linux-lvm Sean Oh 3 participants 4 messages Nov 17, 2001 – Nov 19, 2001

lore
Share & tools
lore

Sean Oh

author
#0 lore raw

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.

#1 lore raw
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 CVS

Patches 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/

author
#2 lore raw

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 CVS

Patches 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

#3 lore raw
In reply to Sean Oh
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 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.

If you have fairly recent XFS code you should be able to mount the snapshot with the -onouuid,norecovery options.

patrick