extendvg Command

Purpose

Adds physical volumes to a volume group.

Syntax

extendvg [ -f ] VolumeGroup PhysicalVolume ...

Description

The extendvg command increases the size of 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 activated, it exits. But if the system detects a description area from a volume group that is not activated, 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.

Flags

-f Forces the physical volume to be added to the specified volume group unless it is a member of another volume group that has been activated by the activatevg command.

Exit Status

See Virtual I/O Server command exit status.

Examples

  1. To add physical volumes hdisk3 and hdisk8 to volume group vg3, type:
    extendvg vg3 hdisk3 hdisk8
    Note:
    The volume group must be activated before extending.

Related Information

The mkvg command, the chvg command, the lsvg command, the reducevg command, the mirrorios command, the unmirrorios command, the activatevg command, the deactivatevg command, the importvg command, the exportvg command, and the syncvg command.


Send feedback |  Rate this page