Deactivates a volume group.
varyoffvg [ -s ] VolumeGroup
The varyoffvg command deactivates the volume group specified by the VolumeGroup parameter along with its associated logical volumes. The logical volumes first must be closed. For example, if the logical volume contains a file system, it must be unmounted.
To activate the volume group, use the varyonvg command.
Note: To use this command, you must either have root user authority or be a member of the system group.
You can use the System Management Interface Tool (SMIT) to run this command. To use SMIT, enter:
smit varyoffvg
Note: A volume group that has a paging space volume on it cannot be varied off while the paging space is active. Before deactivating a volume group with an active paging space volume, ensure that the paging space is not activated automatically at system initialization, and then reboot the system.
Item | Description |
---|---|
-s | Puts the volume group into System Management mode, so that only logical volume commands can be used on the volume group. In this mode, no logical volume can be opened or accessed by users. |
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
varyoffvg vg03
varyoffvg -s vg02
Logical volumes within the volume group cannot be opened, but logical volume commands continue to take effect.Item | Description |
---|---|
/usr/sbin/varyoffvg | Contains the varyoffvg command. |