Operating System - HP-UX
1847207 Members
3431 Online
110263 Solutions
New Discussion

Recover vg01-2-3 information

 
SOLVED
Go to solution
Nick D'Angelo
Super Advisor

Recover vg01-2-3 information

All.

10.20
Rclass
Jbod 10x9gb disks

My root disk crashed last week and I needed to re-install the o/s which is now complete.

Previously, my machine had some additional vg's defined. It was my understanding that the VG groups would still be instact after I re-installed my o/S.

Question is, how do I do that, if at all possible? I have a bdf from the previous installation.

Lastly, if it is too difficult, I can re-create the vg's and restore the data in about 2 days.

Thanks,
Nickd
Always learning
3 REPLIES 3
Sanjay_6
Honored Contributor

Re: Recover vg01-2-3 information

Hi Nick,

If you have a vgcfgbackup from the old system, restore that to the new system and you can reclaim the Vg. Another choice is to do a "vgscan". This should rebuild your lvmtab file.

use "vgscan -v" . Do keep a copy of /etc/lvmtab before you run vgscan.

Hope this helps.

Regds


James R. Ferguson
Acclaimed Contributor
Solution

Re: Recover vg01-2-3 information

Hi Nick:

The data on your non-vg00 disks will be intact. Do a 'vgimport' do "reclaim" the disks. SAM can do this for you if you are uncomfortable with doing this via commandline.

Otherwise, look at the 'vgimport' man (1M) pages; essentially:

# vgimport -m mapfile -v -f infile vg_name

List the physical device files (/dev/dssk/cXtYdZ) in the ASCII file . In the ASCII place the logical volume names, one per line, like "lvol1", "lvol2", etc.

Regards!

...JRF...
Darrell Allen
Honored Contributor

Re: Recover vg01-2-3 information

Hi Nick,

If you have not re-used the disks that were previously used for vg01-3 then you can vgimport them easily. The data needed for vgimport is written on all the disks in the VG by LVM whenever something changes about the VG.

I presume you reloaded the OS on the same disks you had it on before (or if you replaced a disk because of the crash it was the same device path). If so, piece of cake.

If you don't have Ignite, you should get it. Rebuilding becomes a snap. You simply reload from a make_tape_recovery tape, re-mirror vg00 LVs, and vgimport the remaining VGs. Good stuff.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)