Site icon Digital Thought Disruption

Nutanix NearSync Replication: The Definitive Guide for Modern Enterprise DR

Disaster Recovery (DR) strategies must evolve to keep pace with modern business demands. Nutanix NearSync Replication offers organizations near real-time data protection, low RPO, and granular failover capabilities. In this article, we dive deep into how NearSync works, prerequisites, configuration, CLI/API automation, best practices, advanced use cases, and troubleshooting—arming Nutanix administrators, architects, and security teams with everything needed to deliver enterprise-class DR on Nutanix.


Table of Contents

  1. Introduction to NearSync Replication
  2. Key Features and Benefits
  3. Prerequisites and Architecture
  4. NearSync Use Cases
  5. Step-by-Step Configuration
  6. CLI/API Automation
  7. Monitoring and Troubleshooting
  8. Advanced Scenarios
  9. Best Practices
  10. Diagrams and Visuals
  11. Conclusion

1. Introduction to NearSync Replication

Nutanix NearSync bridges the gap between asynchronous and synchronous replication. It offers sub-minute Recovery Point Objectives (RPOs) by replicating data every 1-15 minutes with journal-based checkpoints. NearSync is ideal for business-critical applications requiring aggressive DR but where full synchronous replication is not feasible due to distance or network constraints.


2. Key Features and Benefits


3. Prerequisites and Architecture

Before implementing NearSync, ensure your environment meets these requirements:

Architecture Overview


4. NearSync Use Cases


5. Step-by-Step Configuration

5.1. Protection Domain Creation

  1. Log in to Prism Central.
  2. Navigate to Data Protection > Protection Domains.
  3. Click Create Protection Domain.
  4. Name the domain and select VMs/disks to protect.

5.2. Configure NearSync Schedule

  1. Select the created Protection Domain.
  2. Click Add Remote Site and specify the target cluster.
  3. In the schedule, select NearSync.
  4. Set RPO (1–15 minutes) and retention policy.
  5. Save and apply the policy.

5.3. Initial Replication

  1. Start initial replication (can seed over WAN/LAN).
  2. Monitor progress in Prism > Tasks.

5.4. Test Failover

  1. On the target cluster, open the Protection Domain.
  2. Select a journal checkpoint.
  3. Click Activate (Test or Real failover).
  4. Confirm VM availability and application health.

6. CLI/API Automation

a. ncli CLI Example

# Create protection domain
ncli pd create name=NearSync-PD

# Add entity (VM) to protection domain
ncli pd add-entity name=NearSync-PD entity-type=vm entity-name=Critical-VM-1

# Register remote site
ncli remote-site add name=RemoteCluster address=10.10.10.100

# Add remote site to protection domain
ncli pd add-remote-site name=NearSync-PD remote-site-name=RemoteCluster

# Set NearSync schedule (every 2 minutes)
ncli pd schedule add name=NearSync-PD remote-site=RemoteCluster schedule-type=nearsync rpo=2

b. REST API Sample (v3)

POST /api/nutanix/v3/protection_domains
{
"spec": {
"name": "NearSync-PD",
"entities": [{ "entity_type": "VM", "entity_name": "Critical-VM-1" }],
"remote_sites": [{ "name": "RemoteCluster", "ip": "10.10.10.100" }],
"schedules": [{
"type": "NEARSYNC",
"rpo_minutes": 2,
"retention_policy": { "num_snapshots": 48 }
}]
}
}

7. Monitoring and Troubleshooting

Monitoring

Troubleshooting Common Issues

IssueSymptomSolution
High LatencyReplication lags, missed RPOCheck WAN performance, adjust RPO, optimize routes.
Snapshot FailuresJob fails in PrismReview VM state, free space, validate Prism connectivity.
Failover ErrorsIncomplete VM activationVerify VM compatibility, correct cluster mapping, check logs.

8. Advanced Scenarios


9. Best Practices


10. Diagrams and Visuals

NearSync Replication Workflow:


11. Conclusion

Nutanix NearSync Replication empowers organizations to achieve DR objectives once reserved for much more complex and expensive solutions. With sub-minute RPOs, flexible automation, and robust monitoring, it fits seamlessly into enterprise production environments. By following the step-by-step guide, leveraging automation, and adhering to best practices, your DR posture will be both modern and resilient.

Disclaimer: The views expressed in this article are those of the author and do not represent the opinions of Nutanix, my employer or any affiliated organization. Always refer to the official Nutanix documentation before production deployment.

 

Exit mobile version