4 messages in com.redhat.linux-lvm[linux-lvm] recreate metadata of an P...
FromSent OnAttachments
Malte WoelkyJan 22, 2004 8:52 am.txt, .conf, .Other
Patrick CaulfieldJan 22, 2004 9:09 am 
Malte WoelkyJan 22, 2004 11:08 am 
Patrick CaulfieldJan 22, 2004 11:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[linux-lvm] recreate metadata of an PV possible if vda-backup present?Actions...
From:Malte Woelky (Malt@gmx.de)
Date:Jan 22, 2004 8:52:40 am
List:com.redhat.linux-lvm
Attachments:
vg01.conf - 446k
lvmtab. - 0k

Hallo,

I had an VG called 'vg01' which contained the only PV /dev/hdc

My problem happened during a system upgrade, where I could have removed the VG from the system or something else happened...

I do have an VDA backup /root/lvmconf/vg01.conf (attatched to this mail)

Is ist possible to recrate or restore the PV metadata? I believe that the data stored on this PV may be still there ...I hope so.

I searched the last two months for an sollution, but found nothing using google, diverse mailing list archives, heise-forum, etc ...

does someone on this list have any tip?

I would be very, very happy if someone could post some hints to try...

Yours Malte

----

pvscan & lvmdiskscan don't recognise either the PV nor the VG 'vg01':

------------------------------------------------ coldfusion:~ # pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/sda2" of VG "vgraid5" [447.09 GB / 428.59 GB free] pvscan -- ACTIVE PV "/dev/sdb" of VG "vg05" [76.69 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda2" of VG "vg00" [2.21 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda4" of VG "vg00" [13.92 GB / 564 MB free] pvscan -- ACTIVE PV "/dev/hdb1" of VG "vg04" [57.27 GB / 0 free] pvscan -- total: 5 [597.19 GB] / in use: 5 [597.19 GB] / in no VG: 0 [0]

------------------------------------------------

------------------------------------------------ coldfusion:~/coldfusion # lvmdiskscan lvmdiskscan -- reading all disks / partitions (this may take a while...) lvmdiskscan -- /dev/sda1 [ 23.50 MB] Primary LINUX native partition
[0x83] lvmdiskscan -- /dev/sda2 [ 447.09 GB] Primary LVM partition [0x8E] lvmdiskscan -- /dev/sdb [ 76.69 GB] USED LVM whole disk lvmdiskscan -- /dev/hdc [ 37.27 GB] free whole disk lvmdiskscan -- /dev/hdd [ 651.19 MB] free whole disk lvmdiskscan -- /dev/hda1 [ 70.57 MB] Primary LINUX native partition
[0x83] lvmdiskscan -- /dev/hda2 [ 2.22 GB] Primary LVM partition [0x8E] lvmdiskscan -- /dev/hda4 [ 13.92 GB] Primary LVM partition [0x8E] lvmdiskscan -- /dev/hdb1 [ 57.27 GB] Primary LVM partition [0x8E] lvmdiskscan -- 6 disks lvmdiskscan -- 3 whole disks lvmdiskscan -- 0 loop devices lvmdiskscan -- 0 multiple devices lvmdiskscan -- 0 network block devices lvmdiskscan -- 6 partitions lvmdiskscan -- 4 LVM physical volume partitions

------------------------------------------------

/dev/hdc shows 'free whole disk', but was in the past 'USED LVM whole disk'

pvdata shows this:

------------------------------------------------ coldfusion:~/coldfusion/lvmconf # pvdata -av /dev/hdc --- Physical volume --- PV Name /dev/hdc VG Name Zf^rRfžUª PV Size 37.25 GB [78118912 secs] / NOT usable 2.06 GB [LVM: 87.82
MB] PV# 0 PV Status NOT available Allocatable NO Cur LV 1 PE Size (KByte) 4096 Total PE 9541 Free PE 0 Allocated PE 9541 PV UUID ²K-f¿Ÿ-

pvdata -- can't seek to volume group struct physical volume "/dev/hdc"

------------------------------------------------

I attached 'vgimport -fdv -v vg01 /dev/hdc' - maybe this clould help?

which other info are usefull ?

could someone give me a hint, what to do?

I'm running Suse-Linux 8.2 LVM-Verison: Logical Volume Manager 1.0.6(mp-v6) Heinz Mauelshagen, Sistina Software 25/10/2002 (IOP 10)