United States-English |
|
|
HP-UX Reference > Vvgextend(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEvgextend — extend an LVM volume group by adding physical volumes DESCRIPTIONThe vgextend command assigns additional physical volumes to volume group vg_name. The volume group must be active. Volume groups are extended by adding one or more physical volumes specified by pv_path ... After the physical volumes have been successfully added to the volume group, the disk space they contain can be allocated to logical volumes. Before assigning an additional physical volume to a volume group, create the physical volume with the pvcreate command (see pvcreate(1M)). Then, create the volume group with the vgcreate command, assigning at least one physical volume (see vgcreate(1M)). If, for any reason, a specified physical volume cannot be installed into the volume group, an error message is displayed. However, the installation continues to the end of the list of physical volumes. When a pv_path refers to one of the physical volumes already in the volume group by a different pv_path name to indicate the use of a different controller, this new path becomes an alternate link to the physical volume. When two paths that reference the same disk are provided in the pv_path list, the order of the paths is important. The first path becomes the "primary link" to the physical volume, the second becomes an "alternate link" to the physical volume. The primary link is the path used to access the physical volume unless the primary link becomes unavailable in which case LVM automatically switches to the alternate link to access the physical volume (see WARNINGS section). Currently LVM supports a maximum of 8 paths to a physical volume (7 alternates and one primary). Options and Argumentsvgextend recognizes the following options and arguments:
Alternate Links (PVLinks)In this release of HP-UX, LVM continues to support Alternate Links to a device to allow continued access to the device, if the primary link fails. This multiple link or multipath solution increases data availability, but does not allow the multiple paths to be used simultaneously. There is a new feature introduced in the Mass Storage Subsystem on this version of HP-UX that also supports multiple paths to a device and allows access to the multiple paths simultaneously. The Mass Storage Subsystem will balance the I/O load across the valid paths. This new multi-path behavior is enabled and disabled through the use of the scsimgr command. See scsimgr(1M) for details. It is no longer required or recommended to configure LVM with alternate links. However, it is possible to maintain the traditional LVM behavior. To do so, both of the following criteria must be met:
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)). EXAMPLESAdd physical volumes /dev/dsk/c0t1d0 and /dev/dsk/c0t2d0 to volume group /dev/vg03: vgextend /dev/vg03 /dev/dsk/c0t1d0 /dev/dsk/c0t2d0 Extend physical volume group PVG0 while adding physical volumes /dev/dsk/c0t3d0 and /dev/dsk/c0t4d0 to volume group /dev/vg03: vgextend -g PVG0 /dev/vg03 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0 Add an alternate link to one of the physical volumes in the volume group where /dev/dsk/c0t4d0 and /dev/dsk/c1t4d0 refer to the same physical volume (referenced via different controllers), and the volume group already contains /dev/dsk/c0t4d0. /dev/dsk/c0t4d0 remains the primary link (in use) and /dev/dsk/c1t4d0 becomes the alternate link. vgextend /dev/vg03 /dev/dsk/c1t4d0 Add a spare physical volume to a volume group: vgextend -z y /dev/vg03 /dev/dsk/c2t4d0 WARNINGSThe new physical volume which has been added to the volume group could potentially have a different block size compared to physical volumes already in the volume group. If a logical volume is created on two or more physical volumes which have a different block size, it is not possible to use such logical volume for file system purposes (see extendfs(1M)). For example, when a logical volume contains physical volumes that all have 1k block size, and then it is extended to contain a physical volume with 2k block size, then the block size of the volume group is increased to 2k. |
Printable version | ||
|