Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
261Administering volumes
Stopping a volume
is specified, the slower is the progress of the task and the fewer system
resources that it consumes in a given time. (The
slow attribute is also
accepted by the vxplex, vxvol and vxrecover commands.)
Using the vxtask command
To list all tasks currently running on the system, use the following command:
# vxtask list
To print tasks hierarchically, with child tasks following the parent tasks, specify the -h
option, as follows:
# vxtask -h list
To trace all tasks in the disk group, foodg, that are currently paused, as well as any tasks
with the tag sysstart, use the following command:
# vxtask -g foodg -p -i sysstart list
Use the vxtask -p list command lists all paused tasks, and use vxtask resume to
continue execution (the task may be specified by its ID or by its tag):
# vxtask -p list
# vxtask resume 167
To monitor all tasks with the tag myoperation, use the following command:
# vxtask monitor myoperation
To cause all tasks tagged with recovall to exit, use the following command:
# vxtask abort recovall
This command causes VxVM to attempt to reverse the progress of the operation so far.
For an example of how to use
vxtask to monitor and modify the progress of the Online
Relayout feature, see “Controlling the progress of a relayout” on page 290.
Stopping a volume
Stopping a volume renders it unavailable to the user, and changes the volume kernel 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 [-g diskgroup] [-f] stop volume ...
To stop all volumes in a specified disk group, use the following command:
# vxvol [-g diskgroup] [-f] stopall
Caution: If you use the -f option to forcibly disable a volume that is currently open to an
application, the volume remains open, but its contents are inaccessible. I/O operations on
the volume fail, and this may cause data loss. It is not possible to deport a disk group until
all of its volumes are closed.