Linux LVM users
 help / color / mirror / Atom feed
From: Turbo Fredriksson <turbo@bayour.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] one PV crashed
Date: Fri Feb  1 04:52:01 2002	[thread overview]
Message-ID: <87bsf9mq3r.fsf@papadoc.bayour.com> (raw)
In-Reply-To: <20020201111151.B15491@sistina.com>

>>>>> "Heinz" == Heinz J Mauelshagen <mauelshagen@sistina.com> writes:

    Heinz> On Fri, Feb 01, 2002 at 11:01:22AM +0100, Turbo Fredriksson
    Heinz> wrote:
    >> I have (had) 6 PV's in my VG. The last one crashed (the whole
    >> disk seems to have broken totaly).
    >> 
    >> It don't seem possible to restore the information (not without
    >> spending $$$ to a data recovery company), so how do I get the
    >> data stored on the OTHER disks?

    Heinz> You don't spend a single dollar :-)

I was referring to restore the lost data on the failed disk ..

    Heinz> There's 2 solutions:

    Heinz> A: --
    Heinz> Buy a replacemeent drive (say /dev/sdg1 ;-) and run

    Heinz> fdisk # to partition it the same way the broken one was
    Heinz> pvcreate /dev/sdg1 vgcfgrestore -f /etc/lvmconf/vg1.conf -n
    Heinz> vg1 /dev/sdg1 vgscan

I'll get a replacement from IBM (the disk is still on warranty), so I'd
go for this...

Since I have data on the vg, will this still let me keep this, or will
it be destroyed when doing the pvcreate/vgcfgrestore?

    Heinz> B: --
    Heinz> If you don't have a replacement drive at hand you can even
    Heinz> be faster by faking one (you must have loop configured in
    Heinz> the kernel and use LVM 1.0.2):

    Heinz> dd if=/dev/zero of=/tmp/my_sdg1.vgda bs=1k count=512
    Heinz> losetup /dev/loop0 /tmp/my_sdg1.vgda pvcreate /dev/loop0
    Heinz> vgcfgrestore -f /etc/lvmconf/vg1.conf -n vg1 /devloop0
    Heinz> vgscan

I'll do this as a temporary solution, while waiting for the replacement.
Knowing IBM, it can take a while :)


Same question here, will the content on the VG be destroyed?

    Heinz> Hope that helps :-)

It does (at least in the sense that I'll won't loose MORE data :) Thanx.

spy NORAD Peking domestic disruption Kennedy subway Ortega president
quiche class struggle [Hello to all my fans in domestic surveillance]
AK-47 CIA Ft. Bragg attack
[See http://www.aclu.org/echelonwatch/index.html for more about this]

  reply	other threads:[~2002-02-01  4:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01  4:01 [linux-lvm] one PV crashed Turbo Fredriksson
2002-02-01  4:16 ` Heinz J . Mauelshagen
2002-02-01  4:52   ` Turbo Fredriksson [this message]
2002-02-01  5:08     ` Heinz J . Mauelshagen
2002-02-01  5:17       ` Turbo Fredriksson
2002-02-01  8:22   ` Turbo Fredriksson
2002-02-06  5:01     ` Turbo Fredriksson
2002-02-06 13:58       ` Heinz J . Mauelshagen
2002-02-07  3:41         ` Turbo Fredriksson
2002-02-07  4:32   ` Turbo Fredriksson
2002-02-15  5:50     ` Turbo Fredriksson
2002-02-15  6:01       ` Turbo Fredriksson
2002-02-15  7:57         ` Heinz J . Mauelshagen

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=87bsf9mq3r.fsf@papadoc.bayour.com \
    --to=turbo@bayour.com \
    --cc=linux-lvm@sistina.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