From: Alasdair G Kergon <agk@redhat.com>
To: lvm-devel@redhat.com
Subject: broken vg after vgconvert -M1
Date: Fri, 5 Dec 2008 12:57:12 +0000 [thread overview]
Message-ID: <20081205125711.GA26097@agk.fab.redhat.com> (raw)
In-Reply-To: <49391424.8090505@aknet.ru>
On Fri, Dec 05, 2008 at 02:44:36PM +0300, Stas Sergeev wrote:
> I tried to convert my VG to LVM1 format.
> I use lvm2-2.02.33, and vgconvert segfaults.
> Not knowing that the problem is alreay
> fixed in CVS, I made the attached patch.
> The conversion then succeeded, according
> to the vgconvert message, but now I get
> ---
> Invalid LV in extent map (PV /dev/sdb3, PE 0, LV 0, LE 0)
> Couldn't fill logical volume maps.
> Volume group "fedora_vg" not found
> ---
> from any lvm tool.
The error you should have got was:
Logical volume lvol0 lvid format is incompatible with requested metadata format.
and it should have refused to let you run the vgconvert unless you changed
the UUIDs manually first.
(This is a pretty rare requirement, downgrading the metadata format.)
To recover, you should: update to a newer version such as 2.02.42 or 2.02.43,
find a suitable metadata backup file, edit it to ensure the LV UUIDs are
compatible with LVM1 (ie small consecutive numbers with leading zeroes)
then use vgcfgrestore.
> could lead to the corruption? Could my patch
> be guilty
Yes - in that your metadata was incompatible with LVM1
and the tool previously stopped you from doing the conversion,
albeit by crashing instead of giving you a nice error.
Alasdair
--
agk at redhat.com
next prev parent reply other threads:[~2008-12-05 12:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 11:44 broken vg after vgconvert -M1 Stas Sergeev
2008-12-05 12:57 ` Alasdair G Kergon [this message]
2008-12-05 15:16 ` Stas Sergeev
2008-12-08 8:26 ` broken vg after vgconvert -M1, trying to recover Stas Sergeev
2008-12-08 12:55 ` Stas Sergeev
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=20081205125711.GA26097@agk.fab.redhat.com \
--to=agk@redhat.com \
--cc=lvm-devel@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.