Operating System - HP-UX
1830554 Members
3230 Online
110013 Solutions
New Discussion

recovering volume group info

 
SOLVED
Go to solution
David DiBiase
Frequent Advisor

recovering volume group info

We lost our root drive and didn't have an ignite tape for that machine. Ooops. We put a new root on the machine and now we need to recover all the volume groups that were on this machine. We don't know what VGs were on which disks (If that matters?)

Does anyone know if there a checklist that explains the steps we need to take to recover this development machine.

TIA
Dave
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: recovering volume group info

Hi David:

Well, create '/dev/vgNN/group' files for the missing volume groups and run 'vgscan -av' to create a new '/etc/lvmtab' file. When done, 'vgimport' each volume group and do 'vgchange -ay vgNN'.

Regards!

...JRF...
Ninad_1
Honored Contributor

Re: recovering volume group info

You can do a vgscan -a [ you can also use the -p option in addition to preview what vgscan will do ]
Do a man vgscan for more info.

Regards,
Ninad
Enrico_19
New Member

Re: recovering volume group info

Hi,
for the vg name you can try to run the pvdisplay command in the disks connect at the system.
You should have the output:

pvdisplay: Couldn't retrieve the names of the physical volumes belonging to volume group "/dev/vgname".

Then

mkdir /dev/vgname
mknod /dev/vgname/group c 64 0xNN0000

(where NN are sequential number)

vgscan -a

strings /etc/lvmtab (for VG/DISK association)

vgimport /dev/vgname pv_paths

Enrico
Jaime Bolanos Rojas.
Honored Contributor

Re: recovering volume group info

David, if your root drive was mirrored please follow the steps below:

do a: vgcfgrestore -n /dev/vgname /dev/rdsk/cxtxdx

then do: mkboot /dev/rdsk/cx0txdx

then do: mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

then a: vgchange -a y vgname

and finally a: vgsync vgname

that should do the trick for you if the root disk was mirrored.

Regards,

Jaime
Work hard when the need comes out.
David DiBiase
Frequent Advisor

Re: recovering volume group info

Thanks for your quick responses. I hope this episode will teaches us to test the Ignite tapes once is a while.

I also wish I could get the company to spring for mirrored disks but, oh well...

Thanks again