From: Nix <nix@esperi.org.uk>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Does LVM has something to backup like mbr??
Date: Mon, 28 Aug 2006 23:45:48 +0100 [thread overview]
Message-ID: <874pvwqy1v.fsf@hades.wkstn.nix> (raw)
In-Reply-To: <44F33821.4040802@minicom.com.br> (Du's message of "Mon, 28 Aug 2006 15:38:25 -0300")
On Mon, 28 Aug 2006, Du wrote:
> Hi, these days I was wondering if I do some crap in my LV's and I want
> to recover it, can I keep some kind of mbr's backup?
This should be automatically maintained in /etc/lvm/backup: both the
directory to back up to and whether backups are maintained at all
is customizable in /etc/lvm/lvm.conf, but it's a *really good idea*
to leave it turned on.
By default a backup is taken whenever the metadata changes (addition,
removal, or reconfiguration of LVs and VGs, basically).
You can restore an old configuration with `vgcfgrestore' and back up the
existing one on command with `vgcfgbackup'. (Obviously restoring an old
configuration with LVs in different places is unlikely to work because
the data isn't in the right places anymore, but re-restoring the new,
correct configuration should repair things immediately.)
> Something that, when I put it in the right place, it recovers my LV's ??
That's exactly it.
> Just like mbr. Cuz if I backup my mbr, it just recover my unique
> partition with LVM.
Your general system backup (you *do* have one, right? :) ) should be
backing up /etc anyway, in which case the LVM metadata backups should
be backed up with everything else.
--
`In typical emacs fashion, it is both absurdly ornate and
still not really what one wanted.' --- jdev
prev parent reply other threads:[~2006-08-28 22:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 18:38 [linux-lvm] Does LVM has something to backup like mbr?? Du
2006-08-28 22:45 ` Nix [this message]
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=874pvwqy1v.fsf@hades.wkstn.nix \
--to=nix@esperi.org.uk \
--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).