Installing and Managing HP-UX Virtual Partitions (includes A.04.01)

Monitor and Shell Commands
Boot||Shut: Other Boot Modes
Chapter 5
146
Changing the LVM Boot Device Hardware Path for a Virtual Partition
Example
Below are the steps to move the root disk of a single virtual partition.
Verification
These instructions require that the virtual partition be constrained
in the following way:
the logical volume used for the primary swap device must be
on the boot device; in other words, boot and swap must be on the same disk device.
This can be verified by the following steps:
Step 1. Run lvlnboot.
lvlnboot -v /dev/vg00
Step 2. Examine the output to identify the “Boot” and “Swap” logical volumes. For example:
Boot: lvol1 on: /dev/dsk/c1t6d0
Swap: lvol2 on: /dev/dsk/c1t6d0
Step 3. Make sure that the boot and swap logical volumes are on the same device.
CAUTION If the boot and swap logical volumes are not on the same device, do not proceed with
these instructions. You will need to contact HP for assistance.
Preparation
Before changing the hardware path of the boot device:
Step 1. Create a mapfile for the root volume group. Keep the mapfile in the root (/) directory, so that it is
accessible during single user mode boot.
vgexport -p -m /mapfile.vg00 /dev/vg00
Step 2. Get a list of physical volumes (PVs) in the root volume group. Keep the PV list file in the root (/)
directory, so that it is accessible during single user mode boot.
vgexport -p -f /pvs.vg00 /dev/vg00
Step 3. You may now shutdown the virtual partition and physically move the disk.
Change the boot device hardware path
Step 1. From another virtual partition, change the target virtual partition attributes
vparmodify -p partition_name -a io:new_path:boot -B manual
vparmodify -p partition_name -d io:old_path
where