From: "Bryn M. Reeves" <bmr@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvcreate & vgcfgrestore won't work
Date: Tue, 06 Jan 2009 12:08:56 +0000 [thread overview]
Message-ID: <496349D8.8000800@redhat.com> (raw)
In-Reply-To: <1231217144.7947.19.camel@fraws70-gentoo>
Ralf Sparr wrote:
> Hi list,
>
> as mentioned in my earlier post, LVM complains about
> "Incorrect metadata area header checksum". As this occurs
> often (many questions, rarely answers in the list) I tried to create
> some 'new' via
Running pvcreate followed by vgcfgrestore is the correct way to fix a
broken MDA checksum - I've used this many times to recover from these
situations.
> # pvcreate --force --uuid 7vFXd3-MYnt-TVdG-luYr-rDPn-o8a1-vjewWk
> --restorefile /etc/lvm/archive/alice_00038.vg alice
Your syntax is wrong. You've got:
pvcreate -f -u=$UUID --restorefile=/path $VGNAME
But pvcreate is expecting a PV path as the last argument (the device to
be initialised as a PV), not a VG name (are you confusing this with the
vgcfgrestore arguments?).
This works just fine for me:
# pvcreate -f --uuid 6cxF7v-f0XU-3EK1-QhA2-YSVT-yEe3-vQnE09
--restorefile /etc/lvm/archive/l0_00000.vg /dev/loop0
Can't initialize physical volume "/dev/loop0" of volume group "l0"
without -ff
# pvcreate -ff --uuid 6cxF7v-f0XU-3EK1-QhA2-YSVT-yEe3-vQnE09
--restorefile /etc/lvm/archive/l0_00000.vg /dev/loop0
Really INITIALIZE physical volume "/dev/loop0" of volume group "l0" [y/n]? y
WARNING: Forcing physical volume creation on /dev/loop0 of volume
group "l0"
Physical volume "/dev/loop0" successfully created
# vgcfgrestore -f /etc/lvm/archive/l0_00000.vg l0
Restored volume group l0
Regards,
Bryn.
next prev parent reply other threads:[~2009-01-06 12:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 4:45 [linux-lvm] pvcreate & vgcfgrestore won't work Ralf Sparr
2009-01-06 12:08 ` Bryn M. Reeves [this message]
[not found] ` <1231260819.7947.29.camel@fraws70-gentoo>
2009-01-06 17:15 ` Bryn M. Reeves
2009-01-06 17:38 ` Ralf Sparr
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=496349D8.8000800@redhat.com \
--to=bmr@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.