HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

l
lvcreate(1M) lvcreate(1M)
The following command creates a logical volume in vgtest with EXTENT-BASED MIRRORED STRIPES:
lvcreate -D y -s g -m 1 -l 5 /dev/vgtest
The distributed allocation proceeds as follows:
A free extent is allocated from the 1st pvol in pvg1.
A free extent is allocated from the 2nd pvol in pvg1.
A free extent is allocated from the 1st pvol in pvg1.
A free extent is allocated from the 2nd pvol in pvg1.
A free extent is allocated from the 1st pvol in pvg1.
Mirrors for the five extents are then allocated from the free extents in pvg2 in a similar manner.
WARNINGS
The root, swap, and dump logical volumes (see lvlnboot(1M)) must be created with contiguous allocation
policy.
The creation of striped and mirrored logical volume(s) may prevent the import and activation of the volume
group on an earlier HP-UX release. See lvcreate(1M) on the earlier release to see if it explicitly states that
striping and mirroring is supported. If the striped and mirrored logical volumes of the volume group are
removed or un-mirrored, the volume group becomes again compatible with the older HP-UX releases.
By setting mirror consistency recovery off, crash recovery time will be reduced. After a system crash the
mirrored logical volume will be available, but there may not be consistent data across each mirror copy.
The only types of data that can safely be put on a mirrored logical volume with mirror consistency recovery
turned off are:
data not needed after a crash, such as swap or other raw scratch data, or
data that an application itself will automatically reconstruct; for example, a raw logical volume for
which a database keeps a log of incomplete transactions.
SEE ALSO
lvchange(1M), lvdisplay(1M), lvextend(1M), lvreduce(1M), pvchange(1M), intro(7), lvm(7).
HP-UX 11i Version 3: February 2007 5 Hewlett-Packard Company 471