From: Michael McLinn <mikem@twisted.net>
To: linux-lvm@sistina.com
Subject: [linux-lvm] 0.9.1 vgscan doesn't detect upgraded vg's
Date: Mon, 05 Feb 2001 21:40:19 -0500 [thread overview]
Message-ID: <3A7F6413.A80D1803@twisted.net> (raw)
Hello,
I was running some large vg's with 0.8final, and upgraded
to 0.9.1_beta3 w/ kernel 2.4.1-ac2.
After the upgrade, vgscan does not find any volume groups.
Reverting to prior tools + kernel does not work as the on disk
vg structures have been altered (presumably upgraded to the v2
format).
I have no suitably recent vgcfg backups, so restoring is not an
option.
Thus, I have been digging in vgscan to see what is going wrong.
My question is this...
I look at the output of pvdata -U on a physical volume.
I see 3 UUID slots, which matches the number of pv's in the vg.
However, on the first pv in the vg, only the first one is filled.
On the second pv in the vg, the first two are filled. On the
third pv of the vg, all three are filled.
Within pv_read_all_pv_of_vg.c, there is a call to
pv_read_uuidlist(), this routine is scanning the first pv,
and thus only returns one uuid.
Later the result is only the first pv is returned from
pv_read_all_pv_of_vg().
My theory is each pv is supposed to have the the UUID's of
itself, and all other pv's in it's vg within it's UUID
datastructure. Is this so?
If this is the case, it seems it would be possible to write the
correct UUID's to the datastructure on disk, and potentially
improve (maybe even fix) my situation.
Any advice would be welcome. A lot of important data is riding on
solving this problem.
One more note that might be of interest, these volume groups were
created with a much earlier version of lvm, 0.6 or 0.7 I believe.
Thank you.
-Michael McLinn
next reply other threads:[~2001-02-06 2:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-06 2:40 Michael McLinn [this message]
2001-02-06 6:30 ` [linux-lvm] 0.9.1 vgscan doesn't detect upgraded vg's Andreas Dilger
2001-02-06 8:22 ` dmeyer
2001-02-07 9:44 ` Andreas Dilger
2001-02-07 11:40 ` Patrick Caulfield
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=3A7F6413.A80D1803@twisted.net \
--to=mikem@twisted.net \
--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;
as well as URLs for NNTP newsgroup(s).