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:
  • The physical volume is a member of another volume group in the device configuration database.
  • The physical volume is a member of the another volume group that is active.
  • The physical volume is assigned to a shared memory pool (to be used as a paging space device by a shared memory partition).

Examples

To add physical volumes hdisk3 and hdisk8 to volume group vg3, type the following command:

extendvg vg3 hdisk3 hdisk8



Last updated: Wed, November 18, 2020