Returning to the blog post series about EHC, this blog will cover the EHC Federation Edition with Disaster Recovery. In this post, we will be looking at the intergration between VMware SRM and vCAC. Yes that’s right. Some of you might be unaware that vCAC or vRA is supported for DR by VMware SRM. Let us look at the conceptual diagram how this would work.
Note: This blog doesn’t discuss the DR/HA Availability of vCAC. That will be discussed in subsequent posts.
We will need to create 2 vCenter endpoints in vRA. This will ensure that both the protected and the recovery site VMs can be managed by vCAC instance. So lets go ahead and create the 2 endpoints in vRA. Note that both the vCenters have been named DR for vCAC controller environments are supported in 3 ways :
- Protected Mode
- Recovery Mode
- Test Mode.
These are not dis-similar to the native protected methods in VMware SRM. Most of the workload migration and restart of the VMs is automatic as it is natively done by SRM. However there are a few manual steps that are required to ensure that vCAC can monitor and manage the “recovered” workloads. Lets now look at the behaviour of vRA during various SRM Phases.
Now lets look at an example of failover and the steps that are required to ensure the vRA is still in sync after failover / migration is finished.
Once the planned migration or disaster recovery steps are finished inside SRM, check vRA appliance for any errors. You will see a similar error on all the VMs managed by vRA.
To remediate this error, the following steps have to be done:
Turn off Automatic Data Collection for Site A vCenter (under compute resources).
Run Data Collection Manually for Site B vCenter (under compute resources).
Perform manual failover for the VM on Site A as shown below
Go to Infrastrucuture – Machines – Managed Machines.
Hover over the VM and select Change Reservation.
Once the pane changes to the reservation, change the appropriate values as shown below ( these are the values in the lab environment and will be different to your actual values)
Note: If the blueprint is shared, that value doesnt need to be changed.
Once these steps are completed, turn data collection on for Site A vCenter.
This can be automated using the tool below https://developercenter.vmware.com/web/dp/tool/cloudclient/3.2.0. Thanks to Ben Meadowcroft (@benmeadowcroft) for bringing it to my knowledge.
For more information on vCenter/SRM/VCO/vRA integration visit the links below
- ManagedBy property https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.wssdk.apiref.doc/vim.vm.ConfigSpec.html#managedBy
- DR for vCloudDirector/vCenter Page 5 of http://www.vmware.com/files/pdf/techpaper/VMware-vCloud-Directore-Infrastructure-resiliency-whitepaper.pdf
- DR for View Page 7 of https://www.vmware.com/files/pdf/techpaper/vmware-view-vcenter-site-recovery-manager-disaster-recovery.pdf
- SRM Events on recovery http://pubs.vmware.com/srm-55/topic/com.vmware.srm.admin.doc/GUID-B62ACB9E-955B-4499-900D-38F2D7FED1E0.html
- SRM public API https://www.vmware.com/support/developer/srm-api/srm_50_api.pdf
- SRM limitations (linked clones) http://pubs.vmware.com/srm-55/topic/com.vmware.srm.admin.doc/GUID-084C089D-9689-4F34-9A75-8AFB980A725E.html