HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 36 (of 110)
Chapter 13 LVM
October 29, 2013
Root Mirror (PA-RISC Systems)
To set up a mirrored root config you need to add an additional disk (e.g. c1t6d0) to the
root VG mirror all the LVs and make it bootable.
1. Initialize the disk and add it to vg00:
# pvcreate [-f] -B /dev/rdsk/c1t6d0
# vgextend vg00 /dev/dsk/c1t6d0
2. Mirror the LVs using lvextend:
# lvextend m 1 /dev/vg00/lvolX /dev/dsk/c1t6d0
If you want to use a shell loop to extend automatically, use e.g.:
# for lvol in lvol1 lvol2 ... lvol8 (specify any LV you need to mirror)
> do
> lvextend -m 1 /dev/vg00/$lvol /dev/dsk/c1t6d0
> done
3. Important: Configure LIF/BDRA, according to the LIF/BDRA Configuration
Procedure at the end of this chapter.
4. Specify the mirror disk as alternate boot path in stable storage:
# setboot a <HW-Path of mirror>
To determine the hardware path use e.g. ioscan:
# ioscan -fnk /dev/dsk/c1t6d0
Class I H/W Path Driver S/W State H/W Type Description
===========================================================
disk 0 0/0/2/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST39102LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
# setboot a 0/0/2/0.6.0
5. Add the new mirror boot device to /stand/bootconf, e.g.:
l /dev/dsk/c0t6d0 (original boot device)
l /dev/dsk/c1t6d0 (new mirror boot device)
If you like to remove the mirror again, you need to use lvreduce: