Create a replication plan
After you’ve added vCenter sites, you’re ready to create a disaster recovery or replication plan. Select the source and destination vCenters, pick the resource groups, and group how applications should be restored and powered on. For example, you might group virtual machines (VMs) associated with one application or you might group applications that have similar tiers.
Such plans are sometimes called blueprints.
You can create a replication plan and also edit schedules for compliance and testing.
Create the plan
A wizard takes you through these steps:
-
Select vCenter servers.
-
Select the VMs you want to replicate and assign groups.
-
Map how resources from the source environment map to the destination.
-
Identify recurrence, run a guest-hosted script, set the boot order, and select the recovery point objective.
-
Review the plan.
While you are creating the replication plan, you can define the SnapMirror relationship between source and target volumes in one of the following configurations:
-
1 to 1
-
1 to many in a fan-out architecture
-
Many to 1 in a Consistency Group
-
Many to many
When you create the plan, you should follow these guidelines:
-
Use the same credentials for all VMs in the plan.
-
Use the same script for all VMs in the plan.
-
Use the same subnet, DNS, and gateway for all VMs in the plan.
If you want to create a SnapMirror relationship in this service, the cluster and its SVM peering should have already been set up outside of BlueXP disaster recovery.
Select vCenter servers
First, you select the source vCenter and then select the destination vCenter.
-
From the BlueXP left nav, select Protection > Disaster recovery.
-
From the BlueXP disaster recovery top menu, select Replication plans and select Add. Or, if you are just beginning to use the service, from the Dashboard, select Add replication plan.
-
Create a name for the replication plan.
-
Select the source and target vCenters from the Source and Target vCenter lists.
-
Select Next.
Select applications to replicate and assign resource groups
The next step is to group the required VMs into functional resource groups. Resource groups enable you to group a set of dependent VMs into logical groups that meet your requirements. For example, groups could contain delayed boot orders that can be run upon recovery.
When you select applications in the replication plan, you can see the operating system for each VM in the plan. This is helpful in deciding how to group VMs together in a resource group.
Each resource group can include one or more VMs. The VMs will power on based on the sequence in which you include them here. |
-
Optionally, on the left side of the Applications page, filter the VMs by their datastore. You can also search for specific VMs by name.
-
On the left side of the Applications page, select the VMs that you want to protect and assign to the selected group.
The selected VM is automatically added to group 1 and a new group 2 is started. Each time you add a VM to the last group, another group is added.
-
Optionally, do any of the following:
-
To change the group's name, click the group Edit icon.
-
To remove a VM from a group, select X next to the VM.
-
To move a VM to a different group, drag and drop it into the new group.
-
-
When you have multiple resource groups, ensure that the sequence of the groups matches the operational sequence that should occur.
Each VM within a group is started in sequence based on the order here.
-
Select Next.
Map source resources to the target
In the Resource mapping step, specify how the resources from the source environment should map to the target. When you create a replication plan, you can set a boot delay and order for each VM in the plan. This enables you to set a sequence for the VMs to start.
If you want to create a SnapMirror relationship in this service, the cluster and its SVM peering should have already been set up outside of BlueXP disaster recovery.
-
In the Resource mapping page, to use the same mappings for both failover and test operations, check the box.
-
In the Failover mappings tab, select the down arrow to the right of each resource and map the resources in each.
-
Compute resources: Select the down arrow next to Compute resources.
-
Source and target datacenters
-
Target cluster
-
Target host (optional): After you select the cluster, you can then set this information.
If a vCenter has a Distributed Resource Scheduler (DRS) configured to manage multiple hosts in a cluster, you don't need to select a host. If you select a host, BlueXP disaster recovery will place all the VMs on the selected host. -
Target VM folder (optional): Create a new root folder to store the selected VMs.
-
-
Virtual networks: In the Failover mappings tab, select the down arrow next to Virtual networks. Select the source virtual LAN and target segment.
-
Virtual machines: In the Failover mappings tab, select the down arrow next to Virtual machines.
If you make any changes from the default settings, you will need to provide credentials.
The default for the VMs is mapped. Mapping uses the same settings that the VMs use in the production environment (same IP address, subnet mask, and gateway).
Select the network mapping to the appropriate segment. The segments should already be provisioned, so select the appropriate segment to map the VM.
This section might display different fields depending on your selection.
-
IP address type: Reconfigure the VMs configuration to match the target virtual network requirements. BlueXP disaster recovery offers two options: DHCP or static IP. For static IPs, configure the subnet mask, gateway, and DNS servers. Additionally, enter credentials for VMs.
-
DHCP: Select this setting if you want your VMs to obtain network configuration information from a DHCP server. If you choose this option, you provide just the credentials for the VM.
-
Static IP: Select this setting if you want to specify IP configuration information manually. You can select the same or different information from the source VM. If you choose the same as the source, you do not need to enter credentials. On the other hand, if you choose to use different information from the source, you can provide the credentials, IP address of the VM, subnet mask, DNS, and gateway information. VM guest OS credentials should be supplied to either the global level or at each VM level.
This can be very helpful when recovering large environments to smaller target clusters or for conducting disaster recovery tests without having to provision a one-to-one physical VMware infrastructure.
-
-
Scripts: You can include custom scripts in .sh, .bat, or .ps1 format as post failover processes. With custom scripts, you can have BlueXP disaster recovery run your script after a failover process. For example, you can use a custom script to resume all database transactions after the failover is complete.
-
Target VM prefix and suffix: Under the virtual machines details, you can optionally add a prefix and suffix to the VM name.
-
Source VM CPU and RAM: Under the virtual machines details, you can optionally resize the VM CPU and RAM parameters.
-
Boot order: You can modify the boot order after a failover for all the selected virtual machines across the resource groups. By default, the boot order selected during resource-group selection is used; however, you can make changes at this stage. This is helpful to ensure that all your priority one VMs are running before subsequent priority VMs are started.
Boot order numbers apply only within a resource group. If you have a "2" in one group and a "2" in another group, the VMs in the first group start in their order and the VMs in the second group start in their order.
-
Sequential boot: Assign each VM a unique number to boot the in the assigned order, for example, 1,2,3,4,5
-
Simultaneous boot: Assign the same number to all VMs to boot them at the same time, for example, 1,1,1,1,2,2,3,4,4.
-
-
Boot delay: Adjust the delay in minutes of the boot up action.
To reset the boot order to the default, select Reset VM settings to default and then choose which settings you want to change back to the default. -
Create application-consistent replicas: Indicate whether to create application-consistent snapshot copies. The service will quiesce the application and then take a snapshot to obtain a consistent state of the application. This feature is supported with Oracle running on Windows and Linux and SQL Server running on Windows.
-
-
Datastores: Select the down arrow next to Datastores. Based on the selection of VMs, datastore mappings are automatically selected.
This section might be enabled or disabled depending on your selection.
-
RPO: Enter the Recovery Point Objective (RPO) to indicate the amount of data to recover (measured in time). For example, if you enter an RPO of 60 minutes, the recovery must have data that is not older than 60 minutes at all times. If there is a disaster, you are allowing the loss of up to 60 minutes of data. Also enter the number of snapshot copies to retain for all datastores.
-
Retention count: Enter the number of snapshots you want to retain.
-
Source and Target datastores: If multiple (fan-out) SnapMirror relationships exist, you can select the destination to use. If a volume has a SnapMirror relationship already established, the corresponding source and target datastores appear. If a volume that does not have a SnapMirror relationship, you can create one now by selecting a target cluster, a target SVM and providing a volume name. The service will create the volume and SnapMirror relationship.
If you want to create a SnapMirror relationship in this service, the cluster and its SVM peering should have already been set up outside of BlueXP disaster recovery. -
When you specify the Recovery Point Objective (RPO), the service schedules a primary backup based on the RPO and updates the secondary destinations.
-
If the VMs are from same volume and same SVM, then the service performs a standard ONTAP snapshot and updates the secondary destinations.
-
If the VMs are from different volume and same SVM, the service creates a consistency group snapshot by including all the volumes and updates the secondary destinations.
-
If the VMs are from different volume and different SVM, the service performs a consistency group start phase and commit phase snapshot by including all the volumes in the same or different cluster and updates the secondary destinations.
-
During the failover, you can select any snapshot. If you select the latest Snapshot, the service creates on on-demand backup, updates the destination, and uses that Snapshot for the failover.
-
Test the mappings
-
To set different mappings for the test environment, uncheck the box and select the Test mappings tab.
-
Go through each tab as before, but this time for the test environment.
On the Test mappings tab, the Virtual machines and Datastores mappings are disabled.
You can later test the entire plan. Right now, you are setting up the mappings for the test environment.
Identify the recurrence
Select whether you want to migrate data (a one-time move) to another target or replicate it at the SnapMirror frequency.
If you want to replicate it, identify how often data should be mirrored.
-
In the Recurrence page, select Migrate or Replicate.
-
Migrate: Select to move the application to the target location.
-
Replicate: Keep the target copy up to date with changes from the source copy in a recurring replication.
-
-
Select Next.
Review the replication plan
Finally, take a few moments to review the replication plan.
You can later disable or delete the replication plan. |
-
Review information in each tab: Plan Details, Failover Mapping, and VMs.
-
Select Add plan.
The plan is added to the list of plans.
Edit schedules to test compliance and ensure failover tests work
You might want to set up schedules to test compliance and failover tests so that you ensure that they will work correctly should you need them.
-
Compliance time impact: When a replication plan is created, the service creates a compliance schedule by default. The default compliance time is 30 minutes. To change this time, you can use edit the schedule in the replication plan.
-
Test failover impact: You can test a failover process on demand or by a schedule. This lets you test the failover of virtual machines to a destination that is specified in a replication plan.
A test failover creates a FlexClone volume, mounts the datastore, and moves the workload on that datastore. A test failover operation does not impact production workloads, the SnapMirror relationship used on the test site, and protected workloads that must continue to operate normally.
Based on the schedule, the failover test runs and ensures that workloads are moving to the destination specified by the replication plan.
-
From the BlueXP disaster recovery top menu, select Replication plans.
-
Select the Actions icon and select Edit schedules.
-
Enter how frequently in minutes that you want BlueXP disaster recovery to check test compliance.
-
To check that your failover tests are healthy, check Run failovers on a monthly schedule.
-
Select the day of the month and time you want these tests to run.
-
Enter the date in yyyy-mm-dd format when you want the test to start.
-
-
To clean up the test environment after the failover test finishes, check Automatically clean up after test failover.
This process unregisters the temporary VMs from the test location, deletes the FlexClone volume that was created, and unmounts the temporary datastores. -
Select Save.