Showing posts with label HP-UX. Show all posts
Showing posts with label HP-UX. Show all posts

Monday, December 7, 2015

VPAR Ignite (boot) Install on PA-RISC and Itanium Systems (HP-UX)

VPARS --- are called the Virtual Partitions.
==============================

Ignite boot of VPARs on PARISC

The VPARs can be installed using an Ignite server on PA-RISC as well as on the Integrity platform.

For this the Basic requirement as on PARISC platform is that of a VPAR that is installed and we can give the command “vparboot –I command”. VPAR MON command vparload can not however cannot be used to install OS on A VPAR.

On PARISC Server while booting from an Ignite-UX server, following is the sequence of steps that take place.

1) The ignite server is contacted via the LAN card of the VPAR from the source VPAR which makes a tftp connection to download WINSTALL and WINSTALLFS from the ignite server and passes the same to the VPMON. VPMON then puts this in the target VPAR Memory.

2) The Target VPAR then boots using the WINSTALL and the WINSTALLFS in the memory and then contacts the Ignite server using its own LAN card for the rest of the Installation.


On an Integrity Server this is Sequence of Steps.

1) On the source VPAR the command vparboot –I is given.

2) This information is passed on to the VPMON.

3) This makes necessary configurations in the EFI of the target VPAR and modifies the variables for the lanboot select.

4) The target VPAR has to be specified with the LAN CARD selection for booting.

5) Once the LAN CARD is selected, the target VPAR makes a tftp to the Ignite server to get the IINSTALL and IINSTALLFS and the rest part of the installation of the OS.

How to do OS and VPARs upgrade in the Mixed VPAR and the mixed OS Environments (HP-UX)




Things that have to be taken care while upgrading in the Mixed VPAR and the mixed OS Environments

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs

1) The Overall System VPMON has to be the latest.

2) The update-ux command has to be executed from the VPAR which is the latest bundle.

3) So the First VPAR that is the VPAR from the VPMON has to boot should have the latest VPAR bundle then only it shall have the latest VPMON.

4) All the VPARs have to have the latest update-ux software installed.

5) Only the VPAR that has the A.05.01 that is the latest one installed can give the commands like vparmodify, vparcreate and vparremove etc.

6) The NPAR primary boot path should be modified so as to boot the latest version of the VPMON and this might need changing the Primary boot path for the NPAR.

How do we install the VPARS with IgniteUX on the PA-RISC platform? ON PARISC PLATFORM (HP-UX)

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs



ON PARISC PLATFORM:

1) Boot the main NPAR server with the IGNITE server and install the OS onto that.

BCH> boot lan.xx.yy.zz.ww install , where xx.yy.zz.ww is the IP address of the Ignite server.

2) we create the VPAR as per our VPARS data sheet.

#vparcreate –p vpar1 –a cpu::2 –a cpu:::2 –a mem::1024 –a io:0.0.1 –a io:1.0.0 –a io:1/0/0/3/0.6.0:BOOT

#vparcreate –p vpar2 –a cpu::1 –a cell:1::1 – mem::1024 –a io:1.0.1 –a io:1.0.4 –a io:1/0/4/1/0/4/0.1.0.0.0.0.1:BOOT

#vparcreate –p vpar3 –a cpu::1 –a mem::1024 –a io:0.0.2 –a io:0.0.1 –a io:0/0/0/3/0.6.0:BOOT

NOTE: If we have to specify the memory in terms of GLM or CLM then we need to specify this at the time of creating the FIRST VPAR only.

#vparcreate –p vpar1 –G CLM:1024 –g ILM:1024 –a cpu::2 –a mem::1024 –a io:0.0.1 –a io:1.0.0 –a io:1/0/0/3/0.6.0:BOOT'

3) Reboot the system:

#shutdown –r 00

4) Interrupt the booting and from the BCH go to the ISL.

ISL> hpux /stand/vpmon vparload –p vpar1

5) Using the VPAR vpar1 in the booted mode from there Ignite Install all the remaining VPARs one by one. Keep the fact in mind that once we give the vparboot –I command for a VPAR, the source VPAR contacts the Ignite server and tftp downloads the WINSTALL and WINSTALLFS, and the VPMON loads the same into the memory of the target VPAR, which then connects to the IGNITE server for the remaining part of the installation.


