Dynamic Root Disk and MirrorDisk/UX

appending s1 on 11iv2 Integrity or _p1 on 11iv3 to the block device special file of the entire
disk.
5. Use lvremove to remove the mirror disk from the inactive system image:
Set the mirror environment variable to the mirror disk for PA-RISC systems, or to the second partition of
the mirror disk for Integrity systems:
Example for PA-RISC:
export mirror=/dev/dsk/c99t99d0
Example for 11iv2 Integrity:
export mirror=/dev/dsk/c99t99d0s2
Example for 11iv3:
export mirror=/dev/disk/disk7_p2
Once the environment variable is set, run the following (applies to all systems):
# for logical_volume in `vgdisplay -v drd00 | \
/usr/bin/grep "LV Name" | awk '{print $3}'`
> do
> lvreduce -m 0 $logical_volume $mirror
> done
# /usr/sbin/vgreduce /dev/drd00 $mirror
# /usr/sbin/pvremove character_device_of_mirror
Where character_device_of_mirror is the character (raw) device file of the mirror
disk, or of the second partition of the mirror disk for integrity systems.
You are now ready to mirror the booted system with LVM commands:
Because there are a number of differences in this procedure for PA-RISC and Integrity systems, the
description for PA-RISC is provided in its entirety, followed by the description for Integrity systems.
For more information on mirroring, you may also want to consult Chapter 6 of Managing Systems
and Workgroups: A Guide for HP-UX System Administrators, which is located at:
http://www.docs.hp.com/en/B2355-90950/index.html.
How to Mirror vg00 – HP 9000 System
Follow this procedure to mirror vg00 on an HP 9000 system:
1. Identify a disk that is not currently in use to be used as the mirror. This disk should be sufficiently
large enough to hold all the logical volumes in the clone. It should not currently be used as a
mirror of the original system image, or for any other purpose.
2. Run the pvcreate command on the character device file for the disk that will be the mirror,
using the -B option to make the disk bootable, and the -f option to overwrite any pre-existing
data on the disk:
# /usr/sbin/pvcreate –f -B /dev/rdsk/mirror_disk
3. Extend the root volume group vg00 to include the block device special file of the mirror disk: