Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6 631
NOTE To prevent the loss of flexibility that occurs when you create physical
volume groups, you may want to use lvextend, which allows you to
specify particular physical volumes. See “Extending a Logical Volume to
a Specific Disk” on page 577 for more information.
Mirroring Root, Boot, and Primary Swap Logical Volumes for HP
9000 (PA-RISC) Systems
By using mirror copies of the root, boot, or primary swap logical volumes
on another disk, you will be able to use the copies to keep your system in
operation if any of these logical volumes fail.
To mirror the root file system, you must first add a bootable LVM disk:
Step 1. Create a physical volume using pvcreate with the -B option.
pvcreate -B /dev/rdsk/c0t3d0
Step 2. Add the physical volume to your existing root volume group with
vgextend:
vgextend /dev/vg00 /dev/dsk/c0t3d0
Step 3. Use mkboot (1M) to place boot utilities in the boot area:
mkboot /dev/rdsk/c0t3d0
Step 4. Use mkboot -a to add an AUTO file in boot LIF area:
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t3d0
NOTE This example includes creating a mirror copy of the primary swap logical
volume. The primary swap mirror does not need to be on a specific disk
or at a specific location, but it does need to be allocated on contiguous
disk space. The recommended mirror policy for primary swap is to have
the Mirror Write Cache and the Mirror Consistency Recovery
mechanisms disabled.
When primary swap is mirrored and your primary swap device also
serves as a dump area, you must make sure that Mirror Write Cache and
Mirror Consistency Recovery is set to off at boot time to avoid loss of your