vpar1#vparboot –p vpar2 –I xx.yy.zz.ww,/opt/ignite/boot/Rel_B.11.11/WINSTALL

VPMON shows that vpar2 is loaded, go to the Install screen of vpar2 using the CTRL-A and follow the rest part of the installation of the client.

HOW to install the VPARs using the IGNITE server on the INTEGRITY systems (HP-UX)

HOW to install the VPARs using the IGNITE server on the INTEGRITY systems


Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


NOTE: During the Ignite install on a VPAR in the Integrity server the LAN card of the target VPAR is used to boot the VPAR from the IGNITE server.


1) in the EFI shell configure the NPAR for the acpiconfig defaults


SHELL> acpiconfig default
SHELL> reset

To reboot the NPAR with the acpiconfig default setting as such reset has to be given.
Also make a note of the first boot path for the server.


2) Install the OS on the NPAR from an IGNITE server.


SHELL>lanboot select --- select the LAN card to boot over network from the IGNITE server and install the OS on the same. Make sure that VPARs Products also gets installed along with the OS on the system.


Also make a note of the first boot path for the server.


2) Install the OS on the NPAR from an IGNITE server.


SHELL>lanboot select --- select the LAN card to boot over network from the IGNITE server and install the OS on the same. Make sure that VPARs Products also gets installed along with the OS on the system.


3) Now create the VPARs on the server.


Create the FIRST VPAR first, say this one is vpar1.


#vparcreate –p vpar1 –a cpu::2 –a cpu:::2 –a mem::1024 –a io:0.0.1 –a io:1.0.0 –a io:1/0/0/3/0.6.0:BOOT

#vparcreate –p vpar2 –a cpu::1 –a cell:1::1 – mem::1024 –a io:1.0.1 –a io:1.0.4 –a io:1/0/4/1/0/4/0.1.0.0.0.0.1:BOOT

#vparcreate –p vpar3 –a cpu::1 –a mem::1024 –a io:0.0.2 –a io:0.0.1 –a io:0/0/0/3/0.6.0:BOOT

4) Set the system to be booted into the VPARs mode.

#vparenv –m vPars
#shutdown –ry 00


5) As the system comes in the EFI shell, we need to boot the same in the VPARs mode.



SHELL> fs0:
Fs0:>boot /stand/vpmon –p vpar1



vpar1 boots as a VPAR.




6) Install the Other VPARs from the Ignite server.

vpar1#vparboot –p vpar2 –I


This will lead to modify the EFI shell settings for vpar2 and shall execute the lanboot select for the same.

Go to the console of the vpar2 using CTRL-A.

The vparboot command uses the LAN card of the target VPAR vpar2 to contact the ignite server and boot the same from the IGNITE server.

IINSTALL and IINSTALLFS are tftp downloaded from the IGNITE server by the target VPAR LAN card only. 

The booting VPAR connects the IGNITE server using the same LAN card as specified and rest of the installation takes place from there.




Repeat the same steps for the other VPARs also.

VPARs booting the VPMON and VPMON Commands (HP-UX) PA-RISC and Integrity servers

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot the VPMON?

PARISC:


BCH> ISL
ISL> hpux /stand/vpmon


INTEGRITY:

SHELL> fs0:
Fso:>hpux
HPUX> boot vpmon

Options with the VPMON command:


-a read the VPDB and load all the VPARs that have the Autoboot attribute set.
-D /stand/vpdb – use the VPDB file /stand/vpdb


VPMON Commands: (Commands that can be given at the MON Prompt)


MON> readdb /stand/vpdb

NOTE:

On Integrity the /stand/vpdb is actually linked to /stand/boot.sys/stand/vpdb.backup.
So while performing the backup of the VPDB using the UNIX cp command we also have to create the link /stand/vpdb to the /stand/boot.sys/stand/vpdb.backup so that using the VPDB the VPARs can be booted.

MON>vparload –all  ---- boots all the VPARs irrespective AUTOBOOT/AUTOSEARCH is set or not.

MON> vparload –auto -- This will boot all the VPARs that have the AUTOBOOT set.

