HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)

For this example, the disk to be added is at hardware path 0/1/1/0.0x1.0x0, with device special
files named /dev/disk/disk2 and /dev/rdisk/disk2. Follow these steps:
1. Partition the disk using the idisk command and a partition description file.
a. Create a partition description file. For example:
# vi /tmp/idf
In this example, the partition description file contains the following information:
3
EFI 500MB
HPUX 100%
HPSP 400MB
The values in the example represent a boot disk with three partitions: an EFI partition, an
HP-UX partition, and an HPSP. Boot disks of earlier HP Integrity servers might have an
EFI partition of only 100 MB and might not contain the HPSP partition.
b. Partition the disk using idisk and your partition description file as follows:
# idisk -f /tmp/idf -w /dev/rdisk/disk2
c. To verify that your partitions are correctly laid out, enter the following command:
# idisk /dev/rdisk/disk2
2. Create the device files for all the partitions. For example:
# insf -e -H 0/1/1/0.0x1.0x0
The following device files now exist for this disk:
/dev/[r]disk/disk2 (this refers to the entire disk)
/dev/[r]disk/disk2_p1(this refers to the efi partition)
/dev/[r]disk/disk2_p2(this will be the hp-ux partition)
/dev/[r]disk/disk2_p3(this refers to the service partition)
3. Create a bootable physical volume using the device file denoting the HP-UX partition. For
example:
# pvcreate -B /dev/rdisk/disk2_p2
4. Add the physical volume to your existing root volume group as follows:
# vgextend vg00 /dev/disk/disk2_p2
5. Place boot utilities in the boot area. Copy EFI utilities to the EFI partition, and use the device
special file for the entire disk as follows:
# mkboot -e -l /dev/rdisk/disk2
6. Add an autoboot file to the disk boot area as follows:
# mkboot -a "boot vmunix" /dev/rdisk/disk2
NOTE: If you expect to boot from this disk only when you lose quorum, you can use the
alternate string boot vmunix lq to disable quorum checking. However, HP recommends
configuring your root volume group to minimize quorum losses, by using at least three physical
volumes and no single points of failure, as described in “Planning for Recovery” (page 37).
7. The logical volumes on the mirror boot disk must be extended in the same order that they are
configured on the original boot disk. Determine the list of logical volumes in the root volume
group and their order. For example:
# pvdisplay -v /dev/disk/disk0_p2 | grep 'current.*0000 $'
00000 current /dev/vg00/lvol1 00000
00010 current /dev/vg00/lvol2 00000
00138 current /dev/vg00/lvol3 00000
00151 current /dev/vg00/lvol4 00000
00158 current /dev/vg00/lvol5 00000
00159 current /dev/vg00/lvol6 00000
96 Administering LVM