1836574 Members
2522 Online
110102 Solutions
New Discussion

VG export / import

 

VG export / import

Hi,

I'm going to install hp-ux 11.00 on a 10.20
T600 system and I just want to confirm that
theese are the right steps to do on the VG's.
The VG's are not shared.

1. export all VG's on the 10.20 system with
"vgexport -m [mapfile] -v [vg name].

2. After 11.00 installation.
create all VG dirs under /dev and do
mknod /dev/[vg name]/group -c 64 0x??0000

3. Import VG's with:
vgimport -v -m [mapfile] /dev/[vg name] [disks]

4. Activate VG's.

All my vg's, execpt vg00 are extent based striped and mirrored, do I have to enter all disks in a vg in any special order when doing a vgimport ?

//Stefan.
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: VG export / import

Hi,

For the vgimport, if you are using the mapfile that you vgexport'ed, then there is no need for you to specify the PVs in order.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Patrick Wallek
Honored Contributor

Re: VG export / import

You could try using the '-s' option for vgexport / vgimport. The -s writes a VGID to the mapfile so that when you do the import you don't have to specify the disk list.

Since you are using extent based stripes, one thing you will want to do is make sure you keep a copy of your /etc/lvmpvg file. This has all of your physical volume group information. If you don't have the PVGs set up and try to extend one of your extent striped LVs, then it won't work. It has to have the PVG information.
Jeffrey L. Huff
Occasional Advisor

Re: VG export / import

This discussion fits exactly what I am also about to do. I have an additional part to the vgimport with the -s option though. My disks are dual pathed, will the "dual" path be picked up, and created in the VG as the alternate link? Since I do extent based striping, I know I will have to rebuild my lvmpvg, but I have created the lvmpvg based on the current pathing of the disks as they were originally added. Will the pathing also be kept?, or will it add the disks from the first address it finds them on?
Thanks for the feedback already given in the other reply.
Bill McNAMARA_1
Honored Contributor

Re: VG export / import

I don't think the T is supported on HPUX11
you should check that first... at least it ain't 64 bit for sure.

Bill
It works for me (tm)