Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager
Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager

Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager: Disaster Recovery, simplified , Second Edition

eBook
$26.98 $29.99
Paperback
$38.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager

Chapter 1. Installing and Configuring vCenter Site Recovery Manager (SRM) 6.1

In this chapter, we will cover the following topics:

  • What is Site Recovery Manager (SRM)?
  • Laying the groundwork for an SRM environment
  • Host presentation (Zoning) at the protected and recovery sites
  • Installing SRM on both the protected and recovery sites
  • Pairing SRM sites
  • Installing the Storage Replication Adapters
  • Adding array managers and enabling array pairs
  • Configuring placeholder datastores
  • Creating resource, folder, and network mappings
  • Virtual machine swap file location

Introduction

With today's IT infrastructures, be it virtual or physical, disaster recovery is of prime importance. Any business should be able to continue operating with reduced downtime for its sustainability among the competition. It also has a legal obligation toward customers to whom it sold its services. Two of the major factors used to market or sell a service are its High Availability and Recoverability.

Recoverability is the guarantee that the service offered and its data are protected against failures, and High Availability is the guarantee that the service offered would remain operational and the failures are handled in a way that the user of the service would not even know that there was a failure.

There are many ways in which businesses plan and implement disaster recovery. Although important, much of these decisions depend on the budgetary constraints. What turns out to be the most important is the existence of a disaster recovery plan. Gone are those days when you had to wait for a long period of time before all your critical applications were made available at a recovery site. With a lot of automation and scripting, businesses now expect better Recovery Point Objective (RPO) and Recovery Time Objective (RTO).

So what exactly are RPO and RTO?

RPO defines the amount of data an organization can afford to lose when measured against time.

RTO defines the amount of downtime the organization can afford for its services before it becomes operational again.

Both RPO and RTO are defined by time. For example, an organization can have an RPO set to 4 hours and RTO set to 1 hour. This means, it can afford to lose up to 4 hours of data, but it can only afford a service downtime up to 1 hour.

RTO only defines the amount of time a service can remain unavailable but doesn't account for the data loss. This is where RPO pitches in. It defines how much data loss can be afforded.

For example, if you were a company hosting an online document format conversion service, then setting a lower RTO value is very important because the customers will prefer access to the service, rather than to the historical data. The RPO value will determine how much historical data you will have to keep.

Both RPO and RTO help an organization to determine the type of backup and disaster recovery solution to meet the business requirements.

What is Site Recovery Manager?

vCenter Site Recovery Manager (SRM) is an orchestration software that is used to automate disaster recovery testing and failover. It can be configured to leverage either vSphere replication or a supported array-based replication. With SRM, you can create protection groups and run recovery plans against them. These recovery plans can then be used to test the Disaster Recovery (DR) setup, perform a planned failover, or be initiated during a DR. SRM is a not a product that performs an automatic failover, which means there is no intelligence built into SRM that would detect a disaster/outage and cause failover of the virtual machines (VMs). The DR process should be manually initiated. Hence, it is not a high-availability solution either, but purely a tool that orchestrates a recovery plan.

Site Recovery Manager(SRM) architecture

vCenter SRM is not a tool that works on its own. It needs to communicate with other components in your vSphere environment. I will walk you through all the components involved in an environment protected by SRM.

The following are the components that will be involved in an SRM-protected environment:

Site Recovery Manager(SRM) architecture

SRM requires both the protected and the recovery sites to be managed by separate instances of vCenter Server. It also requires an SRM Instance at both the sites. SRM now uses PSC as an intermediary to fetch vCenter information.

The following are the possible multiple topologies:

Site Recovery Manager(SRM) architecture

As mentioned previously, SRM cannot work on its own. This is because it is only an orchestration tool and does not include a replication engine. However, it can leverage either a supported array-based replication or VMware's proprietary replication engine, vSphere Replication. We have separate chapters covering vSphere Replication.

Array manager

Each SRM instance needs to be configured with an array manager for it to communicate with the storage array. The array manager will detect the storage array using the information you supply to connect to the array. Before adding add an array manager, you will need to install an array specific Storage Replication Adapter (SRA). This is because the array manager uses the installed SRA to collect the replication information from the array:

Array manager

Storage Replication Adapter (SRA)

