HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)

l
lvextend(1M) lvextend(1M)
vgcreate command (see vgcreate (1M)).
One, and only one,
-l, -L,or
-m option must be specified.
-m mirror_copies Set the number of mirror copies allocated for each logical extent. A mir-
ror copy contains the same data as the original. mirror_copies can have
the value
1 or 2. It must be greater than the current value.
Data in the new copies is synchronized. The synchronization process can
be time consuming, depending on hardware characteristics and the
amount of data.
One, and only one,
-l, -L,or
-m option must be specified.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If
LANG is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default
to "C" (see environ (5)).
EXAMPLES
Increase the number of the logical extents of a logical volume to 100:
lvextend -l 100 /dev/vg01/lvol3
Increase the logical volume size to 400 MB:
lvextend -L 400 /dev/vg01/lvol4
Allocate two mirrors (that is, two copies of the original) for each logical extent of a logical volume:
lvextend -m 2 /dev/vg01/lvol5
Mirror a logical volume onto a particular physical volume.
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t3d0
Increase the size of a file system existing on a logical volume.
First, increase the size of the logical volume.
lvextend -L 400 /dev/vg06/lvol3
Unmount the file system.
umount /dev/vg06/lvol3
Extend the file system to occupy the entire (larger) logical volume.
extendfs /dev/vg06/rlvol3
Remount the file system.
mount /dev/vg06/lvol3 /mnt
SEE ALSO
lvchange(1M), lvcreate(1M), lvdisplay(1M), lvreduce(1M), pvchange(1M), pvdisplay(1M).
HP-UX 11i Version 2: September 2004 2 Hewlett-Packard Company Section 1M405