MON> vparload –p vpar1 –o “-is”

This boots the VPARs in the single user mode

MON>vparload –p vpar1 –b /stand/vmunix.other

This boots the VPAR from an alternate VPAR Kernel

MON>vparload –p vpar1 –B 0/0/0/3/0.6.0

Boot the VPAR from an alternate boot path

The alternate kernels for the VPARs are kept in the directory /stand/alternate_config/.

To see the bootpath

MON>bootpath

Reboot in nPars environment

MON>reboot nPars

Reboot in vPars environment

MON>reboot vPars

Reboot the MON (hence the system)

MON>reboot

Read a Text file in /stand

MON>cat /stand/stuents.txt

MON>cbuf vpar1 -- shows the console buffer of the partition.

MON>clear pending -- clears a pending RFR. If an RFR is pending the VPAR can not be booted so in some cases we need to clear the pending RFR.


Seeing the contents of LIF Area

MON>lifls

Get the contents of the AUTO file

MON>getauto

List the files in /stand

MON>ls

NOTE:
The following commands do not work when one or more of the VPARs are up and running, getauto, lifls and readdb.

The following commands are disabled when the VPAR is up that owns the bootdisk, ls and cat.

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


The Various States that a VPAR can be in are as follows:



The VPARs states that a VPAR can be at anytime are as follows.

1) load – the monitor VPMON is loading the kernel.

2) Boot – VPMON has loaded the kernel and the kernel is now booting the VPAR.

3) Up – the VPAR is up and running.

4) Shut – the VPAR is executing a graceful shutdown.

5) Down – the VPAR is down.

6) Crash – the VPAR is crashing due to HPMC, TOC etc , when the crash is complete, the VPAR goes to a down state.

7) Hung – the VPAR is not responding.

How to rename a VPAR | Change boot mode of a VPAR | Change the boot kernel of a VPAR

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


HOW CAN WE MODIFY THE ATTRIBUTES OF A VPAR?

#vparmodify –p vpar1 –P vpar1

This renames the VPAR vpar1 to vpar1.

Change the boot modes of a VPAR

#vparmodify –p vpar1 –B manual
#vparmodify –p vpar1 –B noserach


#vparmodify –p vpar1 –S static

This makes the attribute of the VPAR vpar1 as static that is the configuration of the resources on the VPAR vpar1 cannot be changed.


#vparmodify –p vpar1 –b /stand/vmunix.new

This configures the VPAR vpar1 to boot from the other kernel /stand/vmunix.new
The Alternate kernels to boot the VPARs are kept at the location /stand/alternate_config/.

How to Boot VPAR from an alternate boot path | How to boot vpars from an alternate boot disk

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot a VPAR using the Primary or Alternate Boot Paths?

vpar1#vparboot –p vpar2 –B pri
vpar1#vparboot –p vpar2

These two commands boot the VPAR vpar2 from the Primary that is default boot path.

vpar1#vparboot –p vpar2 –B alt

This boots the VPAR vpar2 from the alternate boot path as stated in the VPDB.

However if we want to boot the vpar2 using the VPMON command prompt, following are the commands:

MON> vparload –p vpar2 -- to boot from the Primary boot path.
MON> vparload –p vpar2 –B 0.8.0.0.2.0

This boots the VPAR vpar2 from the alternate boot path.HOW CAN WE MODIFY THE ATTRIBUTES OF A VPAR?

HOW CAN WE REMOVE A VPAR?




Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs



The removal of a VPAR requires the VPAR to be in a shut state. So we have to shut down the VPAR before removing the same using the vparremove command.


vpar2#shutdown –hy 00
vpar1#vparremove –p vpar2

However this only removes the VPAR from the VPDB and the VPAR cannot boot.


The same VPAR if created with the same configuration can be made up and running as vparremove does not disturb any data on the VPAR’s disks.

How to rename aa VPAR | Change boot mode of a VPAR | Change the boot kernel of a VPAR

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


HOW CAN WE MODIFY THE ATTRIBUTES OF A VPAR?

#vparmodify –p vpar1 –P vpar1

This renames the VPAR vpar1 to vpar1.

Change the boot modes of a VPAR

