Unable to break Site Pair to a non-existent site in VMware Live Site Recovery
search cancel

Unable to break Site Pair to a non-existent site in VMware Live Site Recovery

book

Article ID: 416008

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

  • Attempting to break the site pair in Site Recovery results in the below error:

    "ERROR
    Operation Failed SRM server '######' cannot complete a pair operation. Cannot break a connection while protection groups, array pairs, recovery plans, or folders exist.
    Operation ID: #########-####-####-####-############"
  • On deleting the Recovery Plan, the task completes and moves the plan to a "Deleting" state. But the deletion does not complete.

 

Note:

  • This article applies for be environments where a complete site has decommissioned without breaking the site pair. It can be either the protected site or recovery site.

  • When trying to break the site pair from the other available site the above symptoms may be experienced.

Environment

VMware Live Site Recovery 9.x

Cause

  • Due to the decommissioned site's VMware Live Site Recovery (VLSR) appliance not being available, the task of recovery plan removal does not complete. This is because the available VLSR appliance tries to contact the remote site's VLSR appliance and fails to connect.

  • It is not possible to break the site pair until the recovery plans, protected VMs, protection groups and array pairs are removed.

Resolution

To resolve this issue the below must be performed:

  1. Remove the recovery plans, protected VMs, protection groups, array pair and site pair:

    1. Take a snapshot of the VLSR appliance.

    2. Stop the srm-server service of the VLSR appliance from the VAMI page of the VLSR appliance > Services. Start, Stop, and Restart VMware Live Site Recovery Appliance Services.

    3. SSH into the available VMware Live Site Recovery (VLSR) appliance as admin and then elevate to root using su command.

    4. Remove the Recovery Plans:

      1. List the recovery plans using the command: python /opt/vmware/srm/dbtool/SrmDbTool.py query RecoveryPlan

      2. Delete the recovery plans using the following command. Use the recovery plan name from output of the previous command: python /opt/vmware/srm/dbtool/SrmDbTool.py delete RecoveryPlan <recovery_plan_name>

      3. Repeat this for all the recovery plans.

    5. Remove the Protected VMs:

      1. List the protected VMs using the command: python /opt/vmware/srm/dbtool/SrmDbTool.py query ProtectedVm

      2. Then remove these VMs from the protected state by deleting these entries using the following command. Use the VM name from output of the previous command: python /opt/vmware/srm/dbtool/SrmDbTool.py delete ProtectedVm <name_of_protected_vm>

      3. Repeat this for all the protected VMs.

    6. Remove the Protection Groups:

      1. List the protection groups using the command: python /opt/vmware/srm/dbtool/SrmDbTool.py query ProtectionGroup

      2. Then delete these protection groups using the following command. Use the protection group name from output of the previous command: python /opt/vmware/srm/dbtool/SrmDbTool.py delete ProtectionGroup <protection_group_name>

      3. Repeat this for all the protection groups.

    7. Remove the Array Pairs, if any had been added:

      1. List the array pairs using the command: python /opt/vmware/srm/dbtool/SrmDbTool.py query ArrayPair

      2. Then delete these array pairs using the following command. Use the array pair name from output of the previous command: python /opt/vmware/srm/dbtool/SrmDbTool.py delete ArrayPair <array_pair_name>

      3. Repeat this for all the array pairs.

    8. Once all the recovery plans, protected VMs, protection groups and array pairs have been deleted, proceed to delete the site pair:

      1. List the array pair using the command: /opt/vmware/srm/dbtool/SrmDbTool.py query Pair

      2. Delete the array pair using the following command. Use the name from output of the previous command: /opt/vmware/srm/dbtool/SrmDbTool.py delete Pair <pair_name>

    9. Start the srm-server and restart the dr-client service on the VLSR appliance.

    10. Validate that the site pair does not exist any more from the Site Recovery plugin on vSphere Client.

  2. Decommission the VLSR appliance:

    1. Log into the VAMI (https://<vlsr_fqdn>:5480) page of the VLSR appliance.

    2. Click on "Unregister" in the summary tab.

    3. Complete the unregister workflow.