[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 6

varyoffvg Command


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.


-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.


  1. To deactivate volume group vg03 , enter:
    varyoffvg vg03
  2. To deactivate volume group vg02, but allow logical volume commands to continue to take effect, enter:
    varyoffvg -s vg02
    Logical volumes within the volume group cannot be opened, but logical volume commands continue to take effect.


/usr/sbin/varyoffvg Contains the varyoffvg command.

Related Information

The exportvg command, mount command, umount command, varyonvg command.

The System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.

The Logical Volume Storage Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the Logical Volume Manager, physical volumes, logical volumes, volume groups, organization, ensuring data integrity, and allocation characteristics.

[ Previous | Next | Contents | Glossary | Home | Search ]