Linux LVM users
 help / color / mirror / Atom feed
From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM ate my data!
Date: Tue Feb 26 04:47:03 2002	[thread overview]
Message-ID: <20020226114742.B13520@sistina.com> (raw)
In-Reply-To: <Pine.OSF.4.05.10202251852210.18015-100000@cpca7.uea.ac.uk>; from W.B.Hill@uea.ac.uk on Mon, Feb 25, 2002 at 07:14:33PM +0000

On Mon, Feb 25, 2002 at 07:14:33PM +0000, wbh wrote:
> On Mon, 25 Feb 2002, Heinz J . Mauelshagen wrote:
> 
> > In case *all* your PVs making up your VG are accessable, your LVM metadata
> > looks toasted.
> 
> The bootup should just run "vgchange -ay", ah well!
> 
> > You need to "pvcreate -ff" your PVs and vgcfgrestore a metadata backup
> > to all of them.
> > Before doing so, you can save your actual metadata for recovery in case
> > something goes badly wrong with:
> 
> OK, metadata saved.
> 
> > So, assuming /dev/hda[34] are all your PVs which belonged to the missing VG
> > (otherwise add those), figure out the recent metadata backup in /etc/lvmconf.
> > Say /etc/lvmconf/VG.conf would be the one.
> > 
> > Then run:
> Using the 1.0.3 versions...
> 
> > pvcreate -yff /dev/hda[34]
> 
> pvcreate -- WARNING: forcing physical volume creation on "/dev/hda3" of
> volume group "pvg"
> pvcreate -- physical volume "/dev/hda3" successfully created
> pvcreate -- WARNING: forcing physical volume creation on "/dev/hda4" of
> volume group "pvg"
> pvcreate -- physical volume "/dev/hda4" successfully created
> 
> > vgcfgrestore -n YourVGName /dev/hda3
> vgcfgrestore -- INFO: using backup file "/etc/lvmconf/pvg.conf"
> vgcfgrestore -- ERROR: different structure size stored in
> "/etc/lvmconf/pvg.conf" than expected in file vg_cfgrestore.c [line 139]
> vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume group "pvg"

Oops. Forgot that one.
If you have a rather old LVM version in use, the VGDA backups can only be
restored using that version specific vgcfgrestore.

So, you absolutely did the right things you reported in your previous email.

> 
> Hmm. Same for ./vgcfgrestore -f /etc/lvmconf/pvg.conf*
> 
> > vgcfgrestore -n YourVGName /dev/hda4
> > vgscan
> > vgchange -ay
> > 
> > Please upgrade to LVM 1.0.3 and do the pvcreate + vgcfgrestore above.
> 
> Got 1.0.3 Should I try the vgcfgresore with the old tools (v0.9)???

Yes, as you already did :-)
The new vgcfgrestore makes uuid_fixer obsolete in case you should run into
such problem again.

> 
> BTW, thanks very much for getting back so rapidly!
> 
> Thanks,
>     Bill
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2002-02-26  4:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 12:09 [linux-lvm] LVM ate my data! lvm-mail
2002-02-25 12:28 ` Heinz J . Mauelshagen
2002-02-25 13:14   ` wbh
2002-02-26  4:47     ` Heinz J . Mauelshagen [this message]
2002-02-25 14:18   ` wbh
2002-02-26  4:45     ` 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=20020226114742.B13520@sistina.com \
    --to=mauelshagen@sistina.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