VERITAS Volume Manager 4.1 Administrator's Guide

Administering Volumes
Stopping a Volume
Chapter 8 271
Stopping a Volume
Stopping a volume renders it unavailable to the user, and changes the
volume state from ENABLED or DETACHED to DISABLED. If the
volume cannot be disabled, it remains in its current state. To stop a
volume, use the following command:
# vxvol stop volume ...
For example, to stop a volume named vol01, use the following command:
# vxvol stop vol01
To stop all ENABLED volumes, use the following command:
# vxvol stopall
To stop all ENABLED volumes in a specified disk group, use the
following command:
# vxvol -g diskgroup stopall
Putting a Volume in Maintenance Mode
If all mirrors of a volume become STALE, you can place the volume in
maintenance mode. Then you can view the plexes while the volume is
DETACHED and determine which plex to use for reviving the others. To
place a volume in maintenance mode, use the following command:
# vxvol maint volume
To assist in choosing the revival source plex, use vxprint to list the
stopped volume and its plexes.
To take a plex (in this example, vol01-02) offline, use the following
command:
# vxmend off vol01-02
The vxmend on command can change the state of an OFFLINE plex of a
DISABLED volume to STALE. For example, to put a plex named
vol01-02 in the STALE state, use the following command:
# vxmend on vol01-02
Running the vxvol start command on the volume then revives the plex as
described in the next section.