From: Stas Sergeev <stsp@aknet.ru>
To: lvm-devel@redhat.com
Subject: broken vg after vgconvert -M1
Date: Fri, 05 Dec 2008 14:44:36 +0300 [thread overview]
Message-ID: <49391424.8090505@aknet.ru> (raw)
Hello.
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.
Oddly enough, vgck says the same.
I am a bit confused about that. Are there
any ways to recover the vg now? And what
could lead to the corruption? Could my patch
be guilty, or are there other bugs in vgconvert?
I also wonder how the lvnum_from_lvid()
supposed to ever work at all. It iterates
32 times in a loop, multiplying the int32
variable by 64 every iter. But only 5
iterations are safe, the rest may (and does)
overflow.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lvnum.diff
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20081205/229b3406/attachment.ksh>
next reply other threads:[~2008-12-05 11:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 11:44 Stas Sergeev [this message]
2008-12-05 12:57 ` broken vg after vgconvert -M1 Alasdair G Kergon
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=49391424.8090505@aknet.ru \
--to=stsp@aknet.ru \
--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.