chvg command

Purpose

Sets the characteristics of a volume group.

Syntax

chvg [-unlock] [-suspend | -resume] [-factor <num> [-chksize] VolumeGroup

Description

The chvg command changes the characteristics of a volume group.

Flags

Flag name Description
-resume Resumes normal I/O operations for a volume group.
-suspend Drains I/O's for this volume group and suspends future I/O's.
-unlock Unlocks the volume group. This option is provided if the volume group is left in a locked state by abnormal termination of another LVM operation (such as the command core dumping, or the system crashing).
Note: Before using the -unlock flag, make sure that the volume group is not being used by another LVM command.
-factor

Changes the limit of the number of physical partitions per physical volume, specified by factor. factor should be between 1-16 for 32 disk volume groups and 1-64 for 128 disk volume groups.

If factor is not supplied, it is set to the lowest value such that the number of physical partitions in the volume group is less than factor x1016. If factor is specified, the maximum number of physical partitions per physical volume for the volume group changes to factor x1016.

-chksize

Examines all the disks in the volume group to determine if they have grown in size. This option does not support resizing a volume group while it is activated in classic or enhanced concurrent mode. This option does not support resizing the rootvg volume group.

If any disks have grown in size, this option attempts to add additional physical partitions to the physical volume. If necessary, this option determines the appropriate 1016 multiplier and conversion to big volume group.

Note: After running chvg -chksize, it might be necessary to run the deactivatevg, followed by running the activatevg command on the volume group to see the change of size of the disks.

Examples

  1. To suspend the volume group vg03, type:
    chvg
    -suspend vg03
  2. To resume the volume group vg03, type:
    chvg
    -resume vg03
  3. To change the number of physical partitions per physical volume by 4, type:
    chvg -factor 4 testvg
  4. To determine whether the testvg volume group has grown in size after adding additional physical partitions to the physical volumes in the group, type:
    chvg -chksize testvg



Last updated: Wed, November 18, 2020