HP-UX Virtual Partitions Administrator's Guide (includes A.03.05 and A.04.05)

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:
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
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
3. You may now shutdown the virtual partition and physically move the disk.
Change the boot device hardware path
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
partition_name is the target virtual partition
new_path is the new hardware path of the disk
old_path is the old hardware path of the disk
2. Verify the attributes
vparstatus -v -p partition_name
Boot into LVM maintenance mode
Boot the target virtual partition into LVM maintenance mode. For example, at the Monitor
prompt:
MON> vparload -o -lm -p partition_name
LVM maintenance mode steps
1. Once the partition comes up in LVM maintenance mode, run ioscan to get the device
filename of the boot device
ioscan -fnkCdisk
If the device filename (/dev/dsk/file) is new, use insf to install the special files in/dev
directory.
2. Run vgscan to get the device filenames grouped with the boot device.
vgscan
3. Remove the old information about root volume group.
vgexport /dev/vg00
You may have to remove/etc/lvmtab.
4. Prepare to import the root volume group (vg00).
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x00000
Other Boot Modes 165