title | excerpt | updated |
---|---|---|
Replicação assíncrona ou NearSync através de Prism Element (EN) |
How to set up asynchronous or NearSync replication through Prism Element |
2024-05-13 |
This guide details how to set up cluster replication via Prism Element.
Warning
OVHcloud provides services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a specialist service provider or reaching out to our community if you experience any issues.
Via Prism Element, you can:
- Add links to remote clusters.
- Create protection domains to add replications to remote sites.
Warning
The Starter pack of the Nutanix on OVHcloud packaged service 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.
- 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
We will use two Nutanix clusters in OVHcloud data centres, one in Canada and the other in France, connected via an IPsec VPN, on two different IP addressing schemes which are:
- 192.168.0.0/24 for the cluster in a data centre in France.
- 192.168.10.0/24 for the cluster in a Canadian data centre.
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 France from Prism Central, as shown in this documentation: Nutanix Hyperconvergence.
Click Data Protection
{.action} from the Home
{.action} menu.
Click Remote Site
{.action} on the left side of the screen.
Click + Remote Site
{.action} to the right of the screen and choose Physical Cluster
{.action} to add a remote site.
Name the remote site in the REMOTE SITE NAME
field, enter the IP address of the Prism Element of the remote site in France in the CLUSTER VIRTUAL IP
field, and click Add Site
{.action}.
Scroll through the window using the scroll bar
{.action}.
In the Network Mapping section, select AHV:base
in the Source Cluster and Destination Cluster drop-down menus. Then click the +
{.action} button.
If you have another VLAN, repeat the same operation with AHV VLAN: VLAN50
. Click the +
{.action} button to validate the association of source and destination networks.
Choose default-container...
from the Source VStore and Destination VStore drop-down menus. Then click the +
{.action} button to connect the source and destination storage.
Click Save
{.action}.
The remote site will then appear in the list.
We will now connect to the Prism Element interface of the remote site in Canada and perform the same operation.
From the Home
{.action} menu, click Data Protection
{.action}.
Click Remote Site
{.action} on the left side of the screen.
Click + Remote Site
{.action} to the right of the screen and choose Physical Cluster
{.action} to add a remote site.
Name the remote site in the REMOTE SITE NAME
field, enter the IP address of the Prism Element of the remote site in Canada in the CLUSTER VIRTUAL IP
field, and click Add Site
{.action}.
Scroll through the window using the scroll bar
{.action}.
In the Network Mapping section, select AHV:base
in the Source Cluster and Destination Cluster drop-down menus. Then click the +
{.action} button.
If you have another VLAN, repeat the same operation with AHV VLAN: VLAN50
. Click the +
{.action} button to validate the association of source and destination networks.
Choose default-container...
from the Source VStore and Destination VStore drop-down menus. Then click the +
{.action} button to connect the source and destination storage.
Click Save
{.action}.
The remote site will then appear in the list.
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 France to the remote site in Canada.
Return to the cluster’s Prism Element interface, located in France.
Choose Data Protection
{.action} from the main Home
{.action} menu.
In the Data Protection dashboard, click + Protection Domain
{.action} in the top right-hand corner, then Async DR
{.action}.
Name the protection domain and click Create
{.action}.
Select three virtual machines and click Protect Selected Entities
{.action}.
Click Next
{.action}.
Click New Schedule
{.action} to configure the schedule.
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
{.action} to commit the schedule.
The replication task is created to run hourly. This will be asynchronous replication, which can be used with the OVHcloud Starter pack.
Click Close
{.action} to close the window.
[!primary]
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 licence to the OVHcloud Pro or Ultimate packs.
The protection domain is created and appears in the list.
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:
- Stopping virtual machines on the source cluster (if they are turned on).
- Replication of missing data to destination cluster.
- Deleting virtual machines on the source cluster.
- Disable scheduling.
- Enabling virtual machines on the destination cluster.
- 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
{.action}.
Select the remote site, type MIGRATE
, and click Migrate
{.action}.
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.
If the original site is down, you can enable virtual machines that are members of a protection domain at the destination site.
Warning
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
{.action}.
Click Yes
{.action}.
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.
Disaster Recovery Plan in Nutanix
IPsec interconnection between two sites
Nutanix Documentation on Data Protection and Disaster Recovery
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users on https://community.ovh.com/en/.