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
- Introduction to NearSync Replication
- Key Features and Benefits
- Prerequisites and Architecture
- NearSync Use Cases
- Step-by-Step Configuration
- CLI/API Automation
- Monitoring and Troubleshooting
- Advanced Scenarios
- Best Practices
- Diagrams and Visuals
- 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
- Sub-Minute RPO: Protect workloads with RPOs as low as 1 minute.
- Granular Failover: Restore to any journal checkpoint for precise recovery.
- Bandwidth Efficiency: Only changed blocks are replicated, optimizing WAN usage.
- App-Consistent Snapshots: Optionally quiesce VMs for transactional integrity.
- Flexible Topologies: Support for 1:1, 1:many, and many:1 replication.
3. Prerequisites and Architecture
Before implementing NearSync, ensure your environment meets these requirements:
- Nutanix AOS: Latest LTS or STS version supporting NearSync.
- Cluster Compatibility: Both source and target clusters must support NearSync.
- Network Latency: Recommended max round-trip latency < 5ms, but can function over longer distances with relaxed RPO.
- Licensing: Prism Pro or higher, with DR features enabled.
- Firewall Rules: TCP 2009, 2020, and Prism traffic open between clusters.
- Protection Domains: Configured on source cluster for grouping VMs and policies.
Architecture Overview

4. NearSync Use Cases
- Primary DR for Tier-1 Applications: Sub-minute data loss for critical VMs.
- Ransomware Recovery: Roll back to clean journal checkpoints.
- Multi-Region Protection: Extend DR to remote or cloud clusters.
- App Upgrades/Test: Safe fallback points for application changes.
5. Step-by-Step Configuration
5.1. Protection Domain Creation
- Log in to Prism Central.
- Navigate to Data Protection > Protection Domains.
- Click Create Protection Domain.
- Name the domain and select VMs/disks to protect.
5.2. Configure NearSync Schedule
- Select the created Protection Domain.
- Click Add Remote Site and specify the target cluster.
- In the schedule, select NearSync.
- Set RPO (1–15 minutes) and retention policy.
- Save and apply the policy.
5.3. Initial Replication
- Start initial replication (can seed over WAN/LAN).
- Monitor progress in Prism > Tasks.
5.4. Test Failover
- On the target cluster, open the Protection Domain.
- Select a journal checkpoint.
- Click Activate (Test or Real failover).
- 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
- Prism Central: Monitor NearSync jobs under Data Protection > Tasks.
- Alerts: Configure email/SNMP alerts for replication failures or latency issues.
- CLI:
ncli pd list-replication-status name=NearSync-PD
Troubleshooting Common Issues
| Issue | Symptom | Solution |
|---|---|---|
| High Latency | Replication lags, missed RPO | Check WAN performance, adjust RPO, optimize routes. |
| Snapshot Failures | Job fails in Prism | Review VM state, free space, validate Prism connectivity. |
| Failover Errors | Incomplete VM activation | Verify VM compatibility, correct cluster mapping, check logs. |
8. Advanced Scenarios
- Multi-Site Fan-Out: Replicate a protection domain to multiple remote clusters.
- Stretched Clusters: Combine NearSync with metro clustering for layered resilience.
- API-Driven Orchestration: Integrate NearSync with CI/CD or change management pipelines for on-demand DR tests.
9. Best Practices
- Use NearSync for critical, transactional, or frequently updated workloads.
- Always test failover quarterly to validate DR readiness.
- Keep WAN links dedicated and encrypted.
- Monitor storage and journal utilization—clean up expired checkpoints.
- Integrate NearSync alerts into SIEM or incident management workflows.
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.
Table of Contents 1. Introduction to Nutanix DR Disaster recovery ensures that applications and data remain available, even after catastrophic events. Nutanix...