For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/hosted-private-cloud/nutanix-on-ovhcloud/set-up-advanced-replication-disaster-recovery-nutanix.md.
  • English

Advanced replication and disaster recovery with Nutanix

View as Markdown

Introduction

Nutanix Disaster Recovery allows:

  • Asynchronous and synchronous replication based on the chosen license pack
  • Test replicas
  • Advanced disaster recovery plans with virtual machine startup and, in some cases, cluster-to-cluster failover automation (only with synchronous replication and a cluster witness)
  • a destination to the Nutanix cloud with Disaster Recovery (note that this solution is not available with licenses provided by OVHcloud)

 

Requirements

  • Two Nutanix clusters in your OVHcloud account

  • Access to the OVHcloud Control Panel

  • Access to your clusters via Prism Central

  • An interconnection between two clusters, for example using these technologies:

  • Prism Central needs more resources depending on the mode:

    • Single Mode: 4GB additional RAM.
    • Scale Mode with 3 Prism Central virtual machines: 8 GB additional RAM per virtual machine.

 

Instructions

Our Disaster Recovery Plan will be set up between two clusters, both of which are located in remote OVHcloud datacenters, one in Datacenter 1 and the other in Datacenter 2. The two clusters are connected by an IPSec VPN with this network configuration:

  • Cluster administration LAN in Datacenter 2: 192.168.0.0/24.
  • Cluster administration LAN in Datacenter 1: 192.168.10.0/24.
  • Production LAN for VMs, common to both clusters: 192.168.50.0/24 on VLAN 50.
  • Test LAN common to both clusters: 192.168.51.0/25 on VLAN 51.

 

Commissioning of Nutanix Disaster Recovery

Using Prism Central, connect to Prism Element on the cluster in Datacenter 2. You can use the Nutanix Hyperconvergence guide for more information.

In the top left-hand corner of the Prism Element dashboard, click the cluster name.

Leap - Set up advanced replication disaster recovery Nutanix - step 1

Verify the IP Address in the iSCSI Data Service IP field and click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 2

Also via Prism Central, now perform the same operation on the cluster in Datacenter 1.

In the top left-hand corner of the Prism Element dashboard, click the cluster name.

Leap - Set up advanced replication disaster recovery Nutanix - step 3

Verify the IP Address in the iSCSI Data Service IP field and click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 4

 

Enabling Disaster Recovery

Go back to the Prism Central interface for the cluster in Datacenter 2.

From the main menu, click the Data Protection section and then Recovery Plans.

Leap - Set up advanced replication disaster recovery Nutanix - step 5

Click Enable Disaster Recovery.

Leap - Set up advanced replication disaster recovery Nutanix - step 6

When you see Prechecks successful, click Enable.

Leap - Set up advanced replication disaster recovery Nutanix - step 7

Now go back to the Prism Central interface of the cluster in Datacenter 1 and do the same.

Under Data Protection click Recovery Plans.

Leap - Set up advanced replication disaster recovery Nutanix - step 8

Click Enable Disaster Recovery.

Leap - Set up advanced replication disaster recovery Nutanix - step 6

Again, when Prechecks successful appears on the screen, click Enable.

Leap - Set up advanced replication disaster recovery Nutanix - step 7

Each cluster now has an Availability zone, which allows them to be interconnected.

 

Connecting both clusters

Stay on Prism Central in the cluster in Datacenter 1.

From the main menu, click Availability Zones under Administration.

Leap - Set up advanced replication disaster recovery Nutanix - step 9

Then click Connect to Availability Zone.

Leap - Set up advanced replication disaster recovery Nutanix - step 10

Enter this information:

  • Availability Zone Type: Physical Location.
  • IP Address for Remote PC: IP address of the remote Prism Central.
  • Username: Remote Prism Central administrator account.
  • Password Remote Prism Central account password.

Then click Connect.

Leap - Set up advanced replication disaster recovery Nutanix - step 11

The remote cluster is named after the private IP address of the Prism Central in Datacenter 2, preceded by PC_.

Leap - Set up advanced replication disaster recovery Nutanix - step 12

Connect to the cluster in Datacenter 2 with Prism Central.

From the main menu, click Availability Zones on the Administration submenu.

Leap - Set up advanced replication disaster recovery Nutanix - step 9

You will see that the remote site in Datacenter 1 appears with the private IP address of the Prism Central in Datacenter 1 preceded by PC_.

Leap - Set up advanced replication disaster recovery Nutanix - step 13

 

Implementation of replication from Datacenter 1 to Datacenter 2

Warning

NOTE: Virtual machines that will be protected with Nutanix Disaster Recovery should not be members of a Domain Protection created from Prism Element. There is a procedure on the Nutanix website to perform this migration: Migrating from a Domain Protection.

 

Creating a category containing the virtual machines to replicate

From the main menu, click Categories in the Administration submenu.

