[linux-lvm] vgscan -- ERROR -132: volume group "vgall" is inconsistent
Andreas Martin
wipeout at cs.tu-berlin.de
Sat Feb 3 05:11:59 UTC 2001
Hi there.
I got a incredible lvm inconsistency simply by trying to remove two
logical volumes with yast1.
I can exactly describe what I did:
I'm running Suse 7.0 with Kernel 2.2, all partitions are listed below:
lvmdiskscan -- reading all disks / partitions (this may take a while...)
lvmdiskscan -- /dev/hda1 [ 10.3 MB] Primary LINUX native
partition [0x83]
lvmdiskscan -- /dev/hda2 [ 1.9 GB] DOS extended partition [0x5]
lvmdiskscan -- /dev/hda3 [ 17.18 GB] Primary LVM partition [0x8E]
lvmdiskscan -- /dev/hda5 [ 1.77 GB] Extended LINUX native
partition [0x83]
lvmdiskscan -- /dev/hda6 [ 127.45 MB] Extended [0x82]
lvmdiskscan -- /dev/hdc1 [ 38.16 GB] Primary LVM partition [0x8E]
lvmdiskscan -- /dev/hdd1 [ 76.34 GB] Primary LVM partition [0x8E]
lvmdiskscan -- 3 disks
lvmdiskscan -- 0 whole disks
lvmdiskscan -- 0 loop devices
lvmdiskscan -- 0 multiple devices
lvmdiskscan -- 0 network block devices
lvmdiskscan -- 7 partitions
lvmdiskscan -- 3 LVM physical volume partitions
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hda3" is associated to an unknown VG (run
vgscan)
pvscan -- inactive PV "/dev/hdc1" is associated to an unknown VG (run
vgscan)
pvscan -- inactive PV "/dev/hdd1" is associated to an unknown VG (run
vgscan)
pvscan -- total: 3 [131.67 GB] / in use: 3 [131.67 GB] / in no VG: 0 [0]
I had a VG called vgall containing /dev/hda3 /dev/hdc1 and /dev/hdd1
with 3 LVs in it
/dev/vgall/music [~120GB]
/dev/vgall/data [~10GB]
/dev/vgall/backup [~10GB]
All three LVs containing reiserfs.
/dev/vgall/data and /dev/vgall/backup were both empty, so I wanted
to remove them.
Therefor I deactivated all three LVs and the VG vgall. Because I was
lazy I wanted to remove
the two LVs with yast1. Trying to remove LV data and backup, yast
returned an error code.
I quit yast and tried to mount the old LVs, they were unmountable and
unremovable:
lvremove -- ERROR: "/etc/lvmtab.d" doesn't exist; please run vgscan
But vgscan leads to:
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vgall"
vgscan -- ERROR -132: volume group "vgall" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "vgall"
vgscan -- successfully created
vgscan -- WARNING: you may not have an actual backup of your volume
group
Unfortunately "/etc/lvmtab" and "/etc/lvmtab.d" still don't exist.
pvdata reports a lot of "pvdata -- logical volume struct at offset 189
is inconsistent"
on /dev/hda3 and /dev/hdc1. (/dev/hdd1 is ok, there should be the major
part of the LV /vgall/music)
When calling the lvm - configurator in yast1, yast quits with a
segmentation fault.
What went wrong, and is there any way to save my data at
/dev/vgall/music?
Thanks a lot for any comments,
Best Regards,
Andreas Martin.
More information about the linux-lvm
mailing list