* [linux-lvm] xfs_freeze & lvm2
@ 2005-10-14 13:34 Rich
2005-10-18 12:06 ` Klaus Strebel
0 siblings, 1 reply; 3+ messages in thread
From: Rich @ 2005-10-14 13:34 UTC (permalink / raw)
To: linux-lvm
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 ?
--
Rich
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] xfs_freeze & lvm2
2005-10-14 13:34 [linux-lvm] xfs_freeze & lvm2 Rich
@ 2005-10-18 12:06 ` Klaus Strebel
0 siblings, 0 replies; 3+ messages in thread
From: Klaus Strebel @ 2005-10-18 12:06 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: linux-xfs
Rich schrieb:
> 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 ?
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>.
> if so, shouldn't filesystem also be frozen when a snapshot volume is
> created ?
... see above ...
> 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 ?
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
--
Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] xfs_freeze & lvm2
@ 2005-10-20 12:20 Rich
0 siblings, 0 replies; 3+ messages in thread
From: Rich @ 2005-10-20 12:20 UTC (permalink / raw)
To: linux-lvm
i'm sorry for breaking the thread, but i am reading responses through
web archive ;)
..
>> 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>.
well, supposedly there is no way to see wether changes are propogated to
snapshot between lvcreate and mount because you must mount it to see
(reminds about cats & boxes) ;)
but there are two things that lead me to believe it is lvcreate that
matters :
1. "You should remove snapshot volume when you have finished with them
because they take a copy of all data written to the original volume and
this can hurt performance."
note, it says "remove", not unmount. additionally, you can easily mount
and unmount snapshot several times - it would be pretty hard to have a
consistent copy in such a case;
2. i did some testing before : created a snapshot (but did not mount
it), made some modifications to original data and checked wether used
space would increase for snapshot volume (with lvdisplay). well, it did
- so i assumed snapshot is created, well, when it 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 ?
well, what about this part ?
from what i have read here and also in other places, xfs filesystem
should be consistent, but i would like to be sure (though i might try to
test this by simulating activity during lvcreate, i would prefer not to)
>> 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 ...
well, as i don't need r/w anyway, i'll stick with ro, just to be sure
then :)
> Cheers
> Klaus
--
Rich
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-20 12:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 13:34 [linux-lvm] xfs_freeze & lvm2 Rich
2005-10-18 12:06 ` Klaus Strebel
-- strict thread matches above, loose matches on Subject: below --
2005-10-20 12:20 Rich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).