[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 6


varyoffvg Command

Purpose

Deactivates a volume group.

Syntax

varyoffvg [ -s ] VolumeGroup

Description

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.

Flag


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

Examples

  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.

File


/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 5L Version 5.1 System Management Concepts: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.

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


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]