#vparmodify –p vpar1 –B manual
#vparmodify –p vpar1 –B noserach


#vparmodify –p vpar1 –S static

This makes the attribute of the VPAR vpar1 as static that is the configuration of the resources on the VPAR vpar1 cannot be changed.


#vparmodify –p vpar1 –b /stand/vmunix.new

This configures the VPAR vpar1 to boot from the other kernel /stand/vmunix.new
The Alternate kernels to boot the VPARs are kept at the location /stand/alternate_config/.

How to Boot VPAR from an alternate boot path | How to baoot vpars from an alternate boot disk

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot a VPAR using the Primary or Alternate Boot Paths?

vpar1#vparboot –p vpar2 –B pri
vpar1#vparboot –p vpar2

These two commands boot the VPAR vpar2 from the Primary that is default boot path.

vpar1#vparboot –p vpar2 –B alt

This boots the VPAR vpar2 from the alternate boot path as stated in the VPDB.

However if we want to boot the vpar2 using the VPMON command prompt, following are the commands:

MON> vparload –p vpar2 -- to boot from the Primary boot path.
MON> vparload –p vpar2 –B 0.8.0.0.2.0

This boots the VPAR vpar2 from the alternate boot path.HOW CAN WE MODIFY THE ATTRIBUTES OF A VPAR?

How to change or update the AUTOFile information AUTOBOOT Strimng for a VPAR

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


HOW CAN WE CHANGE THE AUTOFILE INFORMATION FOR A VPAR?

vpar1# vparmodify –p vpar2 –o “-is”
vpar1#vparmodify –p vpar1 –b “/stand/vmunix.other”

How to configure the NPAR and all the VPARs on the NPAR to autoboot

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


HOW CAN WE MAKE ALL THE VPARS AND THE NPAR TO AUTOBOOT?

1) Make the NPAR Autoboot and autosearch to on and define the Primary and the HAA and the Alternate path properly and set the Autoboot to on in the EFI NVRAM setting.

BCH configuration/EFI SHELL> pa pri 0/0/2/0.6.0
BCH configuration/EFI SHELL> pa alt 0/8/0/0.5.0
BCH configuration/EFI SHELL> auto on

2) For the first VPAR and the Second VPAR set the boot string to boot the VPMON and all the VPAR. Say vpar1 is the first VPAR has boot disk as 0/0/2/0.6.0 (/dev/rdsk/c2t6d0) and vpar2 is the VPAR that holds the alternate boot disk 0/8/0/0.5.0 (/dev/rdsk/c1t5d0).


PARISC

vpar1#mkboot –a “hpux /stand/vpmon –a” /dev/rdsk/c2t6d0”
vpar2#mkboot –a “hpux /stand/vpmon –a” /dev/rdsk/c1t5d0”


INTEGRITY

vpar1#mkboot –a “boot /stand/vpmon –a” /dev/rdsk/c2t6d0”
vpar2#mkboot –a “boot /satnd/vpmon –a” /dev/rdsk/c1t5d0”


3) For all the VPARs set the Autoboot and autosearch strings to on.

vpar1#vparmodify –p vpar1 –B auto
vpar1#vparmodify –p vpar1 –B search
vpar1#vparmodify –p vpar2 –B auto
vpar1#vparmodify –p vpar2 –B search
vpar1#vparmodify –p vpar3 –B auto
vpar1#vparmodify –p vpar3 –B search

How to boot VPARs in Single User mode or LVM Maintenance Mode or LVM Quorum override mode with Single User

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot a VPAR in various modes?

We can boot a VPAR in a desired mode from the UNIX Prompt using vparboot or using the VPMON vparload command. But the VPAR needs to be down to be booted in a desired mode.


vpar1#vparboot –p vpar2 –o “-is”  : Single user boot

vpar1#vparboot –p vpar2 –o “-lm”   : LVM Maintenance boot

vpar1#vparboot –p vpar2 –o “-lq” –o “-is”   : Single User with the Quorum ignore

From VPMON if we need to do the same things


VPMON

MON>vparload –p vpar2 –o “-is”   : Single user boot

MON>vparload –p vpar2 –o “-lm”   : LVM Maintenance Boot

