Index Click this button to go to the index for this section.


vgchange(8)

NAME

vgchange - Sets the availability of a volume group to yes or no

SYNOPSIS

/usr/sbin/vgchange -a Availability [-lps] VolumeGroupName

DESCRIPTION

Note This command is no longer supported on Digital UNIX systems. Features formerly provided by the Logical Volume Manager (LVM) are now provided by the Logical Storage Manager (LSM). Existing LVM volumes must be migrated to LSM, using an encapsulation process. For information about moving LVM volumes to LSM, see the vollvmencap(8) reference page and the manual Logical Storage Manager. The vgchange command activates or deactivates one or more volume groups. The change depends on the value specified by the -a flag; namely, y or n. The vgchange -a n command deactivates the VolumeGroupName and its associated logical volumes. You must close the logical volumes prior to invoking the vgchange -a n command. For example, if the logical volume contains a file system, you must unmount the filesystem. The vgchange -a y command activates the VolumeGroupName, and all associated physical and logical volumes. When a volume group is activated, it is available for use, its logical volumes are available, and its physical extents are synchronized (if they are stale). However, if you included the -s flag on the command line, synchronization does not occur. If the program can not access a physical volume, it lists the volume's status as missing. If too many physical volumes in the volume group are missing, the program notifies you that the group does not have a quorum and cannot be activated. The -p flag allows you to activate the volume group only if all of the physical volumes belonging to the volume group are available. If the -l flag is set, later attempts to open the logical volumes will fail. To make an open of these logical volumes succeed, the command lvchange -a y must be executed.

FLAGS

-a Availability Sets the availability of the volume group. The Availability parameter is represented by one of the following: y Makes a volume group available. n Makes a volume group temporarily unavailable. -l Disables the open of the logical volumes that belongs to the volume group. -p Activates the volume group only if all of the physical volumes that belong to it are available. -s Disables the synchronization of the stale physical extents within the volume group specified with the VolumeGroupName parameter. This flag only makes sense when -a y is specified.

EXAMPLES

1. To activate the volume group vg03, enter: vgchange -a y /dev/vg03 2. To deactivate the volume group vg03, enter: vgchange -a n /dev/vg03 3. To activate volume group vg03 without synchronizing extents that are not current, enter: vgchange -a y -s /dev/vg03

FILES

/usr/sbin/vgchange Specifies the command path

RELATED INFORMATION

Commands: vgcreate(8), umount(8), vgdisplay(8), vgextend(8), vgreduce(8)