xfs_freeze & lvm2
i am not subscribed, so i would be thankful if i could get a reply with cc. thanks.
i tried making snapshots of xfs filesystem on lvm2. if xfs was frozen, lvcreate stopped at
Suspending space-data
dm suspend space-data N
issuing xfs_freeze -u allowed the process to continue. in this list, Thu, 09 Jun 2005 Klaus Strebel wrote :
"with LVM2 the XFS filesystem is 'frozen' automaticly on the mount -onouuid,ro ( not quite sure, but probably also for LVM1 ..., think it's in the XFS code ). So, forget xfs_freeze."
as i understand it, consistent copy is created when lvcreate is issued, not when snapshot volume is mounted - is this right ? if so, shouldn't filesystem also be frozen when a snapshot volume is created ?
if it actually is done together with snapshot, does this mean that i really can forget about xfs_freeze and just create snapshots ? must i specify ro in mount options or is this optional ?
Signature · 1 line
Rich
Quoted 10 lines · Rich
i am not subscribed, so i would be thankful if i could get a reply with cc. thanks.
i tried making snapshots of xfs filesystem on lvm2. if xfs was frozen, lvcreate stopped at
Suspending space-data
dm suspend space-data Nissuing
xfs_freeze-u allowed the process to continue. in this list, Thu, 09 Jun 2005 Klaus Strebel wrote :
Quoted 6 lines
"with LVM2 the XFS filesystem is 'frozen' automaticly on the mount -onouuid,ro ( not quite sure, but probably also for LVM1 ..., think it's in the XFS code ).
So, forgetxfs_freeze."as i understand it, consistent copy is created when lvcreate is issued, not when snapshot volume is mounted - is this right ?
As i understood things, no. Mounttime matters ;-) see <http://www.tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html> and as example <http://www.tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html>.
Quoted 1 line
if so, shouldn't filesystem also be frozen when a snapshot volume is created ?
... see above ...
Quoted 2 lines
if it actually is done together with snapshot, does this mean that i really can forget about
xfs_freezeand just create snapshots ? must i specify ro in mount options or is this optional ?
Well, if i'm wrong ( and to be honest, i didn't play around with all the stuff for 1 1/2 years now :-( ) somebody might correct me, but if i remember postings from linux-xfs mailing list, rw-snapshots with XFS is not quite unstable ...
Cheers
Klaus
Signature · 6 lines
Klaus Strebel, Dipl.-Inform. (FH), mailto:[email protected] /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \