vgextend.1m (2010 09)
v
vgextend(1M) vgextend(1M)
When a node wants to share the volume group, the user must first execute a
vgimport if physical
volumes were added at the time the volume group was not activated on that node.
LVM shared mode is currently only available in Serviceguard clusters.
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
Add 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
WARNINGS
The 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.
SEE ALSO
pvchange(1M), pvcreate(1M), vgchange(1M), vgcreate(1M), vgdisplay(1M), lvmadm(1M), lvmpud(1M),
intro(7), lvm(7).
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3