extendvg command
Purpose
Adds physical volumes to a volume group.
Syntax
extendvg [ -f ] VolumeGroup PhysicalVolume ...
Description
The extendvg command increases the size of volume group by adding one or more physical volumes.
The physical volume is checked to verify that it is not already in another volume group. If the system determines 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 you for confirmation while continuing with the command. The previous contents of the physical volume are lost, so you must be cautious when using the override function.
Flags
Flag name | Description |
---|---|
-f | Forces the physical volume to be added to the
specified volume group unless the following conditions are true:
|
Exit Status
Examples
To add physical volumes hdisk3 and hdisk8 to volume group vg3, type the following command:
extendvg vg3 hdisk3 hdisk8