Hi Paul,
You don't mention which version of the O/S you are running, but this should
help :
At HP-UX 10.20 with the latest "LVM commands cumulative
patch" (PHCO_18563), A new option was added to lvcreate
to enable the fast setup of extent based stripes.
You need to make the LV PVG strict and thus must use
the 'lvmpvg' file.
By way of an example, if you wanted to have an
LV (logical volume) containing 20 LEs across 4 PVs,
such that the PEs were ordered:
PV0, PV1, PV2, PV3, PV0, PV1 etc...
1. Setup 'lvmpvg' file as follows:
VG /dev/vg03
PVG PV0
/dev/dsk/c0t2d0
/dev/dsk/c0t2d1
/dev/dsk/c0t2d2
/dev/dsk/c0t2d3
2. Create your LV.
# lvcreate -l 20 -D y -s g vg03 (See manpage)
If you wanted a mirrored extent stripe LV then you
would need to setup another PVG in the 'lvmpvg' file,
for example:
VG /dev/vg03
PVG PV0
/dev/dsk/c0t2d0
/dev/dsk/c0t2d1
/dev/dsk/c0t2d2
/dev/dsk/c0t2d3
PVG PV1
/dev/dsk/c1t2d0
/dev/dsk/c1t2d1
/dev/dsk/c1t2d2
/dev/dsk/c1t2d3
Then :
# lvcreate -l 20 -D y -s g -m 1 vg03
This should create an extent striped mirrored LV.
To ensure you have the allocation you desire you must
make sure you have enough free PEs on the PVs.
See the updated man page for lvcreate with the
latest LVM command patch (Detailed above).
Also check the layout, via an l"vdisplay -v", before
loading any data to make sure it is as you want it.
Regards,
Roger.