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 a command core dump, or
a system crash). Note: Before you use 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 that is specified by factor. The factor must be in the range 1 - 16 for 32 disk volume groups and in the range 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 whether they have increased 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 increased 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 a large volume group. Note: After you run 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.
|
Exit Status
Examples
- To suspend the volume group vg03, type:
chvg -suspend vg03 - To resume the volume group vg03, type:
chvg -resume vg03 - To change the number of physical partitions per physical volume
by 4, type:
chvg -factor 4 testvg - To determine whether the testvg volume group has increased in size after you add
additional physical partitions to the physical volumes in the group,
type:
chvg -chksize testvg