MON>vparload –p vpar2 –o “-lq” –o “-is” : Single user with Quorum Ignore

How to reboot a hung VPAR | How to reset a Hung VPAR | What to do when the VPARs are in HUNG state | Soft reset and Hard Reset of VPARs | TOC of a VPAR | Hard Reboot of a HUNG VPAR

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot a hung VPAR?

If a VPAR hangs we can see that in the vparstatus –v O/p and act accordingly for that in the following way.

1) vpar1#vparmodify –p vpar2 –B manual

2) vpar1#vparreset –p vpar1 –t ---- for a TOC that s soft reset.

3) vpar1#vparreset –p vpar1 –h --- hard reset --- this stops the VPAR and sets the Autoboot mode off.

4) After the vpar2 has started properly we can set the mode back to auto.

vpar1#vparmodify –p vpar2 –B auto

How to change the boot device hardware path for a VPAR (HP-UX)


Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we change the hardware path of the boot disk in a VPAR?


vpar2 is the VPAR whose disk we are going to migrate to a new hardware path location.

1) Note the present boot configuration of the VPAR vpar1

vpar2#vparstatus –p vpar2 –v --- note boot path and Autoboot and autosearch settings.

vpar2#setboot

vpar2#lvlnboot –v

vpar2#vgexport –p –v –s –m /stand/vg00.map /dev/vg00

vpar2#vgexport –p –f /stand/vg00_pv_list /dev/vg00

2) Shutdown the VPAR and remove the disk.

vpar2#shutdown –hy 00

3) Make changes to the VPDB from the other VPAR.

vpar1#vparmodify –p vpar2 –a io:new_io_path: –a io:new_io_path:boot

vpar1#vparmodify –p vpar2 –d io:old_io_path

4) Boot the VPAR from the VPMON.

MON>vparload –p vpar2 –o “-lq” –B <new_io_path>

5) After the VPAR has booted access the prompt of that VPAR and do a VGIMPORT and lvlnboot and setboot and if reqd vparefiutil.

How to create an alternate VPAR database vpdb | How to use alternate vpdb for VPARs



Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs




How can we use an Alternate VPAR Partition Database file?

The main VPAR DB file is the /stand/vpdb. The Alternate VPDB file is addressed using the option –D /stand/vpdb.alt where the /stand/vpdb.alt is the alternate VPDB file.

The alternate VPDB file can be created easily with an entirely different configuration for the VPARs even when all the VPARs are up and running without disturbing the Live partition database in the VPMON memory.

On a running VPAR we can create the VPDB.ALT

Keira1#vparcreate –p new_vpar1 –D /stand/vpdb.alt –a cpu::4 –a cpu:::4 –a mem::1600 –a io:0.0 –a io:0.4 –a io:0.0.2.0.6.0:BOOT

Keira1#vparcreate –p new_vpar2 –D /stand/vpdb.alt –a cpu::4 –a cpu:::4 –a mem::1600 –a io:0.8 –a io:1.10 –a io:1.2 –a io:0.8.0.0.5.0:BOOT

Keira1# vparstatus;shutdown –hy 00

Keira2# vparstatus;shutdown –hy 00

Keira3# vparstatus;shutdown –hy 00

MON>reboot

BCH/COMMAND> Interrupt the Autoboot

ISL> boot /stand/vpmon –D /stand/vpdb.alt –a

This boots the VPMON and loads the same into the memory with the VPAR config information as present in the VPDB.ALT.

In case of Integrity Systems


EFI SHELL>fso:
Fs0:>boot vpmon –D /stand/vpdb.alt –a

Once this VPAR is booted and we need to change some config information as for the VPARs we need not mention the DB file as /stand/vpdb.alt as that only is now current in the Memory and all changes without specifying the DB file shall modify the configurations as mentioned in the /stand/vpdb.alt only.


NOTE:


On Integrity the DB file is actually /stand/boot.sys/stand/vpdb.alt and that is soft linked to the file /stand/vpdb.alt. The command vparcreate creates the link transparently for this file the first time when the first VPAR is created.



NOTE:


