TrumanWong

vgchange

Modify volume group properties

Supplementary instructions

vgchange command is used to modify the properties of a volume group and is often used to set whether the volume group is active or inactive. An active volume group cannot be deleted. You must use the vgchange command to set the volume group to inactive status before deleting it.

grammar

vgchange(options)(parameters)

Options

-a: Set the active status of the volume group.

Parameters

Volume group: Specify the volume group for which the properties are to be set.

Example

Use the vgchange command to change the volume group status to active. Enter the following command at the command line:

[root@localhost ~]# vgchange -ay vg1000 #Set volume group "vg1000" as active

The output information is as follows:

1 logical volume(s) in volume group "vg1000" now active