Operating System - HP-UX
1835051 Members
2791 Online
110073 Solutions
New Discussion

Re: lvm after installing HP-UX 11

 
SOLVED
Go to solution
Jay Cantwell
Regular Advisor

lvm after installing HP-UX 11

I am in the middle of planning an OS upgrade on a K460 box from 10.20 to 11.0....my question is after the system comes up on 11.0 how are the remaining volume groups and logical volumes known to the new system...should I do a vgexport and create mapfiles on all vg's before doing an fbackup
then do a vgimport afterwards ??

any advise would be appreciated....thanks..Jay
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: lvm after installing HP-UX 11

Jay,

The short answer to your question: YES!

Now for a few more details:

Are you going to do an actual upgrade or are you going to do a fresh clean install of HPUX 11? If you do an upgrade (NOT the recommended way by most folks in the forums) then there should be no problems with seeing your existing LVM structures, although it is always good to have a backup, just in case.

If you do a new install, however, I would definitely do a vgexport of your VGs and generate the map files. I would then make sure that you have those on tape, or ftp them to your PC or e-mail them to yourself, so that you can easily get them back onto your box after the installation.

Good Luck!!!
James R. Ferguson
Acclaimed Contributor

Re: lvm after installing HP-UX 11

Jay:

Yes, vgexport and vgimport will handle your non root disk data. As always, the best insurance is to have a good backup of your system beforehand.

For each VG the following applies:

# umount
# vgchange -a n /dev/vgXX
# vgexport -v -m /tmp/mapfileXX /dev/vgXX

...preserve /tmp/mapfileXX to tape...
...install OS...
...load /tmp/mapfileXX from tape...

# mkdir /dev/vgXX
# mknod /dev/vgXX/group c 64 0xXX0000
# vgimport -m /tmp/mapfileXX /dev/vgXX /dev/dsk/cXtXdX ...
# vgchange -a y /dev/vgXX
# vgcfgbackup /dev/vgXX

...JRF...
Tim Malnati
Honored Contributor

Re: lvm after installing HP-UX 11

Patrick has it right but I would add a step to output the existing structure of your volume groups with 'vgdisplay -v ' (one for each volume group). Store the output along with the maps and you'll have a ready reference to validate vgimport afterward.
Jay Cantwell
Regular Advisor

Re: lvm after installing HP-UX 11

I thank all of you for your great advice...it
answered my questions very well....now, lets take it a step further, I am going to make an ignite system_recovery tape using the mk_recovery utility..I have noticed that this utility creates the mapfiles on /etc/lvmconf...will these files do the job for me

thanks again... Jay
Steve Post
Trusted Contributor

Re: lvm after installing HP-UX 11

I don't know about saving the lvconf directory. But remember to use "-p" if making the map files without disabling the volume group (ie vg01 is GONE). The "vgdisplay -v" is a very good idea too, because the map files I have seen do NOT tell you the disk device names that were part of the volume group. The map files just tell hp the names and numbers of the logical volumes within this volume group. Run a man page on vgexport and vgimport. You'll see you may have to use the disk device names to reinput the volume group.