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

v
vgchange(1M) vgchange(1M)
y Enforce the quorum requirement. This is the default.
n Ignore the quorum requirement.
The
-q n option can be used to activate the volume group when the disk
quorum is not maintained because too many disks were lost. Since it ensures
the integrity of the LVM configuration information, it is normally not advis-
able to override the quorum.
-s Disable the synchronization of stale physical extents within the volume group
specified by vg_name. This option is only effective when used with the
-a y
or -a e option.
-P resync_daemon_count
gives the advisory count to control the number of nomwcsyncd processes on
volume group activation.
Mirrored Disk Activation
When the optional HP MirrorDisk/UX software is running and a volume group is activated, LVM per-
forms the necessary mirror consistency recovery for each logical volume in the volume group based on the
state of Mirror Write Cache and Mirror Consistency Recovery (see the Consistency Recovery section of
lvdisplay (1M)). In a non-shared environment, LVM supports
MWC, NOMWC and the NONE recovery. But
in shared environment, LVM only supports
NOMWC and the NONE recovery.
MWC Recover mirror consistency by using the Mirror Write Cache and Mirror Consistency
Record. This mode implies that the Mirror Write Cache is on.
NOMWC Recover mirror consistency by searching all logical extents and copying data from a non-
stale copy to the other mirror copies. This mode implies that the Mirror Write Cache is
off.
NONE Do not recover mirror consistency during volume group activation on this logical volume.
This mode implies that the Mirror Write Cache is off.
Next, mirror synchronization refreshes stale mirror copies by copying data from a nonstale copy. If the
-s option is specified on the command line, mirror synchronization does not occur. However, for those
logical volumes that have Mirror Write Cache turned off, mirror synchronization is done independently of
whether the -s option appears on the command line.
General Activation
If
vgchange cannot access a physical volume, it lists the volume’s status as missing. If too many physi-
cal volumes in the volume group are missing, vgchange reports that the group does not have a quorum
and cannot be activated. The lack of a quorum can be overridden with the -q n
option.
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:
HP-UX 11i Version 2: September 2004 3 Hewlett-Packard Company Section 1M873