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

  1. Establish an SSH connection to the ESXi host that hosts the source virtual machine.
  2. 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.
  3. To check the progress of the sync task, run the following command: vim-cmd hbrsvc/vmreplica.queryReplicationState <vmid>.
  4. 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

  1. To get the Managed Object ID (MOID) of the source VM:
    1. Log in to the vSphere Client or vSphere Web Client on the source site.
    2. Navigate to the source VM.
    3. Copy the vm-... value from the URL.
  2. Log in to https://<vc_ip>/mob/?moid=hbrManager&method=stopOfflineInstance&vmodl=1 with vCenter Server credentials.
  3. In the Value text box, replace the MOID text with the MOID of the VM, and click Invoke Method.
  4. To check the state of the stopOfflineInstance task:
    1. In the Value text box of the Method Invocation Result: ManagedObjectReference panel, click the displayed task session.
    2. On the Managed Object Type: vim.Task window, click the Info value.
    3. Optional: Refresh the page.