Leap - Set up advanced replication disaster recovery Nutanix - step 14

Click New Category.

Leap - Set up advanced replication disaster recovery Nutanix - step 15

Enter this information:

  • Name: replicated-vm
  • values: from-Datacenter1

Then click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 16

Go back to the main menu and select VMs under Compute and Storage.

Leap - Set up advanced replication disaster recovery Nutanix - step 17

Select the virtual machine by using the check box to its left, then click the Actions button.

Leap - Set up advanced replication disaster recovery Nutanix - step 18

In this menu, click Manage Categories.

Leap - Set up advanced replication disaster recovery Nutanix - step 19

Select the category you created and click the blue + button.

Leap - Set up advanced replication disaster recovery Nutanix - step 20

Click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 21

 

Creating the protection policy

A protection policy creates a scheduled replication between two Availability zones. You can choose this type of schedule depending on your license:

  • asynchronous every hour
  • nearsync between 1 and 15 minutes
  • synchronous with a delay of 0 seconds (this mode requires a network latency of less than 5ms between the two clusters)

From the main menu, click Protection Policies under Data Protection.

Leap - Set up advanced replication disaster recovery Nutanix - step 22

Click Create Protection Policy.

Leap - Set up advanced replication disaster recovery Nutanix - step 23

Enter a name in the Policy name field.

In the Primary location box, choose these options:

  • Location: Local AZ to choose the zone containing the local cluster.
  • Cluster: Cluster containing the virtual machines to be replicated.

Click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 24

In the Recovery location frame, choose these options:

  • Location: Remote cluster zone.
  • Cluster: Destination cluster.

Click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 25

Then click + Add schedule.

Leap - Set up advanced replication disaster recovery Nutanix - step 26

Choose Asynchronous as Protection Type.

Change the Take Snapshot Every option to Minutes: 15 to do nearsync replication.

Select the Take App-Consistent Snapshots checkbox and click Save Schedule.

Leap - Set up advanced replication disaster recovery Nutanix - step 27

Click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 28

Select the category where the virtual machine was added and click Add.

Leap - Set up advanced replication disaster recovery Nutanix - step 29

Click Create.

Leap - Set up advanced replication disaster recovery Nutanix - step 30

The protection policy is enabled and appears in the Protection Policies dashboard.

Leap - Set up advanced replication disaster recovery Nutanix - step 31

 

Disaster Recovery Plan Management

Introduction

Disaster recovery plans can be created with various options:

  • Manually launch the disaster recovery plan if there is no cluster witness.
  • Synchronous replication disaster recovery plan automation with a cluster witness.
  • Choose how virtual machines start when the disaster recovery plan is activated with the ability to run a script.

In our example, this will be a manual disaster recovery plan that includes automatic startup of virtual machines.

 

Creating Disaster Recovery Plan

From the main menu, choose Recovery Plans under Data Protection.

Leap - Set up advanced replication disaster recovery Nutanix - step 32

Click Create New Recovery Plan.

Leap - Set up advanced replication disaster recovery Nutanix - step 33

Enter these values:

  • Recovery Plan Name: the name of the disaster recovery plan.
  • Primary Location: Local AZ to choose the zone containing the local cluster.
  • Recovery Location: Name of the Remote Area that will be used for the disaster recovery plan.

Click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 34

Click Add Entities.

Leap - Set up advanced replication disaster recovery Nutanix - step 35

Select the checkbox next to the virtual machine that is part of the disaster recovery plan, then click Add.

Leap - Set up advanced replication disaster recovery Nutanix - step 36

Select the checkbox next to the virtual machine that should start automatically when the disaster recovery plan is enabled.

Then click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 37

After reviewing the Disaster Recovery Plan presentation, click OK, Got it.

Leap - Set up advanced replication disaster recovery Nutanix - step 38

On the primary site, choose these options:

  • Production: Production VLAN
  • Test Failover: Test VLAN

On the recovery site, choose these options:

  • Production: Production VLAN
  • Test Failover: Test VLAN

Then click Done.

Leap - Set up advanced replication disaster recovery Nutanix - step 39

The disaster recovery plan appears in the list.

Leap - Set up advanced replication disaster recovery Nutanix - step 40

 

Scheduled migration

Migrating a site from Datacenter 1 to Datacenter 2

Connect with Prism Central on the cluster in Datacenter 2 to switch the virtual machine from Datacenter 1 to Datacenter 2.

From the main menu, choose Recovery Plans in the Data Protection section.

Leap - Set up advanced replication disaster recovery Nutanix - step 41

Select the disaster recovery plan by using the checkbox to the left of it, then click the Actions button to open the menu.

Leap - Set up advanced replication disaster recovery Nutanix - step 42

Click Failover.

Leap - Set up advanced replication disaster recovery Nutanix - step 43

Select Planned Failover as the type of Failover and click the Failover button.

Leap - Set up advanced replication disaster recovery Nutanix - step 44

