HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

v
vgchange(1M) vgchange(1M)
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
EXAMPLES
Activate volume group
/dev/vg03:
vgchange -a y /dev/vg03
Deactivate volume group /dev/vg03:
vgchange -a n /dev/vg03
Activate volume group /dev/vg03 without synchronizing extents that are not current on logical volumes
that have Mirror Write Cache turned on:
vgchange -a y -s /dev/vg03
Exclusive Activation
Set up volume group /dev/vg03 for use in a high availability cluster:
vgchange -a n /dev/vg03 # Deactivate volume group
vgchange -c y /dev/vg03 # Enable volume group for HA cluster
vgchange -c y -S y /dev/vg03 # Enable volume group for HA cluster
and mark as sharable
vgchange -a e /dev/vg03 # Activate volume group in exclusive mode
vgchange -a s /dev/vg03 # Activate volume group in shared mode
Activate all volume groups; activate those that are marked for membership in a high availability cluster in
shared mode:
vgchange -a y
Activate all volumes that are marked for membership in a high availability cluster in exclusive mode:
vgchange -a e
Cross Activation
Set up volume group /dev/sh_vg for use in a high availability cluster.
To make configuration changes, to a volume group activated in shared mode, deactivate the volume group
by executing the following command on each cluster node except one:
vgchange -a n sh_vg
On the single node, where the volume group is active:
vgchange -a e -x sh_vg # Change mode to exclusive
vgchange -a s -x sh_vg # After configuration change, change
# mode back to shared
Quiescing a Volume Group
Quiesce LVM metadata writes and application reads and writes to volume group /dev/vg03 :
vgchange -Q rw /dev/vg03
Quiesce LVM metadata and application writes but allow application reads to volume group /dev/vg03 :
vgchange -Q w /dev/vg03
Resume normal reads and writes to volume group /dev/vg03 (after having quiesced them earlier) :
vgchange -R /dev/vg03
Quiesce volume group /dev/vg03 quiescing both reads and writes and automatically resume normal
read/write access in 600 seconds:
622 Hewlett-Packard Company 5 HP-UX 11i Version 3: February 2007