Dynamic Root Disk and MirrorDisk/UX
1. Use the following commands to determine the size in megabytes of the (1) EFI, (2) HP-UX, and (3)
HPSP partitions on the current boot disk:
For 11iv2 Integrity:
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disks1 \
| awk '{print $1 / (1024)}'
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disks2 \
| awk '{print $1 / (1024)}'
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disks3 \
| awk '{print $1 / (1024)}'
Where boot_disk is the block device special file of the current boot disk.
For 11iv3:
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disk_p1 \
| awk '{print $1 / (1024)}'
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disk_p2 \
| awk '{print $1 / (1024)}'
# /usr/sbin/diskinfo -b /dev/rdsk/boot_disk_p3 \
| awk '{print $1 / (1024)}'
Where boot_disk is the block device special file of the current boot disk (for example,
/dev/disk/disk4).
2. Identify a disk that is not currently in use to be used as the mirror (If you were referred to this
section from ‘Three Disk Scenario’ above, this would be your mirror_disk). This EFI partition
should be as large as the EFI partition on the current disk. The HP-UX partition should be large
enough to hold all the logical volumes in the clone. Although the HPSP partition is optional, if it is
created, it should be the same size as the HPSP on the clone.
3. Create a temporary file, (for example: /tmp/partitionfile), containing the number of
partitions and the size of each partition to be created on the mirror disk. Use the information
from Steps 1–2 to determine partition sizes. Here is a sample command to create the file,
indicating three partitions with an EFI partition size of 500 MB, an HPSP partition size of 400
MB, and the remaining space allocated to the HP-UX partition:
# print '3\nEFI 500MB\nHPUX 100%\nHPSP 400MB' > /tmp/partitionfile
See idisk(1M) for more information about partitioning disks.
4. Use the file created in Step 3 to partition the mirror disk with idisk. (The echo will reply to the
confirmation request from the idisk command.)
# /usr/bin/echo yes | idisk -wf /tmp/partitionfile \
/dev/rdsk/mirror_disk
/tmp/partitionfile may then be removed if desired.
5. Use ioscan –fnkC disk to determine the hardware path to the mirror disk.
6. Use the insf command to create device files for all the newly-created partitions:
# /usr/sbin/insf –e –H hardware_path_to_mirror_disk