All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rich <rich@hq.vsaa.lv>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] xfs_freeze & lvm2
Date: Thu, 20 Oct 2005 15:20:14 +0300	[thread overview]
Message-ID: <43578B7E.7060805@hq.vsaa.lv> (raw)

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

             reply	other threads:[~2005-10-20 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20 12:20 Rich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-14 13:34 [linux-lvm] xfs_freeze & lvm2 Rich
2005-10-18 12:06 ` Klaus Strebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43578B7E.7060805@hq.vsaa.lv \
    --to=rich@hq.vsaa.lv \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.