[linux-lvm] recreate metadata of an PV possible if vda-backup present?

Malte Woelky Malte.Woelky at gmx.de
Thu Jan 22 08:53:02 UTC 2004


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)


-- 
Best regards,
 Malte                          mailto:malte.woelky at gmx.de

_________________
Malte Woelky -=[SkyNet]=- 
Unix/DBs/Networks/LDAP/Active Directory 
Cert  : MCSA 2000+2003, MCSA:msg, MCSE 2000+2003
voice : 0209/977 37 03 : 0174/95 32 105 
eMail : Malte.Woelky at gmx.de 
WWW : http://www.woelky.net/ 
_________ ICQ# 12 767 43 99 _________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vgimport.txt
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20040122/a520bb58/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vg01.conf
Type: application/octet-stream
Size: 338216 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20040122/a520bb58/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvmtab.
Type: application/octet-stream
Size: 20 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20040122/a520bb58/attachment-0001.obj>


More information about the linux-lvm mailing list