Adds physical volumes to a volume group.
The extendvg command increases the size of the volumegroup by adding one or more physicalvolumes.
The physical volume is checked to verify that it is not already in another volume group. If the system believes the physical volume belongs to a volume group that is varied on, it exits. But if the system detects a description area from a volume group that is not varied on, it prompts the user for confirmation in continuing with the command. The previous contents of the physical volume are lost, so the user must be cautious when using the override function.
For volume groups created prior to AIX® 5.3, or for volume groups created on AIX 5.3 but varied on with the varyonvg -M flag, the extendvg will fail if the physical volume has a max transfer size that is smaller than the logical track group size of the volume group. For volume groups created on AIX 5.3 and varied on without the varyonvg -M flag, extendvg will dynamically lower the logical track group size of the volume group if the physical volume has a max transfer size that is smaller than the logical track group size of the volume group.
See the section "Administering a PowerHA® cluster" in the PowerHA SystemMirror Administration Guide, 7.1 or later, for a discussion of the behavior of this command in a PowerHA cluster.
Item | Description |
---|---|
-f | Forces the physical volume to be added to the specified volume group unless it is a member of another volume group in the Device Configuration Database or of a volume group that is active. |
-p mirrorpool | Assigns each of the physical volumes being added to the specified mirror pool. After mirror pools are enabled in a volume group, the volume group can no longer be imported into a version of AIX that does not support mirror pools. |
To add physical volumes hdisk3 and hdisk8 to volume group vg3, enter:
extendvg vg3 hdisk3 hdisk8
The extendvg command cannot be run on a snapshot volume group.
Item | Description |
---|---|
/usr/sbin/extendvg | Contains the extendvg command. |