lvextend.1m (2010 09)

l
lvextend(1M) lvextend(1M)
NAME
lvextend - increase space, increase mirrors for LVM logical volume or snapshot volume
SYNOPSIS
Logical Volumes
/usr/sbin/lvextend
[-A autobackup ]{-l le_number
-L lv_size -m mirror_copies [
-s]}
lv_path [pv_path ... pvg_name ...]
Snapshot Volume -- on VG Version 2.2 or Higher
/usr/sbin/lvextend
[-A autobackup ]{-L
prealloc_le_number |
-L prealloc_le_size}
snapshot_path
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.
DESCRIPTION
The
lvextend command can be used on a logical volume or a snapshot volume.
The
lvextend command can increase a logical volume’s allocated extents, or increase its number of mir-
rored copies.
The
lvextend command can also be used to increase the number of allocated extents or mirror copies of
an original logical volume on a snapshot tree.
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 physi-
cal volumes in a volume group are available for allocating new physical extents. LVM always ensures
that physical extent allocation can satisfy the current allocation policy or policies. If a physical volume is
not suitable 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.
The pvg_name argument is allowed only if one of the allocation policies of the logical volume is PVG-
strict.
lvextend on Snapshot Volumes
The
lvextend command can be used to increase the number of extents pre-allocated to a space-efficient
snapshot. See lvm (7) for details on snapshots.
The number of extents specified for pre-allocation to a snapshot cannot exceed the total number of extents
in the original logical volume.
Note that the snapshot can not be extended to increase its number of mirror copies. Also, the fully allo-
cated snapshot can not be extended to increase the number of allocated extents.
Options and Arguments
The
-m option is only meaningful if the optional HP MirrorDisk/UX software has been installed.
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)).
snapshot_path The block device path name of a snapshot volume.
-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
logical volume belongs.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)