linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: BUCHMULLER Norbert <norbi.lists@nix.hu>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM1 -> LVM2 with failed disk
Date: Fri, 21 Oct 2005 17:42:57 +0200	[thread overview]
Message-ID: <20051021174257.5a9042dc.norbi.lists@nix.hu> (raw)
In-Reply-To: <20051020204341.GZ13606@beazk.net>

Hi All!

On Thu, 20 Oct 2005 16:43:41 -0400
Erik Karlin <e_karlin@yahoo.com> wrote:

> Of course, one of my disks died. In the past, I used the -P partial flag
> to get the lvm to start so I could copy off my data from the "good" pv,
> but under lvm10, I don't see that option.
> 
> What are my options. Can I upgrade from lvm10 to lvm2 with a failed
> disk. The lvm doesn't start and while I can pvdisplay /dev/hda4 I cannot
> vgdisplay or lvdisplay (obviously) since the vg isn't starting.
> 
> Can I put in a dummy drive, somehow tell lvm to pvcreate a pv on the new
> drive with the same ID and then get the vg to come up?

This latter option worked for me once. The VG's name is "vg0", the died PV
was /dev/hdc1.

* Read the exact size of the died PV:

vgcfgrestore -ll -n vg0

* Add a new disk to the system, create a partition with _exactly_ the same
size as the died PV. (It need not be on the same device as the old PV, eg.
I'll call it /dev/hdb2.)

* Restore the LVM headers of the died PV onto the new disk:

vgcfgrestore -n vg0 -o /dev/hdb2 /dev/hdc1

* Rescan, activate the VG:

vgscan; vgchange -a y vg0

Hope it will help.


norbi

      reply	other threads:[~2005-10-21 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20 20:43 [linux-lvm] LVM1 -> LVM2 with failed disk Erik Karlin
2005-10-21 15:42 ` BUCHMULLER Norbert [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=20051021174257.5a9042dc.norbi.lists@nix.hu \
    --to=norbi.lists@nix.hu \
    --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).