Stopping a virtual business service from the command line

To stop a virtual business service, use the following command from a node on any of the clusters that are part of the virtual business service. The command takes the service groups offline in the required order.

UNIX systems:

# /opt/VRTSvbs/bin/vbssvc -stop myVBS

Windows systems:

"C:\Program Files\VERITAS\VRTSvbs\bin\vbssvc.exe" -stop myVBS

The vbssvc -stop command does not take shared service groups or their children offline. If you want to override this behavior and take offline all service groups in the virtual business service including shared service groups, use the -force switch as follows:

UNIX systems:

# /opt/VRTSvbs/bin/vbssvc -stop -force vbs_name

Windows systems:

"C:\Program Files\VERITAS\VRTSvbs\bin\vbssvc.exe" -stop -force vbs_name

If any tier is in the UNKNOWN state, the CLI prompts whether you want to stop the operation or proceed ignoring the tiers in the UNKNOWN state.

If you enter Y, any tiers in UNKNOWN state get ignored from the VBS. This is useful when you want to stop a VBS when some of the tiers are down.

Note that any dependencies associated with the tier in UNKNOWN state are ignored if you choose to continue with the operation ignoring the tiers in UNKNOWN state. The ignored tiers are not considered as members of the VBS for that stop operation.

A task ID is displayed when you run the stop command. You can optionally associate a user-defined tag name with the operation by specifying it in the vbssvc -stop command with the -tag <tag_name> option. You can use the tag_name or the task ID to track the progress of the of the operation.

The vbssvc -stop command automatically stops VMware virtual machines that host online service groups after taking the service groups offline. However, you must enable the Stop VM option on the Virtualization configuration options panel in Veritas InfoScale Operations Manager.

See Tracking VBS operations.

Note:

In the case of disaster recovery or planned migration of VBS, you can use the command line to automatically stop the VMware machines after the service groups are taken offline

Note:

Consider a virtual machine running a service group that is part of a VBS and other service groups that are not part of the VBS. When you run the stop command, VBS does not stop the virtual machine as there are other service groups running on the virtual machine. However, VBS does not consider VCS internal service groups such as ClusterService, VBSHAService, VCSAppMonHBSG, and VCSInfraSG that may not be part of the VBS while stopping the virtual machine.

Also, if a service group that is part of a virtual machine is already offline, the stop command does not stop the Virtual Machine.

A virtual machine stop operation through the stop command is supported only for ApplicationHA or single node VCS clusters.

To terminate the stop operation from the command line (for example, if the command becomes unresponsive), use the vbssvc -flush command.

UNIX systems:

# /opt/VRTSvbs/bin/vbssvc -flush vbs_name

Windows systems:

"C:\Program Files\VERITAS\VRTSvbs\bin\vbssvc.exe" -flush vbs_name

Note:

From the command line, you can stop a virtual business service whose service groups are faulted. However, stopping a virtual business service whose service groups are faulted is not possible from Veritas InfoScale Operations Manager. However, if Veritas InfoScale Operations Manager is not reachable, the automatic start of virtual machines will not work through the command line.

See Stopping a virtual business service .

See Starting and stopping Virtual Business Services .