vxevac - evacuate all volumes from a disk
/etc/vx/bin/vxevac [-g diskgroup] [-k [-O operation-tag]] [-t tasktag] .br medianame [new_medianame...]
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag] .br commit medianame
/etc/vx/bin/vxevac [-g diskgroup] [-O operation-tag] [-t tasktag] .br rollback medianame
The vxevac utility moves subdisks off the specified Veritas Volume Manager (VxVM) disk (medianame) to the specified destination disks (new_medianame...). If no new_medianame arguments are specified, any non-volatile, non-reserved disks can be used as destination disks. Subdisks that are part of unmirrored striped plexes are moved by moving the entire plex to a new location.
Note: This operation assumes that there is sufficient space in the disk group for the operation to complete. If the process runs out of space, some of the volumes on the disk may not be evacuated.
vxevac is usually called from the vxdiskadm menus.
A medianame argument is an administrative name used to define a disk within a disk group.
The evacuation of a volume can be committed or rolled back if the -k option is specified. Such an operation is referred to as a "tentaive move." In addition, the -O option may be used to define a tag for a given tentative move operation.
commit Completes tentative subdisk move operations by removing the source subdisks, and replacing them with the target subdisks. The -O option can be used to specify an operation tag for the subdisks whose tentative move is to be committed. If no operation tag is specified, the commit operation is applied to all completed tentative subdisk moves for the specified media. The commit operation fails if a tentative move or a recovery resynchronization is in progress. rollback Reverses tentative subdisk move operations by removing the target subdisks, and leaving the source subdisks intact. The -O option can be used to specify an operation tag for the subdisks whose tentative move is to be rolled back. If no operation tag is specified, the rollback operation is applied to all completed tentative subdisk moves for the specified media. The rollback operation fails if a tentative move or a recovery resynchronization is in progress.
-g diskgroup Specifies the disk group for the operation, either by disk group ID or by disk group name. -k Initiates a subdisk move while preserving the source subdisks on the original plexes. The source and target subdisks are marked. The tentative move operation can be committed or rolled back at a later time. If the -O option is used to specify a tag, this tag can be used with the vxtask command to monitor, pause or abort such operations. -O operation-tag Specifies an operation tag that can be used to commit or roll back a completed tentative move operation. If an operation tag is specified, a task tag is automatically set to the same value. However, setting a task tag does not imply the setting of an operation tag. -t tasktag Specifies an administrative operation to perform by the numeric identifier tasktag. See the vxtask(1M) manual page for information on Veritas Volume Manager tasks.
vxassist(1M), vxdiskadm(1M), vxintro(1M), vxsd(1M), vxtask(1M)