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

HP-UX Handbook Rev 13.00 Page 35 (of 110)
Chapter 13 LVM
October 29, 2013
Here’s an example configuration:
If you want to be sure that the mirrors of LVs on e.g. c0t1d0 are not placed on c0t2d0
you need a lvmpvg file like the following:
# cat /etc/lvmpvg
VG /dev/vg01
PVG pvg_a
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
PVG pvg_b
/dev/dsk/c1t4d0
/dev/dsk/c1t5d0
As soon as this file is saved the configuration is active and vgdisplay will look like this:
# vgdisplay -v vg01
...
...
--- Physical volume groups ---
PVG Name pvg_a
PV Name /dev/dsk/c0t1d0
PV Name /dev/dsk/c0t2d0
PVG Name pvg_b
PV Name /dev/dsk/c1t4d0
PV Name /dev/dsk/c1t5d0
Before mirroring a LV you need to set its allocation policy to PVG-strict, e.g.:
# lvchange -s g /dev/vg01/lvol1
# lvdisplay /dev/vg01/lvol1 | grep Allocation
Allocation PVG-strict
For details look at the lvmpvg man page.
pvg_b
c0t1d0
pvg_a
host
vg01
c0
c1
c0t2d0
c1t4d0
c1t5d0