HP-UX HB v13.00 Ch-21 - Itanium
HP-UX Handbook – Rev 13.00 Page 22 (of 35)
Chapter 21 Itanium Architecture (IA)
October 29, 2013
How to mirror the root disk
The following procedure shows how to mirror the root disk. Let c1t0d0 be the existing primary
disk and c2t1d0 the new mirror boot disk:
For LVM
1) Setup the disk partitions
At a cold-installed UX 11.23 system the partition sizes are different compared to UX 11.22.
Use diskinfo(1M) to check the partition sizes. E.g. for a UX 11.23 system you would get:
# diskinfo /dev/rdsk/c1t0d0s1 | grep size
size: 512000 Kbytes
# diskinfo /dev/rdsk/c1t0d0s3 | grep size
size: 409600 Kbytes
Create a partition description file:
UX 11.22
UX 11.23 (cold-installed)
# vi /tmp/partitionfile
2
EFI 100MB
HPUX 100%
# vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB
Use idisk(1M) command to partition the disk according to this file:
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
...
2) Create the new device files for the new partitions (c2t1d0s1, s2, (s3))
# insf -e -Cdisk
3) Use efi_fsinit(1M) to initialize the FAT filesystem on the EFI partition:
# efi_fsinit -d /dev/rdsk/c2t1d0s1
NOTE: This step is not neccessary if it can be guaranteed that the mirror disk does not contain a
valid EFI filesystem. In this case efi_fsinit(1M) will be done automatically by the subsequent