The SRA is a storage vendor provided component that makes SRM aware of the array's replication configuration at the array. SRM leverages the SRA's ability to gather information regarding the replicated volumes and direction of the replication from the array.

SRM also uses the SRA for the following functions:

  • Test Failover
  • Recovery
  • Reprotect
    Storage Replication Adapter (SRA)

We will learn more about these functions in the next chapter. For now, it is important to understand that SRM requires an SRA to be installed for all of its functions leveraging array-based replication.

When all these components are put together, a site protected by SRM would look as depicted in the following figure:

Storage Replication Adapter (SRA)

SRM conceptually assumes that both the protected and the recovery sites are separate, regardless of their geographical location. But such a separation is not mandatory. You can use SRM to protect a chassis of servers and have another chassis in the same data center as the recovery site. Now that we have a brief understanding of the SRM architecture, it is time to learn how to setup these components.

Laying the groundwork for an SRM environment

You will need to perform a set of configuration activities to lay the groundwork for an SRM environment so that it can be used to test or execute the recovery plans.

Here is an outline of the tasks that need to be done to form an SRM environment:

  • Preparing the storage for array-based replication
  • Host presentation (zoning) at the protected and recovery sites
  • Installing SRM on both the protected and recovery sites
  • Pairing the SRM instances
  • Installing the SRA
  • Adding the array managers
  • Enabling the array pairs
  • Creating resource, folder, and network mappings
  • Creating placeholder datastores

Preparing storage for array-based replication

The first thing that you will need to do is to make sure that your array is supported by VMware and licensed for array replication by the array vendor. Array Replication is a licensed feature from the storage vendor.

Now, to enable replication, you have a couple of approaches that you can employ:

Approach-1

  • Identify the VMs that you want to protect
  • Identify the VMFS datastores the VMs have their files on
  • Identify the LUNs corresponding to the already identified datastores
  • Enable replication on the identified LUNs

Approach-2

  • Identify the VMs that you want to protect
  • Plan the sizing of a datastore large enough to hold all the identified VMs
  • Create a LUN large enough to host the datastore
  • Present the new LUN to the hosts running the identified VM and create a new VMFS volume (datastore) on it
  • Migrate the VMs that you want to protect onto the new datastore
  • Enable replication on the new LUN that corresponds to the new datastore
  • Approach-1: This is used in scenarios where the array does not have the spare capacity to provision a separate LUN for host-protected VMs. This approach adds an administrative overhead if the VMs are spread across multiple datastores. It also contributes to the wastage of replication bandwidth and storage space, since the LUNs that are replicated will also contain unprotected VM data.
  • Approach-2: This is used in scenarios where you have ample spare capacity. This approach is the best as it reduces the complexity and avoids the wastage of replication bandwidth and space, unlike Approach-1. However, this approach will have an impact on the size of the LUNs required at both the protected and replication sites.

Host presentation (Zoning) at the protected and the recovery sites

If you are involved in a new implementation, then you will have to plan how the ESXi hosts are zoned to the array at both the protected and recovery sites. This means that LUNs should be correctly zoned at the Fabric:

  • At the protected site array, zone the ESXi hosts to communicate with the array, and make sure that the LUNs housing the VMs to be protected are assigned to the ESXi hosts
  • At the recovery site array, zone the ESXi hosts to the array, but do not map the replica LUNs to the hosts yet

Installing SRM on both the protected and recovery sites

VCenter SRM has to be installed at the both the protected and recovery sites for the disaster recovery setup to work. The installation process is identical regardless of the site it is being installed at; the only difference is that at each site, you will be registering SRM installation to the vCenter Server managing that site.

SRM can be installed either on the same machine that has vCenter Server installed or on a different machine. The decision to choose one of the installation models depends on how you want to size or separate the service-providing machines in your infrastructure. The most common deployment model is to have both vCenter and SRM on the same machine. The rationale behind this is that SRM will not work in standalone mode, that is, if your vCenter Server goes down, there is no way to access SRM. Like vCenter Server, SRM can be installed either on a physical or on a virtual machine.

Another factor that you would want to take into account is the installation of the SRA. SRAs have to be installed on the same machine where you have SRM installed. Some SRAs would need a reboot after they are installed. So, it is important to read through the storage vendor's documentation prior to proceeding to make a deployment choice for SRM. If the vCenter downtime is not feasible, then you will have to consider installing SRM on a separate machine.

