HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

v
vgchange(1M) vgchange(1M)
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.
If any of the logical volumes in the volume group are mirrored, and
if there are more than two systems in the high availability cluster,
this volume group will not be activated because HP MirrorDisk/UX
software is only supported in a clustered environment with a max-
imum of two nodes configured.
If the
-a y or -a e
option is executed on a currently active volume
group,
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; oth-
erwise, 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 example, 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. clus-
ter can have one of the following values:
y Mark each specified volume group as a member of the high availa-
bility cluster. The high availability software must be running; oth-
erwise, the volume group is not marked. Needs to be done on one
node only.
n Remove each specified volume group from membership in the high
availability cluster. The high availability software does not need to
be running.
The volume group must be deactivated with the
-a n option before a -c y
n
option can be executed.
-S sharable Control the sharability of volume groups in a high availability cluster. shar-
able can have one of the following values:
y Mark each specified volume group as sharable. The high availabil-
ity software must be running; otherwise, the volume group is not
marked. Needs to be done on one node only.
n Remove the shared attribute from the volume group. The high
availability software does not need to be running.
The volume group must be deactivated with the
-a n option before a -S yn
option can be executed.
-l Disable the opening of logical volumes that belong to each specified volume
group. If the -l option is set, later attempts to open the logical volumes will
fail. To allow an opening of these logical volumes to succeed, execute
lvchange -a y.
-p Activate each specified volume group only if all of the physical volumes that
belong to it are available.
-q quorum Set the quorum enforcement for each specified volume group. quorum can
have one of the following values:
Section 1M854 Hewlett-Packard Company 2 HP-UX 11i Version 2: August 2003