Operating System - HP-UX
1753404 Members
7201 Online
108793 Solutions
New Discussion юеВ

Re: LVM configuration lost

 
ramg_1
Occasional Contributor

LVM configuration lost

hai there,
i have a problem where i lost all my lvm configuration. when i do vgdisplay -v /dev/vg00, it returns nothing. so as the /etc/lvmtab.

i try

mv lvmtab lvmtab.orig
vgscan -v

also return a empty lvmtab file

but when i try bdf, all the file system seems inplace.

can anyone please me figure this out.

 

P.S. This thread has been moved from Disk to HP-UX > LVM and VxVM. -HP Forum Moderator

4 REPLIES 4
Shaikh Imran
Honored Contributor

Re: LVM configuration lost

Hi,

What does ioscan -fnC disk say ?
Do you get any error while doing vgscan -v ?
what do you get when you try to activate a vg.
how many vg's do you have ?
Is your system working fine ?
If no then is it botable from the alternate kernel ?

Regards,

I'll sleep when i am dead.
ramg_1
Occasional Contributor

Re: LVM configuration lost

ioscan -funC disk show both disk
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST39175LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST39175LC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

, as for vgscan -v, just go back to prompt and didn't return anything even didn't recreate the /etc/lvmtab file.

i don't have another copy kernel, since all these problem occur after the primary boot(P0) failed and replace with a another disk. currently boot with P1.

i try restore the conf using

vgcfgrestore -f /appl/qa/vg00.backup /dev/rdsk/c0t8d0 and it failed.


Massimo Bianchi
Honored Contributor

Re: LVM configuration lost

Hi,
try to re-import the vg00:



1) create a mapfile. Its sintax is

number lvolname


for example


1 lvol1
2 lvol2
3 lvol3



repeat for ALL the lvols. remember to include the swap!!!

2) create directory /dev/vg00
3) create /dev/vg00/group

mknod /dev/vg00/group c 64 0x000000


4) try to import it


vgimport -f MAPFILE vg00

Good luck,
Massimo


ramg_1
Occasional Contributor

Re: LVM configuration lost


actually it seems like the problem is not from the vg configuration but some how some of the files in /usr/sbin corrupted. after i replace with another copy from another machine, all the commands responced. i can see my volume groups.

sorry to trouble you so much.