All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Question on LVM and Bare Metal Restore?
Date: Sun, 12 Jun 2011 11:01:41 +0200	[thread overview]
Message-ID: <4DF48075.4070804@redhat.com> (raw)
In-Reply-To: <4DF3EFD8.21200.145B56@mikes.kuentos.guam.net>

On 06/12/2011 12:44 AM, Michael D. Setzer II wrote:

> Backing up the regular partitions that contain an LVM has been 
> always been available, and backing up the whole disk image. 
> Recent versions have added the ability to backup the LVM dm 
> partitions as well. Backing up and restore works fine as long as 
> the LVM setup is already there, but it a disk completely fails one 
> would need to recreate the LVM before being able to restore it.

Recovery is very easy with LVM (once you find how to do that:-)

I suggest you read the LVM documentation, mainly
the section 6. LVM troubleshooting.

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Logical_Volume_Manager_Administration/index.html

All you need to recover LVM metadata is metadata backup
(automatically maintained in /etc/lvm or directory specified in lvm.conf)
and then something like
pvcreate -u <uuid> --restorefile <backup file> <PV> # only if PV header is lost!
vgcfgrestore -f <backup file> <VG>

Milan

  parent reply	other threads:[~2011-06-12  9:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-11 22:44 [linux-lvm] Question on LVM and Bare Metal Restore? Michael D. Setzer II
2011-06-12  5:40 ` Ray Morris
2011-06-12  9:01 ` Milan Broz [this message]
2011-06-12 15:22   ` Michael D. Setzer II

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=4DF48075.4070804@redhat.com \
    --to=mbroz@redhat.com \
    --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.