Nevertheless, it is important to make yourselves aware of the software and hardware requirements of a software installation before it is actually installed. This is to make sure that you don't run into compatibility or supportability issues during the course of using the product. To understand the requirements for SRM, refer to page 13 of the Site Recovery Manager System Requirements chapter, in the Site Recovery Manager Installation and Configuration guide for SRM 6.1.

This guide can be accessed at the following URL:

http://pubs.vmware.com/srm-61/topic/com.vmware.ICbase/PDF/srm-install-config-6-1.pdf

The following flowchart depicts the processes involved in installing vCenter SRM:

Installing SRM on both the protected and recovery sites

Performing the SRM installation

Let's assume that the SRM database and the 64-bit DSN have already been created. We will delve directly into the installation procedure using the SRM installer.

Before you begin, you will need to download the SRM installation bundle from VMware's website. It can be downloaded by navigating to www.vmware.com and then to Downloads | vCenter Site Recovery Manager. You will need to log in to your my.vmware.com account before you cloud download the executable.

The following procedure will guide you through the SRM installation wizard:

  1. Double-click the downloaded executable to load the installer.
  2. On the welcome screen of the installation wizard, click on Next to continue.
  3. On the VMware Patents screen, click on Next to continue.
  4. Accept the license agreement and click on Next to continue.
  5. On the Installation Prerequisites screen, click on Next to continue.
  6. Choose a destination folder for the installer to put the files. The default location is c:\Program Files\VMware\VMware vCenter Site Recovery Manager\. You can change this by clicking on the Change button. For now, I have chosen to leave the default in place. Click on Next to continue.
  7. On the vSphere Platform Services Controller screen, supply the FQDN or the IP address of the PSC and its Single Sign-On (SSO) credentials:
    Performing the SRM installation

    The details supplied here correspond to the PSC of the vCenter site that you intended to protect. Click on Next to continue.

  8. You will be prompted to accept the PSC certificate. Click on Accept and then on OK to close the Certificate Information window.
  9. On the VMware vCenter Server screen, choose the vCenter to register the SRM instance with and click on Next to continue:
    Performing the SRM installation

    You might get a list of more than one vCenter if there is more than one vCenter using the same PSC, or if the PSCs are part of the same SSO domain—Linked Mode for example.

  10. In the Site Recovery Manager Extension screen, supply a Local Site Name, Administrator E-mail, and local host IP address. Listener Port by default is set to 9086. The local site name could be any name that can identify the vCenter sites in the SRM GUI. The local host IP address is the IP of the machine on which SRM is being installed. It is possible that the machine on which SRM is being installed has more than one network interfaces configured with different IP addresses. The local host option will let you choose the interface you want SRM to be available on:
    Performing the SRM installation
  11. On the Site Recovery Manager Plug-in ID screen, choose the Default Site Recovery Manager Plug-in Identifier option. The Custom Site Recovery Manager Plug-in Identifier option is used when you need to share a single site as a recovery site for more than one protected site. You will learn more about this in the Setting up a Shared Recovery Site topic of this chapter:
    Performing the SRM installation
  12. In the Certificate Type screen, you can either let the installer generate a certificate or you could supply a certificate file generated by a certificate authority.

    The options available are:

    • Automatically generate a certificate
    • Use a PKCS#12 certificate file

    Make your choice and click on Next to continue.

    The first option will let the installer generate a new certificate. Use the second option if you already have a certificate file from your certificate authority. VMware recommends using CA signed certificates for all of its products.

  13. On the next screen, supply the details (Organization and Organization Unit) for the certificate generation and click on Next to continue. You will be prompted for this information only if you have chosen to automatically generate a certificate.
  14. On the Database Server Selection screen, you have a choice between an embedded database server and an external database:
    Performing the SRM installation

    The embedded database is a vPostgreSQL database and an external can be SQL or Oracle.

  15. If you choose the embedded database server, then on the next screen you must specify a Data Source Name, Database User Name, and Database Password for the embedded database:
    Performing the SRM installation

    If you choose to use an external database, for instance SQL, then you will need a 64-bit DSN pre-created and the valid credentials for the database connection. It is not a recommended practice to expose the database server's sa credentials. Hence consider using a service account.

  16. The Site Recovery Manager Service Account by default will use the local system account. However, the best practice is to use a separate service account for this.
  17. On the Ready to install the Program screen, click on Install to begin the installation. The account should be a member of the local Administrators group.
  18. Once the installation is complete, click on Finish to exit the installer.

