Skip to contentSkip to conversation

0.8 to 0.9 problems, odd vg corruption

linux-lvm Jesse Sipprell 2 participants 3 messages Dec 27, 2000 – Jan 2, 2001 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I've been in the process of upgrading four LVM 0.8final boxes to 0.9. The first three went off without a hitch: compile kernel with 0.9 patches, install user tools and reboot.

The fourth one didn't go as smoothly:

After installing the new kernel, user-land tools and rebooting, vgscan is no longer able to see the volume group (only one used on the box).

Rebooted back into 0.8, vgscan still doesn't work but I AM able to vgcfgrestore the previous volume group config onto the physical volumes.

Reboot into 0.9. vgscan sees the volume group and vgdisplay seems fine, but when I try to run vgcfgbackup, it reports 'ERROR: volume group "vg04" has an invalid number of physical volumes' There are four physical volumes in the group and vgdisplay -D vg04 looks perfectly normal. I am also able to mount the lvs and all filesystems appear good. Next, I vgchange bounce the vg down and then up and suddenly I am back to square one; vgscan no longer sees vg04 and my only recourse is to reboot to a 0.8 kernel and vgcfgrestore an old backup.

Now I am stuck. ;) I can vgcfgrestore from 0.8 and see it ONCE under 0.9, but as soon as I vgchange -a it up and then down, the same "corruption" seems to occur. At no point can I seem to vgcfgbackup under 0.9, although 0.8 works normally.

Anyone have any suggestions?

Best Regards,

Signature · 6 lines
Jesse Sipprell
Technical Operations Director
Evolution Communications, Inc.
800.496.4736

* Finger [email protected] for my PGP Public Key *

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines

After about half an hour of fiddling with the LVM tools and reading the FAQ, I found out that I could access the LV if and ONLY IF I did EXACTLY this:

vgcfgrestore -n data /dev/hd[ac]1
pvscan
vgchange -a y
mount /dev/data/archive

Quoted 6 lines

Any call to vgscan brings me back to the beginning ("unknown VG").

The problem however is this: Since then, even when booting cleanly vgscan doesn't detect any VGs any more. Before, it worked. I have compiled LVM into the kernel (no module) and attached the Debian startup script which I have modified slightly to accommodate for the no-module situation.

try:

	vgexport /dev/vgname;
	vgimport /dev/vgname /devices/in/the/vg;

should save you the problems.

Signature · 3 lines
 Steven Lembark                                   2930 W. Palmer St.
                                                 Chicago, IL  60647
 [email protected]                                   800-762-1582
#3 lore raw
Quoted 18 lines · Steven Lembark
Quoted 10 lines

After about half an hour of fiddling with the LVM tools and reading the FAQ, I found out that I could access the LV if and ONLY IF I did EXACTLY this:

vgcfgrestore -n data /dev/hd[ac]1
pvscan
vgchange -a y
mount /dev/data/archive

Quoted 6 lines

Any call to vgscan brings me back to the beginning ("unknown VG").

The problem however is this: Since then, even when booting cleanly vgscan doesn't detect any VGs any more. Before, it worked. I have compiled LVM into the kernel (no module) and attached the Debian startup script which I have modified slightly to accommodate for the no-module situation.

Quoted 6 lines

try:

	vgexport /dev/vgname;
	vgimport /dev/vgname /devices/in/the/vg;

should save you the problems.

I should have tried that, however I did "fix" the problem by copying the data elsewhere (it's on a large external RAID device, so I just created a new temporary vg/lv), deleting the original VG, re-creating and copying back. All appears to be well.

Signature · 6 lines
Jesse Sipprell
Technical Operations Director
Evolution Communications, Inc.
800.496.4736

* Finger [email protected] for my PGP Public Key *