[linux-lvm] vgcfgrestore error !

Sébastien Riccio bastian at web-services.com
Tue Nov 20 12:40:02 UTC 2001


Hello !

I  got strang stuff going on with my lvm groups...

It crashed after a reboot and i also lost lvm files in /etc.

Now my group is unrecognized...

look at this : (the vg name is lithium)

the devices are /dev/hdf1 /dev/hdg1 /dev/hdh1 /dev/hdc1 /dev/hdb1

vgimport  -f lithium /dev/hdf1
vgimport -- ERROR "pv_read_all_pv_of_vg(): PV number" reading data of volume
group "l"

vgimport  -f lithium /dev/hdh1
vgimport -- ERROR: wrong number of physical volumes to import volume group
"lithium"

It seems that volume group name that vgimport reports for /dev/hdf1 is "l"
(as you can see with the vgimport utility outpout)
and the rests of the disks report it as "lithium", which is the correct
name.

Now if try to import the vg with all the devices, it says that /dev/hdf1 is
not in the same volume group than /dev/hdg1

But if i pvdisplay hdf1 and hdg1 :

--- Physical volume ---
PV Name               /dev/hdf1
VG Name               lithium
PV Size               38.18 GB / NOT usable 1.44 MB [LVM: 159.00 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              9773
Free PE               0
Allocated PE          9773
PV UUID               RxtFHo-8a4T-2HgW-UaRb-ECvU-tZaG-ZfKDDN


PV Name               /dev/hdg1
VG Name               lithium
PV Size               38.30 GB / NOT usable 3.99 MB [LVM: 159.00 KB]
PV#                   2
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              9803
Free PE               0
Allocated PE          9803
PV UUID               15PNMd-VnLP-XbWe-2cyU-A0Ia-xCxI-COXaMG

How is it possible that group names match with pvdisplay, but vgimport tells
me hdf1 is in group "l" ?????

Can you help ?

Thanks !








More information about the linux-lvm mailing list