HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
l
lvextend(1M) lvextend(1M)
NAME
lvextend - increase space, increase mirrors for LVM logical volume
SYNOPSIS
/usr/sbin/lvextend
[-A autobackup]{-l le_number
-L lv_size -m mirror_copies} lv_path
[pv_path ... pvg_name ...]
Remarks
Mirrored disk operations require the installation of the optional HP MirrorDisk/UX software, which is not
included in the standard HP-UX operating system.
lvextend cannot be performed if the volume group is activated in shared mode.
Existing logical volumes that were created using the striped option are not supported in shared mode.
DESCRIPTION
The lvextend command can increase a logical volume’s allocated extents, or increase its number of mir-
rored copies.
Other logical volume characteristics can be modified with the
lvchange and lvreduce commands (see
lvchange(1M) and lvreduce(1M)).
To limit the allocation to specific physical volumes, specify the physical volume names as pv_path argu-
ments or specify the physical volume group names as pvg_name arguments. Otherwise, all of the physical
volumes in a volume group are available for allocating new physical extents. LVM always ensures that phy-
sical extent allocation can satisfy the current allocation policy or policies. If a physical volume is not suit-
able for use with a certain allocation policy, it is not used during physical extent allocation, even it is
specified in a pv_path argument or indirectly in a pvg_name argument.
LVM striped logical volumes are always allocated using a strict allocation policy. Consequently, striped logi-
cal volumes may only be extended by a number extents that is a multiple of disks the logical volume is
striped across. For example, for a logical volume striped across 3 disks, the logical volume will be extended
in increments of 3 extents, with each of the 3 extents allocated on a different disk in the volume group.
The pvg_name argument is allowed only if one of the allocation policies of the logical volume is PVG-strict.
Options and Arguments
The
-m option is only meaningful if the optional HP MirrorDisk/UX software has been installed on the sys-
tem.
lvextend recognizes the following options and arguments:
lv_path The block device path name of a logical volume.
pv_path The block device path name of a physical volume.
pvg_name The name of a physical volume group (see lvmpvg(4)).
-A autobackup Set automatic backup for this invocation of this command. autobackup can
have one of the following values:
y Automatically back up configuration changes made to the logical
volume. This is the default.
After this command executes, the vgcfgbackup command (see
vgcfgbackup(1M)) is executed for the volume group to which the logi-
cal volume belongs.
n Do not back up configuration changes this time.
-l le_number Increase the space allocated to the logical volume, specified in logical
extents. le_number is a decimal value greater than the current number of
logical extents, in the range 1 to 65535 (the implementation limit).
One, and only one, -l, -L,or-m option must be supplied.
-L lv_size Increase the space allocated to the logical volume, specified in megabytes.
lv_size is a decimal value greater than the current logical volume size, in
the range 1 to 16777216 (the implementation limit). lv_size is rounded
up to the nearest multiple of the logical extent size, equivalent to the physi-
cal extent size defined for the volume group by the vgcreate command
HP-UX 11i Version 1: September 2005 − 1 − Hewlett-Packard Company Section 1M−−451