Pairing SRM sites

Once SRM is installed on both sites, then the next step is to pair these sites together. The pairing process establishes a connection between the vCenter Servers at the protected and recovery sites, which in turn makes the SRM instances at both sites become aware of its counterpart at the other site (protected/recovery). Without the sites being paired, we cannot proceed with further configuration of the DR setup.

Here is how the sites can be paired:

  1. Connect to either of the protected/recovery sites through vCenter Server using vSphere Web Client.
  2. Navigate to the inventory Home and click on Site Recovery:

    Pairing SRM sites

  3. At the Site Recovery home page, select Sites from the left pane and navigate to its Objects tab.
  4. The Objects tab will list the current SRM site. Click on the pair a site icon Pairing SRM sites to bring up the Pair Site Recovery Manager Servers wizard:
    Pairing SRM sites
  5. On the Pair Site Recovery Manager Servers wizard's Select Site page, supply the FQDN or IP address of the PSC that corresponds to the secondary site and click on Next:
    Pairing SRM sites
  6. On the Select vCenter Server screen, select the intended vCenter and supply its SSO credentials. Click on Next to continue:
    Pairing SRM sites
  7. You will now see a certificate security alert for both the sites. Click on Yes in both dialog boxes to continue.
  8. Once done, you will see both the sites listed:
    Pairing SRM sites
  9. Now, select the site that you just added and click on the Pairing SRM sites icon to bring up the Login Site window, prompting the credentials for the vCenter managing the second site:
    Pairing SRM sites
  10. On the Login Site window, supply the vCenter credentials and click on Login. This completes the site pairing process.

    Note

    The paring is done only from one of the sites. This is because the pairing process establishes reciprocity by configuring the connection in the reverse direction as well. But when you open the site recovery solution at the remote vCenter Server, you may be prompted to enter the administrator credentials of the other site.

Installing the Storage Replication Adapters

Once you have SRM instances installed and paired, the next step is to install the SRAs. SRAs are coded and provided by the storage vendors. VMware certifies the SRAs and posts them as the compatible ones for the SRM.

Downloading the SRAs

The certified versions of the SRA can be downloaded directly from VMware's website. Keep in mind that most vendors publish the updated versions of the SRA at their website before it is certified by VMware. Since SRA is a vendor-supported component, you could choose to install the latest version available from the vendor, if that is known to fix a problem that you are dealing with.

Here is how you can download the SRA:

  1. Go to VMware's website www.vmware.com.
  2. Under the Product Downloads category, navigate to Downloads | vCenter Site Recovery Manager.
  3. Once you are on the download page for vCenter SRM, click on the Go to Downloads hyperlink listed against Storage Replication Adapters.
  4. At the Download Storage Replication Adapters for VMware vCenter Site Recovery Manager page, you will see a list of all the certified SRAs. Click on the Download Now button corresponding to the required SRA.

Installing the SRA

The SRA component, once downloaded, has to be installed on both the sites. In most cases, the SRA installation is pretty simple and straightforward, but this can be different from vendor to vendor. You need to refer to the vendor documentation for the installation procedure.

Adding array managers and enabling array pairs

Once you have installed the SRA at both sites, you will now need to add an array manager at both sites. An array manager is required to discover the replicated LUNs and perform other storage operations initiated by SRM.

