PV not reconized after vgcfgrestore?
After my a system (lvm 1.0.6) hung, volume group data (out of 2) disappeard. There were no IO-errors in the system log.
A pvscan will not show the lost PV, and vgimport tells:
vgimport -- ERROR "pv_read(): PV identifier invalid" reading physical volume "/dev/hde1"
Now, when I try to restore, it should fix the PV in my understanding. But pvscan still does not bring it back. What could I do?
Your help is appreciated, as it would save me a day of work since the last backup :-) Rainer Hoerbe
# vgcfgrestore -l -l -n data /dev/hde1 vgcfgrestore -- INFO: using backup file "/etc/lvmconf/data.conf" --- Volume group --- VG Name data VG Access read/write VG Status NOT available/resizable VG # 1 MAX LV 256 Cur LV 3 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 1 Act PV 1 VG Size 149.04 GB PE Size 4 MB Total PE 38153 Alloc PE / Size 38145 / 149 GB Free PE / Size 8 / 32 MB VG UUID RGvrGj-qVpF-e3ke-n17z-oQAx-g3c6-WHvNYu
--- Logical volume ---
LV Name /dev/data/m-data VG Name data LV Write Access read/write LV Status NOT available LV # 1 # open 0 LV Size 80 GB Current LE 20480 Allocated LE 20480 Allocation next free Read ahead sectors 1024 Block device 58:1
--- Logical volume ---
LV Name /dev/data/e-data VG Name data LV Write Access read/write LV Status NOT available LV # 2 # open 0 LV Size 5.20 GB Current LE 1332 Allocated LE 1332 Allocation next free Read ahead sectors 1024 Block device 58:2
--- Logical volume ---
LV Name /dev/data/video VG Name data LV Write Access read/write LV Status NOT available LV # 3 # open 0 LV Size 63.80 GB Current LE 16333 Allocated LE 16333 Allocation next free Read ahead sectors 1024 Block device 58:3
--- Physical volume ---
PV Name /dev/hde1 VG Name data PV Size 149.04 GB [312560577 secs] / NOT usable 4.31 MB [LVM: 277 KB] PV# 1 PV Status available Allocatable yes Cur LV 3 PE Size (KByte) 4096 Total PE 38153 Free PE 8 Allocated PE 38145 PV UUID y5rlkX-JZy2-yukW-8hkA-xeoh-U8qe-ulpuMs