1) The –D option should be used with care as lesser checks are performed when creating an alternate VPDB.ALT, that the VPDB.ALT may be totally invalid.
2) The LVM rules always apply that we will have to vgexport and again vgimport the VGs so that we are able to use the VGs.
3) The VPDB and VPDB.ALT must be in the /stand that is HFS filesystem so that the VPMON reads only the HFS partition at boot.
4) What is the VPDB that the monitor has currently booted with can only be known using the VPDB time stamps as these VPDB are synchronized every 5 minutes with the copies in all the VPARs.

How to revert the VPAR configurations to use the default /stand/vpdb for a VPAR environment PA-RISC and Integrity machines running HP-UX

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs




If we want to revert to the OLD VPDB, then we need to shutdown all the current VPARs and give a reboot at the MON prompt. Interrupt the boot in BCH/EFI and give the command to boot the VPMON with no arguments, which shall boot the default /stand/vpdb.

BCH:
ISL> boot /stand/vpmon –a

EFI SHELL:
SHELL>fs0:
Fs0:>boot /stand/vpmon –a

How to check and fix the lanboot select or lanboot with a profile fails (HP-UX) | How to Troubleshoot Ignite-UX lanboot problems

 lanboot select or lanboot with a profile fails

1) In the /etc/bootptab file when you enter the clients MAC Address for ha: there is no leading 0x required.

Check the server response from a client in the same network with bootpquery command.


See more on man bootpquery.



2) If TFTP is running in the Ignite-UX sevrer, try to get a file using TFTP from a client in the same network 

make tftp to the Ignite server and try getting the file that is /opt/ignite/boot/nbp.efi and also for /opt/ignite/boot/Rel_B.11.31/IINSTALL and /opt/ignite/boot/Rel_B.11.23/IINSTALLFS --- note well --If i remember the paths correctly.

basically on the ignite server in /etc/inted.conf make sure

tftp 
bootps
instl_boots are uncommented.

make sure that you run #inted -c after you make any changes to /etc/inetd.conf



3) in /etc/services on the ignite server, make sure that you are having ports open for

tftp 69
instl_boots 1067
instl_bootc 1068
bootps 67
bootpc 68 

are free and reachable.


4) also please note that 


/opt/ignite/boot/nbp.efi is intact on the server and also /etc/bootptab can show you that this entry is there as 

bf=/opt/ignite/boot/nbp.efi:\


Also make sure that there is no other competing DHCP server racing with the Ignite server on the network.

How to import and export Volume Group when the device file names have changed (11iv2) HP-UX


In HP-UX 11iv2 or older the device files of the disks can change when you change the slot of the FC card or also when by any reasons the CxTxDx number changes. 11iv2 unlike 11iv3 does not use the persistent DSF.

The persistent DSFs bind to the WWID of a LUN in 11iv3 which does not change even if the controller position or the instance changes.

I suggest that you have  the latest map files of the VGs which are supposed to get affected.



Create a map file for all the VGs, say vg01,vg02 etc


1)


vgexport -p -v -s -m /tmp/vg01.map /dev/vg01
vgexport -p -v -s -m /tmp/vg02/map /dev/vg02


also make a note of

2)


ll /dev/*/group


note this information.


now ftp these map files like vg01.map,vg02.map etc to your desktop.

3) With the OS instance booted vgexport the current definitions of the VGs for which the disk cxtydz numbers have changed.


vgexport /dev/vg01
vgexport /dev/vg02


Create the VG Directories


mkdir /dev/vg01 /dev/vg02


Create the Group special files.

mknod /dev/vg01/group c 64 0xNN0000
mknod /dev/vg02/group c 64 0xMM0000


for these do refer to the info in 2) for the minor number information for the group file and try to keep this consistent for the VG as in the earlier Config.

then ftp the map files that had been saved to the desktop doing FTP after step 1). to /tmp directory of the server.

then using these do vgimport to get the new VGs come in 

vgimport -v -s -m /tmp/vg01.map /dev/vg01
vgimport -v -s -m /tmp/vg02.map /dev/vg02


Activate the VGs.

vgchange -a y vg01
vgchange -a y vg02



Take a new configuration backup of the VGs which are imported.


vgcfgbackup /dev/vg01
vgcfgbackup /dev/vg02


Do the mount operations for the file systems.