Sets the characteristics of a volume group.
chvg [ -s Sync { y | n }] [ -h Hotspare {y | Y | n | r }] [ -a AutoOn { y | n } ] [ -c | -l ] [ -L LTGSize ] [ -Q { y | n } ][ -X { none | SSD }] [ -u ] [ -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 ] VolumeGroup
The chvg command changes the characteristics of a volume group.
You can use the Volumes application in Web-based System Manager to change volume characteristics. You could also use the System Management Interface Tool (SMIT) smit chvg fast path to run this command.
Item | Description |
---|---|
-a AutoOn | Determines if 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 Big VG format. This can accommodate
up to 128 physical volumes and 512 logical volumes. Note:
|
-c | Same as -C flag. In AIX 5.2 and later only Enhanced Concurrent Capable volume groups will be created. |
-C | Changes the volume group into an Enhanced Concurrent Capable
volume group. Changes the volume group varied on in non-concurrent
mode to Enhanced Concurrent Capable. This requires that the volume
group be re-imported on all other nodes prior to 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 HACMP™ ES. It has no effect on volume groups and systems not using the HACMP ES product. Enhanced Concurrent volume groups use Group Services. Group Services ships with HACMP ES and must be configured prior to activating a volume group in this mode. Use this
flag to change a volume group into an Enhanced Concurrent Capable
volume group.
Note:
|
-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 if 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. Note:
|
-h Hotspare | Sets the sparing characteristics for the volume group 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 non-mirrored
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 5.1 and AIX 5.2. The LTGSize will behave as if the volume group had been created prior to AIX 5.3. This operation might fail if the volume group contains striped logical volumes whose strip size (a strip size multiplied by the number of disks in an array equals the stripe size) is larger than the supported strip size on AIX 5.1 or AIX 5.2. If logical volumes are later created with a strip size that is larger than the supported strip size on AIX 5.1 or AIX 5.2, then attempting to import the volume group back to AIX 5.1 or AIX 5.2 is not supported. |
-l | Changes the volume group into a Non-Concurrent Capable volume group. The volume group must be varied on in non-concurrent mode for this command to take effect. |
-L | For volume groups created on AIX 5.3, the -L flag
is ignored. When the volume group is varied on, the logical track
group size will be set to the common max transfer size of the disks.
For volume groups created prior to AIX 5.3, 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 0, 128, 256, 512, or 1024. In addition, it should be less than or equal to the maximum transfer size of all disks in the volume group. The default size is 128 kilobytes. An LTGSize of 0 will cause the next varyonvg to set the logical track group size to the common max transfer size of the disks. |
-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. Where the PhysicalPartitions variable is represented in units of 1024 partitions. Valid values are 64, 128, 256, 512 768, 1024 and 2048. The value should be larger than the current value or no action is taken. This option is only valid with Scalable-type volume groups. |
-Q | Determines if 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 | Resumes normal I/O operations for a volume group. |
-s Sync | Sets the synchronization characteristics for the volume group
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 non-mirrored 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, 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 which the Concurrent Capable volume group
is varied on. The volume group must be varied on in non-concurrent
mode for this command to take effect. Note: There is no auto on support
for Enhanced Concurrent Capable volume groups. On AIX 5.2 and later only Enhanced
Concurrent Capable volume groups will be 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.
|
chvg -a y vg03
chvg -t vg03
chvg -t 2 vg03
Item | Description |
---|---|
/usr/sbin | Directory where the chvg command resides. |