Here is how you can add an array manager:

  1. Connect to either of the protected/recovery sites through vCenter Server using vSphere Web Client, navigate to Home | Site Recovery, click on Array Based Replication, and select its Objects tab:
    Adding array managers and enabling array pairs
  2. Under the Objects tab, click on the Adding array managers and enabling array pairs icon to bring up the Add Array Manager wizard:
    Adding array managers and enabling array pairs
  3. The Add Array Manager wizard presents two options:
    • Add a pair of array managers: This is used when you want to go through the process of adding both the protected and recovery site array managers and enabling the array pair. Use this method during this initial configuration.
    • Add a single array manager: This is used when you want to add the array managers as separate steps. This can be handy when you want to remove and re-add the array manager corresponding to a particular site.
    Adding array managers and enabling array pairs
  4. Select the Add a pair of array managers option, and click on Next to continue.
  5. Select the site pair to configure the array managers, and click on Next to continue:
    Adding array managers and enabling array pairs
  6. The Select SRA type screen will list the discovered SRA installed on the SRM servers at both the sites. You will not be able to proceed further if it cannot find the SRA at the paired site:
    Adding array managers and enabling array pairs

    This will be followed by two configure array manager screens, one each for the protected and recovery sites.

  7. On the first Configure array manager screen, enter a Display Name and the login information required by the protected site's SRA to connect to its storage array. Click on Next to continue:
    Adding array managers and enabling array pairs
  8. On the second Configure paired array manager screen, enter a Display Name and the login information required by the recovery site's SRA to connect to its storage array. Click on Next to continue:
    Adding array managers and enabling array pairs
  9. On the Enable array pairs screen, you will be presented with a list of discovered array pairs. Select the array pair corresponding to the protected and recovery sites and click on Next to continue:
    Adding array managers and enabling array pairs
  10. On the Ready to complete screen, review the summary of the selected settings and click on Finish to create the array manager pair:
    Adding array managers and enabling array pairs

    The information prompted on the Configure array manager screen (at step 8 and step 9) differs from array to array and from vendor to vendor. It is purely dependent on the SRA being used.

    Note

    I have used an HP StoreVirtual (left-hand) SRA and have entered the Virtual IP (VIP) of the cluster the Node Storage Module (NSM) is part of. If none of the NSMs in the cluster are involved in the replication for SRM, then I could supply the IP addresses of the involved NSMs separated by a comma.

    If the array managers are successfully added, then they will be listed with a Status OK under the Object tab:

    Adding array managers and enabling array pairs

    Now, you can select either of the array managers and navigate to Manage | Array Pair to view a list of replicated devices and its direction of replication, which will be Outgoing Replication for the Protected Site Array Manager and Incoming Replication for the Recovery Site Array Manager:

    Adding array managers and enabling array pairs

    Also, to discover and list new replication-enabled LUN devices that are presented to hosts, click on the Adding array managers and enabling array pairs icon to run a Discover Devices operation for the selected array pair.

    The Array Pairs tab shows the replication relationship between two arrays. Before you enable the array pair, you need SRA installed and the array manager added at both the sites. For the array manager to detect an array pair, there should be a replication schedule already created between the arrays. Refer to the vendor documentation to understand what a replication schedule would mean for the vendor's array and the procedure to create it. When an array pair is enabled, it tries to discover the LUN devices for which a replication schedule is enabled at the array. However, not all devices with a replication schedule are displayed as a device for the array pair. Only the devices that are presented to a host at the protected site are displayed.

    If the replicated LUN devices are not presented to the hosts at the replication source (protected site), then it will complain about this:

    Adding array managers and enabling array pairs

Configuring placeholder datastores

For every virtual machine that becomes part of a protection group, SRM creates a shadow virtual machine. A placeholder datastore is used to store files for the shadow virtual machines. The datastore used for this purpose should be accessible to all the hosts in the data center/cluster serving the role of a recovery host. We will learn more about protection groups and shadow virtual machines in the next chapter. For now, understand that configuring placeholder datastores is an essential step in configuring an SRM environment.

Assuming that each of these paired sites are geographically separated, each site will have its own placeholder datastore. The following figure shows the relationship between the site and placeholder datastore:

Configuring placeholder datastores

Here is how you can configure placeholder datastores:

  1. Navigate to Home | Site Recovery:
    Configuring placeholder datastores
  2. Click on Sites in the left pane to view the Sites page:
    Configuring placeholder datastores
  3. Select a site, navigate to Manage | Placeholder Datastores, and click on the Configuring placeholder datastores icon to bring up the Configure Placeholder Datastore window:
    Configuring placeholder datastores
  4. On the Configure Placeholder Datastore window, select a datastore to be designated as a placeholder datastore and click on OK:
    Configuring placeholder datastores
  5. If successfully designated, it should be listed under the Placeholder Datastores tab:
    Configuring placeholder datastores
  6. You should repeat the procedure at the secondary (recovery) site if you plan to failback.

