Dynamic Root Disk and MirrorDisk/UX

7. Run the pvcreate command on the character device file for the HP-UX (second) partition of the
mirror disk, using the -B option to make the disk bootable, and the -f option to overwrite any
pre-existing data on the disk:
For 11iv2 Integrity:
# /usr/sbin/pvcreate –f -B /dev/rdsk/mirror_disks2
For 11iv3:
# /usr/sbin/pvcreate –f -B /dev/rdsk/mirror_disk_p2
8. Extend the root volume group to the HP-UX partition of the mirror disk, using the block device file
of the second (HPUX) partition in the following command:
For 11iv2 Integrity:
# /usr/sbin/vgextend /dev/vg00 /dev/dsk/mirror_disks2
For 11iv3:
# /usr/sbin/vgextend /dev/vg00 /dev/dsk/mirror_disk_p2
9. Run mkboot to complete the setup of the disk as a boot disk. The -e option tells mkboot to use
EFI layout and the -l option tells mkboot that this volume will be used by a volume manager
(even if it is not currently used by one). Note that no partition number is given to this command; it
looks at the whole disk.
# /usr/sbin/mkboot -e -l /dev/dsk/mirror_disk
10. Create a temporary AUTO file and use the efi_cp command to copy it to the mirror, using the
block device of the first (EFI) partition. The –lq option ensures that the system will boot without
quorum. In the event of the primary boot disk failing this will allow the mirror disk to boot.
# print 'boot vmunix -lq' > /tmp/AUTO
For 11iv2 Integrity:
# /usr/sbin/efi_cp -d /dev/dsk/mirror_disks1 /tmp/AUTO EFI/HPUX/AUTO
For 11iv3:
# /usr/sbin/efi_cp -d /dev/dsk/mirror_disks1 /tmp/AUTO EFI/HPUX/AUTO
Finish with (for either):
# /usr/bin/rm /tmp/AUTO
11. Starting with the boot, swap, and root logical volumes, run lvextend to mirror each logical
volume:
For 11iv2 Integrity:
# /usr/sbin/lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/mirror_disk
# /usr/sbin/lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/mirror_disk
# /usr/sbin/lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/mirror_disk