United States-English |
|
|
HP-UX Reference > Llvextend(1M)HP-UX 11i Version 3: February 2007 |
|
NAMElvextend — 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 ...] DESCRIPTIONThe lvextend command can increase a logical volume's allocated extents, or increase its number of mirrored 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 arguments 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 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. Options and ArgumentsThe -m option is only meaningful if the optional HP MirrorDisk/UX software has been installed. lvextend recognizes the following options and arguments:
Striped Logical Volume considerationsStriped and mirrored logical volumes are supported. An increase in size of a striped logical volume is done by increments of stripes logical extents. One increment 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 policies. 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 INFLUENCESEnvironment VariablesLANG 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)). EXAMPLESIncrease 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.
WARNINGSThe 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. SEE ALSOlvchange(1M), lvcreate(1M), lvdisplay(1M), lvreduce(1M), pvchange(1M), pvdisplay(1M), intro(7), lvm(7). |
Printable version | ||
|