Creating resource, folder, and network mappings

Creating resource, folder, and network mappings facilitates further orchestration of the recovery plan that will be executed for either a planned migration or a failover. Without these mappings, you wouldn't be able to configure protection on the virtual machines and the protection status will indicate that these mappings are missing. We will learn more about protection groups in the next chapter.

Apart from being a requirement for creating protection groups, there are other use cases as well. Here are a few common ones:

Use cases

Mapping to use

If the designated recovery site runs other workloads, then you might want to create a separate folder for the VMs from the protected site

Folder mappings

If there is a separate cluster/resource pool at the recovery site to host the VMs recovered from the protected site

Resource mappings

If there are vSwitch/DSwitch port groups at the recovery site for the recovered VMs

Network mappings

Resource mappings

We need to provide a correlation between the compute resource containers on both the sites. The compute resource containers are cluster, resource pool, and ESXi host. This is achieved with the help of resource mappings.

Resource mappings respects the presence of these containers. This means that, if there is a cluster or a resource pool at the site, then the ESXi hosts are not made available as a selectable compute container.

Here is how you configure resource mapping:

  1. Navigate to Home | Site Recovery and click on Sites to list the paired sites.
  2. Select the protected site, navigate to its Manage | Resource Mappings tab, and click on the Resource mappings icon to bring up the Create Resource Mapping wizard:
    Resource mappings
  3. The Create Resource Mapping screen displays the vCenter inventory of the Protected Site on the left pane and the recovery site on the right pane:
    • Expand the Protected Site's vCenter inventory tree to select the resource container (cluster/resource pool/ESXi host) that you want to map.
    • Expand the recovery site's vCenter inventory tree to select the destination resource container. Once you have made the selections, click on Add Mappings.
    Resource mappings

    The mapping can be one-to-one or many-to-one. Click on Next to continue.

  4. The Prepare reverse mappings screen will let you configure reverse-directional mappings from the secondary/recovery site to the primary/protected site. This is required if you plan to configure failback. However, reverse mapping is only made available for one-to-one mappings. Choosing Select all applicable will only select the one-to-one mappings. With the selections made, click on Finish to create the resource mapping:
    Resource mappings
  5. Once configured, the mappings are listed under the Resource Mappings tab:
    Resource mappings

Folder mappings

Folders are inventory containers that can only be created using vCenter Server. They are used to group inventory objects of the same type/purpose for easier management.

There are different types of folders. This is determined by the inventory hierarchy level they are created at. The folder names are as follows:

  • Data center folder
  • Hosts and clusters folder
  • Virtual machine and template folder
  • Networks folder
  • Storage folder

The vSphere Web Client provides UI menu options to create a folder of the following types, without needing to navigate to an appropriate inventory hierarchy level to create them:

  • Hosts and clusters folder
  • Networks folder
  • Storage folder
  • Virtual machine and templates folder

In the case of SRM folder mappings, we will be dealing only with virtual machine folders and their parent data center. You will not be able to configure mapping for any of the other folder types.

Here is how you configure Folder Mappings:

  1. Navigate to Site Recovery Manager Home and click on Sites to list the paired sites.
  2. Select the protected site, navigate to its Manage | Folder Mappings tab, and click on the Folder mappings icon to bring up the Create Folder Mapping wizard:
    Folder mappings
  3. The Select creation mode screen presents you with two folder mapping methods—automatic and manual:
    • The Automatically prepare mappings for networks with matching names option is used to auto create one-to-one mapping between identically named Folders at the Protected and Recovery sites. This is generally the preferred option when you have a lot of folders to map and if they were identically named.
    • The Prepare mappings manually option is used to create both many-to-one and one-to-one mappings. This option should be used when you do not have identically named virtual machine folders at the secondary site.

    Choose the intended option and click on Next to continue:

    Folder mappings
  4. With both the options, once you have made the necessary selections on the Prepare mappings screen, click on the Add mappings button to confirm the selection. Click on Next to continue:
    Folder mappings
  5. The Prepare reverse mappings screen will let you configure mapping reverse-directional folder mappings from the Secondary/Recovery site to the Primary/Protected site. This is required if you plan to configure failback. However, reverse mapping is only made available for one-to-one mappings. Choosing Select all applicable will only select the one-to-one mappings. With the selections made, click on Finish to create the folder mapping:
    Folder mappings
  6. Once done, the mappings created will be listed under the Folder Mappings tab:
    Folder mappings

