VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)
Chapter 8, Administering Volumes
Stopping a Volume
189
vxtask Usage
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, us 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 causesVxVM toattempt toreversethe progress of theoperation sofar. 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 223.
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