HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)
l
lvextend(1M) lvextend(1M)
Data in the new copies is synchronized unless the
-s option is specified. The
synchronization process can be time consuming depending on hardware charac-
teristics and the amount of data.
One, and only one,
-l, -L,or
-m option must be specified.
-s Do not synchronize the new mirror copies. This may affect data high availability
so use
lvsync or vgsync to synchronize the mirrors.
The -m option must be specified along with this option.
Striped Logical Volume Considerations
Striped and mirrored logical volumes are supported.
An increase in size of a striped logical volume is done by increments of stripes logical extents. One incre-
ment corresponds to stripes physical extents if the volume is not mirrored or to stripes *(mirror_copies +1)
physical extents if the volume is mirrored. stripes is the number of disks the logical volume is striped
across. It is set with the option
-i stripes of the lvcreate command. mirror_copies is the number of
mirror copies allocated for each extent. It is set with the
-m option of the lvcreate and lvextend
commands. LVM striped logical volumes are always allocated using the strict or PVG-strict allocation poli-
cies. Each physical extent of an increment is allocated on a different physical volume in the volume group.
A size increase of a striped volume requires at least stripes (or stripes *(mirror_copies + 1) if the volume is
mirrored) physical volumes with adequate free space and meeting the allocation policy.
An increase of the number of mirror copies of a striped volume requires at least (stripes times the number
of copies to add) physical volumes with adequate free space and meeting the allocation policy.
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
Allocate one mirror and do not synchronize the new mirror copy:
lvextend -m 1 -s /dev/vg04/lvol1
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.
HP-UX 11i Version 2: December 2007 Update − 2 − Hewlett-Packard Company 531