From: "Harald Heigl" <Harald_Heigl@gmx.at>
To: 'LVM general discussion and development' <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] What happens with full snapshots
Date: Fri, 12 Feb 2010 17:41:21 +0100 [thread overview]
Message-ID: <002801caac02$3556e640$a004b2c0$@at> (raw)
In-Reply-To: <1265989079.22562.0@raydesk1.bettercgi.com>
> The summary answer to the list of questions below
> is "it works well".
Thanks a lot for this very fast answer!
> > 2. What happens if there is a problem with a snap? I've heard
> on
> > reboot the snapshots are lost. What if there is a power shortage, so
> > the
> > snap is lost, you boot and the original lv just seeks for the snap?
>
> LVM snapshots are NOT lost on reboot. That information may apply
> to some other type of snapshot mechanism unrelated to LVM, or some
> system could potentially be built on top of LVM which holds snapshots
> in RAM, but in the normal use case snapshots are written to disk
> just like any other data you might write to disk.
Ok I just assume I read something wrong it was about lvm, can't find it
anymore, perhaps someone had a problem on reboot (what could happen when
working and experimenting with computers :-) )
But I also think about trying this:
http://linuxsoftware.co.nz/blog/2008/03/11/lvm-snapshot-with-no-free-diskspa
ce
Do you see any problems here (besides that this snapshot will be definitely
lost)? As said the "real changed data" will be on the disk, just the
snapshot is lost ...
> LVM can be set to maintain a log of backups of the LVM metadata
> in case you had a power failure or other major "oops" in the middle
> of creating a snapshot or something like that. The tool "vgcfgrestore"
> can restore the LVM configuration to any of your last X valid
> configurations. I've used that several times when I've done
> something stupid like deleting an important LVM, as I'm doing a
> lot of weird stuff with LVM.
This point is interesting, fortunately I had no problem with lvm. I use
lvmdump -amd [file] to "backup" my lvm (with metadata), never tried to
restore. Not knowing vgcfgrestore before, from the manpage I assume using
vgcfgbackup is the right tool to backup your metadata, right? I thought of
using lvmdump on a regularly basis to get some dumps, I don't know If they
are useful if something happens.
You said you deleted some lv? Then a vgcfgrestore will restore the vg and
all data (which was there before) will be accessible again?
Thanks again,
Harald
next prev parent reply other threads:[~2010-02-12 16:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-12 14:56 [linux-lvm] What happens with full snapshots Harald Heigl
2010-02-12 15:37 ` Ray Morris
2010-02-12 16:41 ` Harald Heigl [this message]
2010-02-12 19:22 ` Ray Morris
2010-02-13 7:13 ` Harald Heigl
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='002801caac02$3556e640$a004b2c0$@at' \
--to=harald_heigl@gmx.at \
--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 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).