You can stop an ongoing offline synchronization task for a powered off virtual machine by using two different methods: by establishing an SSH connection to the ESXi host of the source VM or by using the vCenter Server Managed Object Browser (MOB).
Stop a Virtual Machine Offline Synchronization Task by Using an SSH Connection
Procedure
- Establish an SSH connection to the ESXi host that hosts the source virtual machine.
- To get the list of all VMs, and to find the ID of the VM whose offline sync you want to stop, run the following command:
vim-cmd vmsvc/getallvms
. - To check the progress of the sync task, run the following command:
vim-cmd hbrsvc/vmreplica.queryReplicationState <vmid>
. - To stop the offline sync task, run the following command:
vim-cmd hbrsvc/vmreplica.stopOfflineInstance <vmid>
.
Stop a Virtual Machine Offline Synchronization Task by Using the vCenter Server MOB
Prerequisites
Verify that you have the credentials of a vSphere administrator.
Procedure
- To get the Managed Object ID (MOID) of the source VM:
- Log in to the vSphere Client on the source site.
- Navigate to the source VM.
- Copy the vm-... value from the URL.
- Log in to https://<vc_ip>/mob/?moid=hbrManager&method=stopOfflineInstance&vmodl=1 with vCenter Server credentials.
- In the Value text box, replace the MOID text with the MOID of the VM, and click Invoke Method.
- To check the state of the stopOfflineInstance task:
- In the Value text box of the Method Invocation Result: ManagedObjectReference panel, click the displayed task session.
- On the Managed Object Type: vim.Task window, click the Info value.
- Optional: Refresh the page.