Network mappings

Network configuration at the protected and recovery sites need not be identical. Network mappings provide a method to form a correlation between the port groups (standard or distributed) of the protected and recovery sites.

Let's say we have a port group with the name VM Network at the protected site and it is mapped to a port group with the name Recovery Network at the recovery site. In this case, a virtual machine that is connected to VM Network, when failed over, will be reconfigured to use the Recovery Network.

Here is how you configure Network Mappings:

  1. Navigate to Site Recovery Manager Home and click on Sites to list the paired sites.
  2. Select the Protected Site, navigate to its Manage | Network Mappings tab, and click on the Network mappings icon to bring up the Create Network Mapping wizard:
    Network mappings
  3. As with the folder mapping options, the Select creation mode screen presents you with two network mapping methods as well—automatic and manual mapping. Choose the intended option and click on Next to continue:
    • The Automatically prepare mappings for networks with matching names option is used to auto create one-to-one mapping between identically named virtual machine port groups at the protected and recovery sites. This is generally the preferred option when you have a lot of port groups to map and if there were identically named.
    • The Prepare mappings manually option is used to create both many-to-one and one-to-one mappings. This option should be used when you do not have identically named virtual machine port groups at the secondary site.
    Network mappings
  4. With both these options, once you have made the necessary selections on the Prepare mappings screen, click on the Add mappings button to confirm the selection. Click on Next to continue:
    Network mappings
  5. On the Select test networks screen, you can set a test network for all the recovery site port groups that were selected in the previous mapping screen. By default, the test network is an isolated network (a VM port group with no uplinks). These are used only while testing a recovery LAN. We will learn about recovery plans and their testing in a later chapter. You don't necessarily have to make any changes on this screen. Click on Next to continue:
    Network mappings
  6. The Prepare reverse mappings screen will let you configure mapping reverse-directional port group mappings from the Secondary/Recovery site to the Primary/Protected site. This is required if you plan to configure failback. However, reverse mapping is only made available for one-to-one mappings. Choosing Select all applicable will only select the one-to-one mappings. With the selections made, click on Finish to create the network mapping:
    Network mappings
  7. Once done, all the mappings created will be listed under the Network Mappings tab:
    Network mappings

Virtual machine swap file location

With SRM implementations, there is a common argument about the placement of the virtual machine swap files. Some would suggest maintaining a separate datastore for the virtual machine swap files, whereas some are against it. Before we try to understand the rationale behind these design choices, it is important to know what a virtual machine swap file is.

Every virtual machine will have a swap file (.vswp). This swap file is created every time a virtual machine is powered on. The size of the swap file is equal to the size of the memory assigned to the virtual machine, unless there is a reservation. If there is a memory reservation, then the size of the swap file will be equal to the size of the unreserved memory. Although rare, some environments use limits on memory as well.

So, the ideal formula to calculate the size of the swap file is as follows:

Virtual machine swap file location

The default memory reservation is 0 MB and the default limit is equal to the configured size of the memory. By default, the swap file is stored along with the virtual machine in its working directory.

Design choice 1: Separate datastore for the swap files

Rationale: The swap file is created every time a virtual machine is powered-on. Since the VM will be powered on at the recovery site, and the swap file will be created at that time, there is no need to replicate the swap files.

The following table illustrates the pros and cons of this:

Pros

Cons

Swap file replication, if avoided, can reduce the bandwidth utilization for storage replication.

Single point of failure.

Reduces the need for the storage space at the recovery site, which otherwise would be needed for the swap files.

The swap location should be chosen at a per host level. This would require a lot of manual work in a large environment.

 

Need to accommodate a separate large LUN. This could affect the available spare capacity of the array.

Design choice 2: Store the swap files in the VM's working directory