Type Failover in the confirmation field and click the Failover button.

Leap - Set up advanced replication disaster recovery Nutanix - step 45

The migration steps are described below:

  1. Stopping the virtual machine on the original cluster.
  2. Synchronizing the latest changes.
  3. Deleting the virtual machine on the original cluster.
  4. Adding the virtual machine on the destination cluster.
  5. Starting the virtual machine on the destination cluster.

The result of the migration appears in the Last Failover Status column with the status Succeeded if everything went well.

Leap - Set up advanced replication disaster recovery Nutanix - step 46

 

Reverse Replication

In the case of scheduled failover, you must reverse replication to continue to have redundancy between the two sites.

Using Prism Central, log in to the destination cluster in Datacenter 2.

From the main menu, choose Protection Policies from the Data Protection submenu.

Leap - Set up advanced replication disaster recovery Nutanix - step 47

Select the checkbox to the left of the protection policy and click the Actions button.

Leap - Set up advanced replication disaster recovery Nutanix - step 48

Click the Update button.

Leap - Set up advanced replication disaster recovery Nutanix - step 49

Move left under Primary Location until a menu appears. Click Edit.

Leap - Set up advanced replication disaster recovery Nutanix - step 50

Edit the following information in the Primary Location frame:

  • Location: Local AZ
  • Cluster: local area cluster

Then click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 51

Click Update Location.

Leap - Set up advanced replication disaster recovery Nutanix - step 52

Move to the right below the destination until a menu appears. Click Edit.

Leap - Set up advanced replication disaster recovery Nutanix - step 53

Then edit the following information as part of Recovery Location:

  • Location: destination area.
  • Cluster: cluster of the destination area.

Click Save.

Leap - Set up advanced replication disaster recovery Nutanix - step 54

Click Update Location.

Leap - Set up advanced replication disaster recovery Nutanix - step 55

Click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 56

Click Update to complete the inversion.

Leap - Set up advanced replication disaster recovery Nutanix - step 57

 

Modifying Disaster Recovery Plan

You must also change the disaster recovery plan by reversing the source and destination.

From the main menu, choose Recovery Plans from the Data Protection submenu.

Leap - Set up advanced replication disaster recovery Nutanix - step 58

Select the disaster recovery plan by using the checkbox to the left of the plan, then click the Actions button.

Leap - Set up advanced replication disaster recovery Nutanix - step 59

From the actions menu, click Update.

Leap - Set up advanced replication disaster recovery Nutanix - step 60

In the Primary Location drop-down menu on the left, replace the remote cluster with Local AZ.

Leap - Set up advanced replication disaster recovery Nutanix - step 61

Choose The remote area in Recovery Location on the right instead of Local AZ.

Leap - Set up advanced replication disaster recovery Nutanix - step 62

Now that the source and destination of the disaster recovery plan have changed, click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 63

Click Proceed.

Leap - Set up advanced replication disaster recovery Nutanix - step 64

Select the Virtual Machine that you want to start during the disaster recovery plan and click Next.

Leap - Set up advanced replication disaster recovery Nutanix - step 65

On the primary site, choose these options:

  • Production: Production VLAN
  • Test Failover: Test VLAN

At the destination site, choose these options:

  • Production: Production VLAN
  • Test Failover: Test VLAN

Then click Done.

Leap - Set up advanced replication disaster recovery Nutanix - step 66

The disaster recovery plan has been modified to allow the virtual machines in the cluster to be switched from the French to the Canadian virtual machines.

If you want to return to the original operation, you will need to failover, change replication, and change the disaster recovery plan.

Leap - Set up advanced replication disaster recovery Nutanix - step 67

 

Enabling a disaster recovery plan following an incident on the original cluster

The disaster recovery plan is also used in the event of a problem with the original cluster. In this case, the activation will be done without the data modified since the last synchronization.

If a synchronous replication solution is used, no data loss will occur.

In our case, replication is scheduled every 15 minutes, the risk of data loss can, in the worst case, correspond to this duration.

From Prism Central, connect to the cluster that is receiving replicas.

From the main menu, choose Recovery Plan from the Data Protection submenu.

Leap - Set up advanced replication disaster recovery Nutanix - step 68

Select the Disaster Recovery Plan with the checkbox and click the Actions button.

Leap - Set up advanced replication disaster recovery Nutanix - step 69

Choose Failover from the menu.

Leap - Set up advanced replication disaster recovery Nutanix - step 70

Check Unplanned Failover and click Failover.

Leap - Set up advanced replication disaster recovery Nutanix - step 71

Type Failover in the confirmation field and click Failover.

Leap - Set up advanced replication disaster recovery Nutanix - step 72

The virtual machine that is a member of the disaster recovery plan will boot to the destination cluster with the contents of the last replication.

 

Go further

Browse all the Nutanix guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Nutanix on OVHcloud on the OVHcloud US website.