chvg Command
Purpose
Sets the characteristics of a volume group.
Syntax
chvg [ -s Sync { y | n } ] [ -h Hotspare { y | Y | n | r }] [-a AutoOn { y | n } ] [ -h -c | -l ] [ -L LTGSize ] [ -Q { y | n } ] [ -X { none | SSD } ] [ -u ] [ -r { y | n } ] [ -x { y | n } ] [ -S | -R ] [ -t [ factor ] ] [ -B | -G ] [ -P ] [ -v ] [ -C ] [ -f ] [ -g ] [ -b { y | n } ] [ -I ] [ -O { y | n } ] [ -M { y | n | s } ] [ -N o | n ] [ -j { y | n } ] [ -e y | n ] [ -k y | n ] VolumeGroup
Description
The chvg command changes the characteristics of a volume group. You can also use the System Management Interface Tool (SMIT) smit chvg fast path to run this command.
Flags
- Only the -a, -R, -S, -u, and -h options are allowed on the volume group that has a snapshot volume group.
- Only the -a, -R, -S, and -u options are allowed on the snapshot volume group.
- Changing a VG to a Big VG format (-B flag) or to a Scalable VG format (-G flag) and specifying the data encryption option (-k flag) cannot be combined with any other change operation.
- Bad block relocation policy is not supported on a volume group that is created with 4 KB block physical volumes.
| Item | Description |
|---|---|
| -a AutoOn | Determines whether the volume group is automatically activated during system startup. The
AutoOn variable can be either of the following:
|
| -b | Sets the bad-block relocation policy of a volume
group. The default value is yes.
|
| -B | Changes the volume group to the Big VG format. This can accommodate up to 128 physical
volumes and 512 logical volumes. Note:
|
| -c | Same as the -C flag. In AIX Version 6.1 and later only Enhanced Concurrent Capable volume groups are created. |
| -C | Changes the volume group into an Enhanced Concurrent Capable volume group. Changes in the
volume group varied on in nonconcurrent mode to Enhanced Concurrent Capable. This requires that the
volume group be reimported on all other nodes before activation in Enhanced Concurrent mode. Changes
the volume group varied on in Concurrent mode to an Enhanced Concurrent mode volume group. Only use
the -C flag with the PowerHA® SystemMirror® ES.
It has no effect on volume groups and systems not by using the HACMP ES product. Enhanced Concurrent volume groups use Group Services. Group Services ships with PowerHA SystemMirror ES and must be configured before activating a volume group in this mode. Use this flag to change a volume group into an Enhanced Concurrent Capable volume group.
Note:
|
| -e y|n | Enables the Critical PVs option of the volume group. This flag is available
in IBM®
AIX 7.2 with Technology Level 1, or later.
|
| -f | Forces the volume group to be created on the specified physical volume unless the physical volume is part of another volume group in the Device Configuration Database or a volume group that is active. |
| -g | Will examine all the disks in the volume group to see whether they have grown
in size. If any disks have grown in size attempt to add additional PPs to PV. If necessary, will
determine proper 1016 multiplier and conversion to big vg. Note: The user might be required to
execute varyoffvg and then varyonvg on the volume group for LVM to see the size change
on the disks.
|
| -G | Changes the volume group to Scalable VG format.
This can accommodate up to 1024 physical volumes and 4096 logical
volumes. Notes:
|
| -h Hotspare | Sets the sparing characteristics for the volume group that is specified by the
VolumeGroup parameter. Either allows (y) the automatic migration of failed
disks, or prohibits (n) the automatic migration of failed disks. This flag has no meaning for
nonmirrored logical volumes
Note: This flag is not supported for the concurrent capable volume groups.
|
| -I | Modifies the volume group so that it can be imported to AIX Version 6.1. The LTGSize behaves as if the volume group had been created before AIX Version 6.1. This operation might fail if the volume group contains striped logical volumes whose strip size (a strip size that is multiplied by the number of disks in an array equals the stripe size) is larger than the supported strip size on AIX Version 6.1. If logical volumes are later created with a strip size that is larger than the supported strip size on AIX Version 6.1, then attempting to import the volume group back to AIX Version 6.1 is not supported. |
| -j y | n | If the Enhanced Journaled file system (JFS2) is mounted, the resync operation of the logical
volume manager (LVM) resynchronizes the blocks that are allocated only by the JFS2. You can specify
the following values for this flag:
|
| -k y | n | Changes the data encryption option in the volume group. The -k flag is
available in IBM AIX 7.2 with Technology Level 5, or later. You can
specify the following values for this flag:
Note:
When you enable data encryption in a volume group, some disk space is reserved at end sector of the disk. Reclaim some physical partitions (PPs) at the end sector of the disks to have sufficient free space for the encryption metadata. If the required PPs are in use, the chvg command returns an error. When you disable data encryption in a volume group, the validity of the operation is checked. If the volume group contains any encrypted logical volumes, the chvg command returns an error. |
| -l | Change the volume group into a Non-Concurrent Capable volume group. The volume group must be varied on in nonconcurrent mode for this command to take effect. |
| -L | For volume groups created on AIX Version 6.1,
the -L flag is ignored. When the volume group is varied on, the logical track group size is
set to the common max transfer size of the disks. For volume groups created before AIX Version 6.1, the -L flag changes the logical
track group size, in number of kilobytes, of the volume group. The value of the
LTGSize parameter must be |
| -M | Changes the mirror pool strictness for the volume group.
|
| -N o|n |
Note:
|
| -O y | n | Changes the infinite retry option of the volume
group.
Note: Infinite retry is not supported in a GLVM environment.
|
| -P PhysicalPartitions | Increases the number of physical partitions a volume group can accommodate. The valid values for the PhysicalPartitions variable are 64k, 128k, 256k, 512k, 768k, 1024k, and 2048k. The value can be expressed in various forms such as 64k, 64K, 64, or 65536. The value must be larger than the current number of physical partitions a volume group can accommodate or no action is taken. This option is valid with only Scalable-type volume groups. |
| -Q | Determines whether the volume group is automatically varied off after losing its quorum of
physical volumes. The default value is yes. The change becomes effective
immediately.
|
| -X none | SSD | Sets or changes a PV type restriction on the VG. Once a PV
restriction is turned on, the VG can no longer be imported on a version
of AIX that does not support
PV type restrictions. The use of the -I flag on a PV restricted
VG is prohibited.
|
| -r y | n | Changes the critical volume group (VG) option of the volume group.
Notes:
|
| -R | Resumes normal I/O operations for a volume group. |
| -s Sync | Sets the synchronization characteristics for the volume group that is specified by the
VolumeGroup parameter. Either permits (y) the automatic synchronization of
stale partitions or prohibits (n) the automatic synchronization of stale partitions. This
flag has no meaning for nonmirrored logical volumes. Automatic synchronization is a recovery
mechanism that will only be attempted after the LVM device driver logs LVM_SA_STALEPP in the
errpt. A partition that becomes stale through any other path (for example, mklvcopy)
will not be automatically resynced.
Note: This flag is not supported for the concurrent capable volume groups.
|
| -S | Drains I/O's for this volume group and suspends future I/O's. |
| -t [factor] | Changes the limit of the number of physical partitions per physical volume, which is
specified by factor. factor should be between 1 and 16 for 32
disk volume groups and 1 and 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 of the largest disk in volume group is less than factor x 1016. If factor is specified, the maximum number of physical partitions per physical volume for this volume group changes to factor x 1016. Note:
|
| -u | 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 -u flag, make sure that the volume group is not
being used by another LVM command.
|
| -v LogicalVolumes | Increases the number of logical volumes that can be created. Valid values are 512, 1024, 2048 and 4096. The value should be larger than the current value or no action is taken. This option is only valid with Scalable-type volume groups. |
| -x | Changes the mode in which the Concurrent Capable volume group is varied on. The volume group
must be varied on in nonconcurrent mode for this command to take effect. Note: There is no auto on
support for Enhanced Concurrent Capable volume groups. On AIX Version 6.1 and later only Enhanced Concurrent Capable
volume groups are created.
Note: If the volume group is not created Concurrent Capable, this command has no effect on the
volume group.
In order for this auto-varyon into concurrency of the volume group to take effect, you must enter the following line into the /etc/inittab file:
Attention: This entry must be added after the entry used to initiate
srcmstr.
|
Examples
- To cause volume group vg03 to be automatically activated during system startup, type:
chvg -a y vg03 - To change the volume group vg03 to a supported state if it is in violation of 1016
physical partitions per physical volume limit, type:
chvg -t vg03
- To change the maximum number of physical partitions per physical volume to 2032 and maximum
number of physical volumes in volume group vg03 to 16, type:
chvg -t 2 vg03
Files
| Item | Description |
|---|---|
| /usr/sbin | Directory where the chvg command resides. |