Rationale: Apart from the reduced replication bandwidth usage, there is no real advantage of maintaining a separate datastore for the swap files, and most SRM implementations would have already made sure that there would be more than enough bandwidth to make storage replication feasible. Also, not all virtual machines frequently use swap the files unless the vSphere environment is oversubscribed and the virtual machines are frequently contending for memory resources. In most cases, the swap files will be replicated during the initial sync. Subsequent synchronizations will include swap files created consequent to power-off and power-on operations. Keep in mind that a Guest OS reboot will not trigger the recreation of the swap files.

Pros

Cons

No administrative overhead, which would otherwise be needed to configure a swap datastore per host

Bandwidth wastage, due to the replication of the swap files

No single point of failure

Wasted storage capacity at the recovery site, which could be otherwise avoided if the swap files are not duplicated on the replica LUNs

Note

The design choices and the rationales behind them can vary depending on the environment you are dealing with. The rationales are only guidelines.

Summary

In this chapter, we learned what VMware vCenter Site Recovery Manager is and how it can be installed and configured to lay the groundwork for any SRM environment. In the next chapter, we will learn how to enable protection of the virtual machine workload by creating protection groups and recovery plans.

Left arrow icon Right arrow icon

Key benefits

  • •This is the first book on the market that provides an extensive disaster recovery solution using the latest vSphere Replication and vCenter Site Recovery Manager
  • •Master the skills of protecting your virtual machines by replicating and recovering them in seconds
  • •This practical, step-by-step guide will help you protect all your applications with Site Recovery Manager and Replication

Description

VMware vCenter Site Recovery manage is an orchestration tool used to automate disaster recovery in a manner that no other solution does. It is programmed to leverage array-based replication and VMware's proprietary vSphere Replication engine. The book begins by talking about the architecture of SRM and guides you through the procedures involved in installing and configuring SRM to leverage array-based replication. You will then learn how to protect your virtual machines by creating Protection Groups and validate their recoverability by testing recovery plans and even performing failover and failback. Moving on, you will learn how to install and configure vSphere Replication as a standalone disaster recovery solution. It also guides you through the procedures involved in configuring SRM to leverage vSphere replication. Finally, you will learn how to deploy and configure vRealize Orchestrator and its plugin for SRM and vSphere Replication.

Who is this book for?

If you are a system administrator who is looking for a disaster recovery solution using the latest VMware vSphere Replication and vCenter Site Recovery Manager, this book is perfect for you. You should have a basic knowledge of virtual machines and data center operations.

What you will learn

  • • Familiarize yourself with disaster recovery concepts and the architecture of vCenter Site Recovery Manager and vSphere Replication.
  • • Deploy and Configure vCenter Site Recovery Manager to leverage array-based replication and vSphere Replication.
  • • Use vSphere Replication as a standalone disaster recovery solution.
  • • Enabling protection of Virtual Machines by creating Protection Groups.
  • • Enable orchestration of the recovery of protected virtual machines by creating Recovery Plans.
  • • Migrate virtual machine workload from one site to another using Recovery Plans
  • • Testing and Performing a failover or failback of Virtual Machines using Recovery Plans
  • • Enable vRealize Orchestrator Plugins for SRM and vSphere Replication.
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 28, 2016
Length: 208 pages
Edition : 2nd
Language : English
ISBN-13 : 9781785886096
Vendor :
VMware
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Oct 28, 2016
Length: 208 pages
Edition : 2nd
Language : English
ISBN-13 : 9781785886096
Vendor :
VMware
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 170.97
Building VMware Software-Defined Data Centers
$65.99
Disaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager
$38.99
VMware vRealize Orchestrator Cookbook
$65.99
Total $ 170.97 Stars icon

Table of Contents

7 Chapters
1. Installing and Configuring vCenter Site Recovery Manager (SRM) 6.1 Chevron down icon Chevron up icon
2. Creating Protection Groups and Recovery Plans Chevron down icon Chevron up icon
3. Testing and Performing a Failover and Failback Chevron down icon Chevron up icon
4. Deploying vSphere Replication Chevron down icon Chevron up icon
5. Configuring and Using vSphere Replication 6.1 Chevron down icon Chevron up icon
6. Using vRealize Orchestrator (vRO) to Automate SRM and vSphere Replication Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(1 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
mothi.android Jan 06, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Book is nice but at this price point this could have been better
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela