Exploring DRD Rehosting in HP-UX 11i v2 and 11i v3 (July 2010)

25
If the Simple Generating VM approach has been used, the device file of the clone disk on the
source was
/dev/dsk/c0t0d1
. Because no disks were defined on the target VM when it was
created, there will be no conflict in using the triple (0,1,1) for the disk on the target VM. The
following command adds the disk to the target VM:
# hpvmmodify -P drdivm2 \
-a disk:avio_stor:0,1,1:disk:/dev/rdisk/disk18
8. On the VM host, start the new VM with the hpvmstart command, then run hpvmconsole,
followed by CO, to connect to the EFI Boot Manager interface:
# hpvmstart -P drdivm2
# hpvmconsole -P drdivm2
o From the EFI Boot Manager, choose the EFI shell.
o Enter “fs0:” to choose Part1 of the boot disk.
o Enter “cd EFI\HPUX” to change to the HPUX directory.
o Enter “hpux.efi” to start the boot loader.
Special considerations for HP- UX 11i v2
: If the Single-user-mode repair approach is used,
interrupt the bootloader to get the HP-UX prompt, and then enter:
# boot lm
This boots the target VM into single user mode. You can then use the following steps, which are
a continuation of
step 8
above, to repair the LVM metadata: (These steps are adapted from the
Changing the LVM Boot Device Hardware Path for a Virtual Partition section in the
HP-UX Virtual
Partitions Administrator’s Guide (in the User Guide documents.)
8.1. Run insf and ioscan to get the device filename of the boot device:
# insf -e
# ioscan -fnC disk
8.2. Run
vgscan
to get the device filenames of the boot device:
# vgscan
8.3. Remove the old information about root volume group:
# vgexport /dev/vg00
You might have to remove /etc/lvmtab.
8.4. Prepare to import the root volume group (vg00):
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000
8.5. Import the root volume group (vg00):
# vgimport -m /drd00mapfile \
/dev/vg00/<block_device_file_of_HPUX_partition>