Posted by Marek.Z on 15 November 2012
A little while ago VMware released vCenter Site Recovery Manager 5.1 together with other products and vCloud Suite. Here is a quick summary of “What’s new in SRM 5.1” and the new improvements.
- SRM 5.1 supports reprotect and failback with vSphere Replication. Previously, you could only perform reprotect and failback on array-based protection groups. In SRM 5.1 you can perform reprotect and failback on vSphere Replication protection groups.
- The SRM Server in SRM 5.1 is now a fully 64-bit application.
- Improved handling of datastores in the all paths down (APD) state. If SRM detects that a datastore on the protected site is in the all paths down (APD) state and is preventing a virtual machine from shutting down, SRM waits for a period before attempting to shut down the virtual machine again. The APD state is usually transient, so by waiting for a datastore in the APD state to come back online, SRM can gracefully shut down the protected virtual machines on that datastore.
- Improved disk resignaturing for VFMS disks.
Before you begin with the upgrade, make sure you have read the release notes and the “Upgrading SRM” chapter from Site Recovery Manager Installation and Configuration guide. If you are running SRM earlier than 5.0 you will have to upgrade to SRM 5.0 or 5.0.1 before you upgrade to 5.1. The upgrade preserves settings and configurations that were created in the previous version. This includes the following:
- Datastore groups
- Protection groups
- Inventory mappings
- Recovery plans
- IP customizations for individual virtual machines
- Custom roles and their memberships
- SRM object permissions in vSphere
- Custom alarms and alarm actions
- Test plan histories
- Security certificates
- Mass IP customization files (CSVs)
Also, you have to upgrade the vCenter Server to version 5.1 before upgrading SRM to version 5.1. This includes the vSphere Client and VMware Update Manager. So, let’s start the upgrade. In this case we will concentrate on an in-place upgrade of SRM.
Important: make a back-up of your existing SRM database in case something goes wrong.
Create ODBC System DSN
Since SRM 5.1 is now a fully x64-bit application, we have to create an x64-bit ODBC system DSN for the database connectivity (you can delete the old x32-bit ODBC later).
- Open the ODBC Data Source Administrator and on the System DSN tab, click Add.
- Select the SQL Server Native Client 10.0 and click Finish.
- Provide a name, description and the SQL Server you want to connect to. Click Next.
- Provide a Login ID and password for the database. Click Next.
- Change the default database to your SRM database and click Next.
- Leave other settings as default and click Finish.
- Alternatively, click Test Data Source to test the database connection. Click OK to close the ODBC Administrator window.
Upgrade SRM Server
OK, it’s time to upgrade SRM.
- Execute the downloaded installation file from VMware on your SRM Server.
- Click Next on the SRM installation wizard. Note that the wizard detected a previous version of SRM and states that it will upgrade the product.
- Click Next on the patents window and agree to the EULA.
- Select the destination folder for the installation and click Next.
- Select Install vSphere Replication even if you already have vSphere Replication deployed. This option will install components that SRM requires to work with vSphere Replication. Click Next.
- Provide the vCenter Server username and password, click Next.
- Click Yes on the security warning.
- Click Yes when asked to overwrite the existing SRM registration.
- Select the option to automatically generate a certificate or use a PKCS#12 certificate file. In my case, I choose to automatically generate a certificate. Click Next.
- If you choose to generate a certificate for you, provide the Organization and Organization Unit. If you choose the certificate file option, this windows will not appear. Click Next to continue.
- Verify the settings for the SRM Extension and click Next.
- In the Database Configuration, provide the username and password for the SRM database. Click Next.
- In the Database Usage Selection, choose if you want to use the existing database or recreate the database (this will of course destroy the data). In my case, I used the existing database.
- Click Install to begin the installation.
- Click Finish to complete the installation wizard.
Upgrade SRM Client plug-in
Up next is the SRM Client plug-in upgrade. Before you begin, uninstall the old SRM plug-in from your system (Control Panel –> Programs).
- Open the vSphere Client (the SRM Client plug-in is at the time of this writing not available for the vSphere Web Client) and open the Plug-in Manager.
- Under the Available Plug-ins click the Download and Install link.
- Install the certificate and ignore the warning.
- Run the installer.
- The installation is as easy as next, next, finish.
Upgrade vSphere Replication
The easiest way to upgrade the vSphere Replication is by using VMware Update Manager. You have to upgrade the vSphere Replication Management server first.
- Open the VMware Update Manager and select the Configuration tab.
- Select Download Settings and make sure the VMware VA update source is selected. Click Download Now to check for new updates.
- Next, go to Baselines and Groups, select VMs/VAs button and click Create to create a new baseline.
- In the new baseline wizard, provide a suggestive name for the baseline and make sure the VA Upgrade is selected. Click Next.
- In the Upgrade Options window, select VMware Inc. as Vendor and All Products as Appliance. Click Add Rule and Next to proceed.
- Click Finish to create the new baseline.
- Next, go to VMs and Templates view. Select the vSphere Replication Management Server and select the Update Manager tab.
- Click Attach, and select the baseline created earlier.
- Click Remediate to start the upgrade.
- Click Next in the remediation section.
- Provide a task name and schedule the upgrade or upgrade immediately.
- If desired, take a snapshot and provide a name for the snapshot. Click Next.
- Review the settings and click Finish.
- Wait until the upgrade completes.
Repeat the steps described in Upgrade vSphere Replication for all vSphere Replication servers in your environment.
All done, don’t forget to upgrade the Recovery Site.
Posted in Site Recovery Manager, Upgrade, VMware, vSphere | Tagged: 5.1, Site Recovery Manager, upgrade, vCenter, VMware | Leave a Comment »
Posted by Marek.Z on 6 August 2012
A few days ago Troy Hampel (@MrTroyH) asked me on Twitter if I had some troubleshooting blogs about resource mapping permission in Site Recovery Manager 5, unfortunately I didn’t, simply because I did not came across any issues with permissions when I was implementing my SRM 5 infrastructure But this gave me an idea to summarize the ports used by the Site Recovery Manager 5 between the Protected Site and the Recovery Site but also the local site communication.
- 80 – HTTP
- 443 – SSL interface
- 902 – VMware management
- 8096 – Tomcat web server
- 8095 – SRM client plugin to communicate with SRM server and vCenter Server (local site)
- 9007 – SRM client plugin to communicate with vCenter server (local site)
Site Recovery Manager Server
- 80 – SRM Server at Protected Site to vCenter Server at Recovery Site. SRM communication with local vCenter server and vSphere Client plug-in download
- 443 – SRM communication with remote vCenter Server via HTTP over SSL tunnel
- 902 – VMware management, needs to be open between SRM server and ESX(i) hosts
- 1433 – SRM Connectivity to Microsoft SQL Server (local site)
- 1521 – SRM Connectivity to Oracle (local site)
- 1526 – SRM Connectivity to Oracle (local site)
- 5000 – SRM Connectivity to IBM DB/2 (local site)
- 8095 – SOAP interface between the vCenter Server proxy and SRM
- 8123 – SOAP port between SRM and vSphere Replication Management server (local site)
- 9085 – HTTP interface for downloading the UI plugin and icons (local site)
- 9007 – SOAP interface for external API clients via WSDL
- 9008 – SOAP interface for external API clients via HTTP
vSphere Replication Management Server
- 80 – All traffic to SRM servers goes through the vCenter proxy
- 8043 – SOAP interface between the vCenter proxy and VRMS
- 8080 – VAMI Web UI for the VRMS appliance
vSphere Replication Server (if used)
- 902 – VMware management (specifically the NFC service), needs to be open between VR server and ESX(i) hosts on the same site
- 8123 – SOAP interface used by VRMS to manage VR servers (local site)
- 5480 – VAMI Web UI for the VR server (local site)
- 31031 – Initial replication traffic
- 44046 – Ongoing replication traffic
Storage Replication Adapters (if used)
All ports are TCP. No UDP ports are used by SRM 5.
Posted in Site Recovery Manager, SRM 5, vCenter, VMware | Tagged: ports, requirements, Site Recovery Manager, SRM 5, vCenter, VMware | Leave a Comment »
Posted by Marek.Z on 11 June 2012
Here is a quick “how to” on upgrading the VMware vCenter Site Recovery Manager from version 5.0 to version 5.0.1. It is recommended that you perform an in-place upgrade rather than a new installation as this will preserve all reports, recovery plans, protection groups etc. The upgrade procedure must also be performed on the Recovery Site. Before you begin make sure the following criteria are met:
- SRM database is backed up
- The SRM software is downloaded from VMware
- Read the release notes
The upgrade process is quite straightforward and contains the following steps:
- Upgrade the SRM software
- Reinstall the SRM vCenter plug-in
- Upgrade the VRM server (if applicable)
- Upgrade the VR server (if applicable)
- Repeat the process for the Recovery Site
Let’s start with upgrading the software at the Protected Site.
- Login to the vCenter Server on the Protected Site, locally or through RDP.
- Execute the VMware-srm-5.0.1-<Build_Number>.exe and click Yes when asked if you want to continue.
- On the Welcome screen, click Next to proceed.
- You will be presented with the following question: “It is highly recommended that the VMware vCenter Site Recovery Manager database is backed up before continuing with this upgrade. Has the database been backed up?” Answer Yes to proceed, otherwise backup the database first.
- The upgrade process will start. Wait until it is completed and click the Finish button to close the window.
Reinstall vCenter plug-in
- When still logged in on the vCenter Server at the Protected Site, open the VMware vSphere Client and connect to the vCenter Server.
- Go to the Plug-ins menu and select Manage Plug-ins.
- In the Plug-in Manager you should see that a new SRM Extension is available. Click on Download and Install to upgrade the plug-in.
- Install the certificate and click on Ignore in the security warning window.
- Click Run in the next window to start the upgrade process.
- Click Yes when asked if you want to continue.
- In the Welcome screen click on the Next button to continue.
- If you are presented with a message that some files are in use, select “Automatically close and attempt to restart application” option. Click OK to continue.
- Click Finish to close the window.
Upgrade VRM Server
Since I’m using vSphere Replication, I also need to update the VRM Server and the VR Server.
- Open you Internet browser and navigate to the https://VRM_Server_IP_Address:8080.
- Login with the root account to the appliance, select the Update tab and click Check Updates under the Actions menu on the left.
- Note that an update is available.
- Click Install Updates to start the update process.
- Click OK if asked “Are You sure you want to install updates?”
- Wait until the update is installed.
- Logout from the appliance.
Upgrade VR Server
- With the Internet browser still open, go to https://VR_Server_IP_Address:5480.
- Login with the root account (default password is: vmware), select the Update tab and click Check Updates under the Actions menu on the left.
- When the new update is detected, click on Install Updates.
- Click OK if asked “Are You sure you want to install updates?”
- Wait until the update is installed.
- Logout from the appliance.
Reminder: don’t forget to upgrade the Recovery Site as well!
The VMware vCenter Site Recovery Manager is now upgraded to version 5.0.1
Posted in Site Recovery Manager, SRM 5, vCenter, VMware | Tagged: Site Recovery Manager, SRM 5, update, upgrade, vCenter, VMware | 2 Comments »
Posted by Marek.Z on 4 June 2012
So far we covered almost any aspect of the VMware vCenter Site Recovery Manager. We have prepared and set up the infrastructure, paired the sites, configured the VR replication, set up inventory mappings, created a protection group, configured a recovery plan and performed a test failover. In this part we will perform a planned migration and an unplanned failover from the Protected Site to the Recovery Site to simulate a disaster recovery scenario. But first, let’s define both scenarios.
What is a planned migration?
“Planned migration enables you to migrate the workloads from the protected site to the recovery site with minimal risk of data loss. A planned migration will stop if there is an error in the workflow giving you an opportunity to fix it.”
What is an unplanned failover?
“Unplanned failover is a disaster recovery event where the connection between the sites has been lost. Unplanned failover will not stop if any errors are encountered in the workflow. This provides the quickest recovery time during a disaster event.”
Initiate Planned Migration
- Open the Site Recovery Manager on the Protected Site, click on the Recovery Plans in the left pane, select your recovery plan and click on the red Recovery button.
- Read the info in the Recovery Confirmation window, check the “I understand that this process will permanently alter the virtual machine and infrastructure of both the protected and recovery datacenters.” box and make sure that Planned Migration is selected under the Recovery Type. Click Next to continue.
- Review the info and click on Start to start the recovery process.
- Switch over to the Recovery Steps tab to see the progress.
- When the recovery process completes, you should see a message as depicted in the screenshot below.
- Notice that the VMs on the Protected Site are powered off and on the Recovery Site, powered on.
Initiate Unplanned Failover
This process is very similar to the one performed with the Planned Migration but in this case the Protection Site is not available.
- On the Protected Site, simulate a disaster by powering off the vCenter Server and the ESXi hosts containing the protected VMs.
- On the Recovery Site, open the Site Recovery Manager, navigate to Recovery Plans and press the red Recovery button, just like in the previous step.
- By now you should get a warning stating that the connection to the vCenter Server at the Protected Site has been lost.
- In the Recovery Confirmation window, notice that the Planned Migration is now grayed out. Select the “I understand that this process will permanently alter the virtual machine and infrastructure of both the protected and recovery datacenters.” option and click Next to proceed.
- Review the settings and press Start to begin the recovery process.
- Switch over to the Recovery Steps tab and monitor the progress. Notice the errors stating that the connection to the remote server is down. Despite the failure the recovery process continues. The VMs should be up and running in couple of minutes.
If the unplanned migration and failover process both complete successfully, your SRM implementation is properly configured. Congratulations!
This concludes the series about implementing and configuring the VMware vCenter Site Recovery Manager 5. I really like the product and I had a lot of fun building the lab, implementing and configuring SRM but also writing the blog posts. I hope you enjoyed the series as well.
Posted in Site Recovery Manager, SRM 5, vCenter, VMware | Tagged: configuration, failover, how to, migration, Site Recovery Manager, SRM 5, vCenter, VMware | 6 Comments »
Posted by Marek.Z on 4 June 2012
The protection group is now configured and the VMs are replicating to the Protected Site. The next step in the SRM deployment is to configure a recovery plan.
“A recovery plan is an automated plan for a full or partial disaster recovery failover.”
In other words, a recovery plan is like a runbook which is based on a protection group. The SRM recovery plan consists of the following:
- List of protected VMs included in the protection group
- Startup order for the VMs
- Custom steps if applicable
A recovery plan for the Protected Site needs to be created at the Recovery Site. You can also create multiple recovery plans based on the disaster scenario. So, let us create a simple recovery plan for the VMs in the protection group configured in the previous part.
Configure Recovery Plan
- On the Protected Site, go to the Site Recovery Manager, select the Recovery Plans in the left pane and click on Create Recovery Plan.
- In the Create Recovery Plan wizard select the Recovery Site and click Next.
- Select the Protection Group created earlier and click Next.
- In the Test Network window, select the appropriate network at the Recovery Site. Choose the Auto setting to create a dedicated private network for testing purposes. You can also choose a network from the drop down menu if you have manually created a dedicated test network at the Recovery Site. In this case I’m going to leave it to the default Auto setting. Click Next to proceed.
- In the next window, provide a convenient name and description of the recovery plan and click Next.
- Review the settings and click Finish to close the wizard.
Modify Recovery Plan
Our basic recovery plan is now created, we can now configure some advanced features and properties of the recovery plan. These steps are not mandatory but take a look and play around with the settings to get a better understanding of the product.
- Select the recovery plan created in the previous step. Notice that the action bar above will now display some additional actions like Test, Cleanup, Recovery, Reprotect and Cancel.
- Select the Virtual Machines tab. Select a random VM and click Configure Recovery.
- In the properties window you can modify the settings for this particular VM like IP settings on the Protected Site and the Recovery Site, the priority group this VM belongs, dependencies of other VMs, shutdown actions, and startup actions, pre-power on steps and post-power on steps.
- Take a look at the recovery steps under the Recovery Steps tab en review the recovery steps that will be executed during a recovery. You can view the Test , Cleanup, Recovery and Reprotect steps from the View drop down menu.
Test Recovery Plan
Okay, so everything is set up for a test. Let’s give it a try.
- With the recovery plan still selected, click on the (blue) Test button on the action pane.
- Review the info provided by the test wizard. Uncheck the “Replicate recent changes to recovery site” and press the Next button. Note, in the real world scenario, leave the “Replicate recent changes to recovery site” option selected.
- Once again, review the info and press the Start button to start the failover test operation.
- To view the progress of the test, select the Recovery Steps tab.
- The test should complete successfully and the VMs should be up and running at the Recovery Site. The test is completed and you should see the following message as depicted in the screenshot.
- Great, the recovery plan runs without any errors. Now it’s time for a cleanup.
- Click on the Cleanup button in the action pane, read the cleanup information and press Next.
- Review the cleanup information and click Start to execute the cleanup process. Wait until the cleanup process completes. When it’s ready the status of the recovery plan should read Ready under the Summary tab.
OK, the basic recovery plan that we configured and modified in this part works without any errors. In the next part we will take a look at a planned migration and a failover process during a disaster recovery scenario. Click here to continue to part 10.
Posted in Site Recovery Manager, SRM 5, vCenter, VMware | Tagged: configuration, how to, recovery plans, Site Recovery Manager, SRM 5, VMware | Leave a Comment »