HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
v
vgchange(1M) vgchange(1M)
have read-only access to the data. When the volume group is also marked as sharable, it may be activated
in shared mode for read-write access by all the nodes in the cluster.
The configuration of a shared volume group can be changed only if it is activated in exclusive mode. Cross-
activation between shared and exclusive modes of shared volume groups is possible with the
-x option to
vgchange.
Simultaneously quiescing a volume group on all the systems sharing the volume group can be accomplished
by invoking vgchange with the -Q option from any node in the cluster. A ServiceGuard cluster-lock
volume group cannot be quiesced, because initializing or updating the cluster-lock requires writing to the
disk.
Options and Arguments
vgchange recognizes the following options and arguments:
vg_name The path name of a volume group.
-a availability Set volume group availability. availability can have one of the following values:
y Activate each specified volume group and all associated physical and logical
volumes for read-write access. If a volume group is marked as part of a high
availability cluster, it is activated in exclusive read-write mode, as for the -a
e
option.
e Activate each specified volume group and all associated physical and logical
volumes for exclusive read-write access. The volume group must be marked
as part of a high availability cluster, and the availability software must be
running on the system; otherwise, the volume group is not activated.
With the -x option, the activation mode of a shared volume group is changed
to exclusive. The volume group will remain active during the operation. The
operation will not be performed if the volume group is active in more than
one node, or if it is not currently in shared mode.
s Activate each specified volume group and all associated physical and logical
volume for shared read-write access. The volume group must be marked as
part of a high availability cluster and marked sharable; otherwise, the volume
group is not activated.
Please note HP MirrorDisk/UX software is only supported in a clustered
environment with a maximum of two nodes configured.
With the -x option, the activation mode of a shared volume group is changed
to shared. The volume group will remain active during the operation. The
operation will only be performed if the current activation mode of the volume
group is exclusive.
If the -a y or -a e option is executed on a currently active volume group,
without the -x option, vgchange attempts to include any physical volumes that
were previously listed as missing. This is useful if a physical volume has come
back online. However, no automatic synchronization of any mirrored logical
volumes is done. If synchronization is required, execute the vgsync command
(see vgsync(1M)).
r Activate each specified volume group and all associated physical and logical
volumes for read-only access. This option is ignored for a volume group that
is already activated.
If a volume group is marked as part of a high availability cluster, the high
availability software must be running on the system; otherwise, the volume
group is not activated.
n Deactivate each specified volume group and its associated logical volumes.
You must close the logical volumes prior to executing this option. For exam-
ple, if the logical volume contains a file system, the file system must be
unmounted.
-c cluster Control the membership of volume groups in a high availability cluster. cluster
can have one of the following values:
HP-UX 11i Version 3: February 2007 − 2 − Hewlett-Packard Company 619