Find out old LV sizes?

 
SOLVED
Go to solution
AndyMc
Occasional Contributor

Find out old LV sizes?

I have a HP-UX 11iv3 host ignite backup of vg00 only and a data protector backup of the whole host. 

 

I need to restore the machine to barnd new hardware (I there fore have no LVM info on the disks). 

 

I have been easily able to recover the vg00 and boot the system using ignite.  I can now recover the data on the other VGs using Data Protector, but first I need to know the sizes of the LVs so I can make all the filesystems. 

 

With the above info, how can I find out what sizes the LVs were?  I can use vgcfgrestore to find out the sizes of the disk in each VG, but as yet have not worked out how to get the LV sizes - any ideas?

5 REPLIES 5
Kris_Knigga
Trusted Contributor

Re: Find out old LV sizes?

Interesting dilemma.

I can't think of any way to do it besides guesstimating based on the information in Data Protector. You might not know how big the LVs were, but you should be able to figure out how big they need to be.

Kris Knigga
Patrick Wallek
Honored Contributor

Re: Find out old LV sizes?

The only information I have been able to come up with is to list the VG information from the vgcfgbackup files that are located in the /etc/lvmconf directory.

 

For example:

 

# cd /etc/lvmconf

#  vgcfgrestore -l -f vg02.conf -v
Volume Group Configuration information in "vg02.conf"
VG Name /dev/vg02
 ---- Physical volumes : 2 ----
      PV         Type         Size (kb)          Start (kb)   PVkey
      c4t3d0   Non-Boot       17783240           1024        0
      c4t4d0   Non-Boot       17783240           1024        1

max_pv 2048  max_pe 2168 max_lv 2047 vg_version 2.1 vg_size 34700m

 

Unfortunately this doesn't show the LV configuration, but you can see the total size of your VGs this way, if that helps.

Dennis Handly
Acclaimed Contributor

Re: Find out old LV sizes?

Do you still have the old system to run lvdisplay?

Does ignite copy the old /etc/lvmtab to the new system?  Or it only has entries for vg00?

Torsten.
Acclaimed Contributor
Solution

Re: Find out old LV sizes?

If the old system is still running, you should use it to get the values.
If not, look for the print_manifest output in the archive.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
AndyMc
Occasional Contributor

Re: Find out old LV sizes?

Bingo!  Thanks Torsten.  The information is in the manifest file in the ignite recovery archive directory.  Many thanks!