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-asynchronous-nearsync-replication-through-prism-element.md.
  • English

How to Set Up Asynchronous or NearSync Replication through Prism Element

View as Markdown

Learn how to set up cluster replication via Prism Element.

 

Introduction

Via Prism Element, you can:

  • Add links to remote clusters.
  • Create protection domains to add replications to remote sites.
Warning

NOTE: The Starter Nutanix on OVHcloud pack allows you to use asynchronous replicas every hour.

For a shorter replication time, between 1 and 15 minutes, you must configure NearSync replicas. This option is only available with the Pro or Ultimate OVHcloud packs.

 

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, e.g. via an IPsec VPN

 

Instructions

We will use two Nutanix clusters in OVHcloud datacenters, called Datacenter 1 and Datacenter 2, connected via an IPsec VPN, on two different IP addressing schemes which are:

  • 192.168.0.0/24 for the cluster in Datacenter 2.
  • 192.168.10.0/24 for the cluster in Datacenter 1.

If you need help setting up an IPsec VPN, please refer to our guide on interconnecting two Nutanix clusters through an IPsec VPN.

Connect via Prism Element to the cluster in Datacenter 2 from Prism Central, as shown in this documentation: Nutanix Hyperconvergence.

From the Home menu, click Data Protection.

Cluster replication - Set up asynchronous nearsync replication through prism element

Click Remote Site on the left side of the screen.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 2

Click + Remote Site to the right of the screen and choose Physical Cluster to add a remote site.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 5

Name the remote site in the REMOTE SITE NAME field, enter the IP address of the Prism Element in Datacenter 2 into the CLUSTER VIRTUAL IP field, and click Add Site.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 4

Scroll through the window using the scroll bar.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 3

In the Network Mapping section, select AHV:base in the Source Cluster and Destination Cluster drop-down menus. Then click the + button.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 6

If you have another VLAN, repeat the same operation with AHV VLAN: VLAN50. Click the + button to validate the association of source and destination networks.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 8

Choose default-container... from the Source VStore and Destination VStore drop-down menus. Then click the + button to connect the source and destination storage.

Then click Save.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 7

The remote site will then appear in the list.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 9

We will now connect to the Prism Element interface of the remote site in Datacenter 1 and perform the same operation.

 

From the Home menu, click Data Protection.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 11

Click Remote Site on the left side of the screen.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 10

Click + Remote Site to the right of the screen and choose Physical Cluster to add a remote site.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 15

Name the remote site in the REMOTE SITE NAME field, enter the IP address of the Prism Element in Datacenter 1 into the CLUSTER VIRTUAL IP field, and click Add Site.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 13

Scroll through the window using the scroll bar.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 14

In the Network Mapping section, select AHV:base in the Source Cluster and Destination Cluster drop-down menus. Then click the + button.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 17

If you have another VLAN, repeat the same operation with AHV VLAN: VLAN50. Click the + button to validate the association of source and destination networks.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 12

Choose default-container... from the Source VStore and Destination VStore drop-down menus. Then click the + button to connect the source and destination storage.

Then click Save.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 16

The remote site will then appear in the list.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 25

 

Setting up inter-site replication

Now that the two sites are connected, we will create a protection domain with asynchronous replication containing three virtual machines located on the cluster in Datacenter 2 to the remote site in Datacenter 1.

Return to the cluster’s Prism Element interface for Datacenter 2.

Choose Data Protection from the main Home menu.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 18

In the Data Protection dashboard, click + Protection Domain in the top right-hand corner, then Async DR.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 27

Name the protection domain and click Create.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 19

Select three virtual machines and click Protect Selected Entities.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 22

Click Next.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 21

Click New Schedule to configure the schedule.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 20

Modify this option to Configure your local schedule:

  • Enter Repeat every 1 hour.

Then enter the retention policies in Retention policy:

  • Choose locally and remotely keep the last 2 snapshots to keep two snapshots locally and remotely.

Click Create Schedule to commit the schedule.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 23

The replication task is created to run hourly. This will be asynchronous replication, which can be used with the OVHcloud Starter pack.

Click Close to close the window.

Info

You can change the schedule to reduce the risk of data loss in the event of a disaster, but replication will switch from asynchronous to NearSync mode, and you will then need to upgrade your license to the OVHcloud Pro or Ultimate packs.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 24

The protection domain is created and appears in the list.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 29

 

Virtual machine migration

Migrating VMs is an operation to move VMs that are members of a protection domain to the remote site without losing data. Both clusters must be online and communicate correctly with each other.

The migration steps are as follows:

  1. Stopping virtual machines on the source cluster (if they are turned on).
  2. Replication of missing data to the destination cluster.
  3. Deleting virtual machines on the source cluster.
  4. Disable scheduling.
  5. Enabling virtual machines on the destination cluster.
  6. Replication is reversed, the destination becomes the source.

Go to the Prism Element interface where the replicated virtual machines are located.

In the Data Protection dashboard, click Migrate.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 28

Select the remote site, type MIGRATE, and click Migrate.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 26

The migration is then launched. It will be completed when the VMs appear at the remote site and are no longer visible at the original site.

Since the migrated virtual machines are turned off, you must start them manually.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 31

 

Virtual machine failover in case of disaster

If the original site is down, you can enable virtual machines that are members of a protection domain at the destination site.

Warning

NOTE: Activation of virtual machines at the remote site will be done with the latest replicated data. For asynchronous replication, the maximum data loss risk is one hour.

Connect to the functional site with Prism Element.

Go to the Data Protection dashboard.

Select the site to activate and click Activate.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 32

Click Yes.

Cluster replication - Set up asynchronous nearsync replication through prism element - step 30

The virtual machines will appear in the Prism Element console in the state of last replication. Data modified after the last valid replication will be lost.

 

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.