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

Monitor and Shell Commands
Boot||Shut: Other Boot Modes
Chapter 5
147
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
Step 2. Verify the attributes
vparstatus -v -p partition_name
Boot into LVM maintenance mode
Step 1. 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
Step 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.
Step 2. Run vgscan to get the device filenames grouped with the boot device.
vgscan
Step 3. Remove the old information about root volume group.
vgexport /dev/vg00
You may have to remove /etc/lvmtab.
Step 4. Prepare to import the root volume group (vg00).
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x00000
Step 5. Import the root volume group (vg00). For example:
vgimport -m /mapfile.vg00 /dev/vg00 /dev/dsk/c1t1d0 /dev/dsk/c1t1d1
where the device filenames are obtained from the ioscan and vgscan above
Step 6. Activate the root volume group (vg00):
vgchange -a y /dev/vg00
You may also have to cleanup and prepare LVM logical volume to be root, boot, primary swap, or
dump volume as follows:
lvrmboot -r /dev/vg00
lvlnboot -b /dev/vg00/lvol1
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
mount