Skip to main content

Learn about ONTAP SnapMirror active sync

Contributors netapp-ahibbard netapp-lenida netapp-dbagwell netapp-aherbin netapp-aaron-holt

SnapMirror active sync (also referred to as SnapMirror Business Continuity [SM-BC]), enables business services to continue operating even through a complete site failure, supporting applications to fail over transparently using a secondary copy. There is no manual intervention or custom scripting required to trigger a failover with SnapMirror active sync.

Note Beginning July 2024, content from technical reports previously published as PDFs has been integrated with ONTAP product documentation. The ONTAP SnapMirror active sync documentation now includes content from TR-4878: SnapMirror active sync.

Benefits

SnapMirror active sync provides the following benefits:

  • Continuous availability for business-critical applications.

  • Ability to host critical applications alternately from primary and secondary sites.

  • Simplified application management using consistency groups for dependent write-order consistency.

  • The ability to test failover for each application.

  • Instantaneous creation of mirror clones without impacting application availability.

  • The ability to deploy protected and non-protected workloads in the same ONTAP cluster.

  • LUN, NVMe namespace, NVMe subsystem, or storage unit identity remains the same, so the application sees them as a shared virtual device.

  • The ability to reuse secondary clusters with flexibility to create instantaneous clones for application usage for dev-test, UAT or reporting purposes without impacting application performance or availability.

SnapMirror active sync allows you to protect your data LUNs or NVMe namespaces, which enables applications to fail over transparently for the purpose of business continuity in the event of a disaster. For more information, see Use cases.

Key concepts

SnapMirror active sync uses consistency groups and either the ONTAP Mediator or, beginning with ONTAP 9.17.1, the ONTAP Cloud Mediator to ensure your data is replicated and served even in the event of a disaster scenario. When planning your SnapMirror active sync deployment, it is important to understand the essential concepts in SnapMirror active sync and its architecture.

Asymmetry and symmetry

In symmetric active/active configurations, both sites can access local storage for active I/O. Symmetric active/active is optimized for clustered applications including VMware vMSC, Windows Failover Cluster with SQL, and Oracle RAC.

In asymmetric active/active configurations data on the secondary site is proxied to a LUN, namespace or storage unit.

For more information, see SnapMirror active sync architecture.

Consistency group

For AFF and ASA systems a consistency group is a collection of FlexVol volumes that provide a consistency guarantee for the application workload that must be protected for business continuity. In ASA r2 systems, a consistency group is a collection of storage units.

The purpose of a consistency group is to take simultaneous snapshot images of a collection of volumes or storage units, thus ensuring crash-consistent copies of the collection at a point in time. A consistency group ensures all volumes of a dataset are quiesced and then snapped at precisely the same point in time. This provides a data-consistent restore point across volumes or storage units supporting the dataset. A consistency group thereby maintains dependent write-order consistency. If you decide to protect applications for business continuity, the group of volumes or storage units corresponding to this application must be added to a consistency group so a data protection relationship is established between a source and a destination consistency group. The source and destination consistency must contain the same number and type of volumes.

Constituent

An individual volume, LUN, or NVMe namespace (beginning with ONTAP 9.17.1) that is part of the consistency group protected in the SnapMirror active sync relationship.

ONTAP Mediator

The ONTAP Mediator receives health information about peered ONTAP clusters and nodes, orchestrating between the two and determining if each node/cluster is healthy and running. ONTAP Mediator provides health information about:

  • Peer ONTAP clusters

  • Peer ONTAP cluster nodes

  • Consistency groups (which define the failover units in a SnapMirror active sync relationship); for each consistency group, the following information is provided:

    • Replication state: Uninitialized, In Sync, or Out of Sync

    • Which cluster hosts the primary copy

    • Operation context (used for planned failover)

With this ONTAP Mediator health information, clusters can differentiate between distinct types of failures and determine whether to perform an automated failover. ONTAP Mediator is one of the three parties in the SnapMirror active sync quorum along with both ONTAP clusters (primary and secondary). To reach consensus, at least two parties in the quorum must agree to a certain operation.

Note Beginning with ONTAP 9.15.1, System Manager displays the status of your SnapMirror active sync relationship from either cluster. You can also monitor the ONTAP Mediator's status from either cluster in System Manager. In earlier releases of ONTAP, System Manager displays the status of SnapMirror active sync relationships from the source cluster.
ONTAP Cloud Mediator

ONTAP Cloud Mediator is available beginning with ONTAP 9.17.1. ONTAP Cloud Mediator provides the same services as ONTAP Mediator, except that it is hosted in the cloud using BlueXP.

Planned failover

A manual operation to change the roles of copies in a SnapMirror active sync relationship. The primary sites becomes the secondary, and the secondary becomes the primary.

Primary-first and primary bias

SnapMirror active sync uses a primary-first principle that gives preference to the primary copy to serve I/O in case of a network partition.

Primary-bias is a special quorum implementation that improves availability of a SnapMirror active sync protected dataset. If the primary copy is available, primary-bias comes into effect when the ONTAP Mediator is not reachable from both clusters.

Primary-first and primary bias are supported in SnapMirror active sync beginning with ONTAP 9.15.1. Primary copies are designated in System Manager and output with the REST API and CLI.

Automatic unplanned failover (AUFO)

An automatic operation to perform a failover to the mirror copy. The operation requires assistance from the ONTAP Mediator to detect that the primary copy is unavailable.

Out of Sync (OOS)

When the application I/O is not replicating to the secondary storage system, it will be reported as out of sync. An out of sync status means the secondary volumes are not synchronized with the primary (source) and that SnapMirror replication is not occurring.

If the mirror state is Snapmirrored, this indicates a transfer failure or failure due to an unsupported operation.

SnapMirror active sync supports automatic resync, enabling copies to return to an InSync state.

Beginning with ONTAP 9.15.1, SnapMirror active sync supports automatic reconfiguration in fan-out configurations.

Uniform and non-uniform configuration
  • Uniform host access means that hosts from both sites are connected to all paths to storage clusters on both sites. Cross-site paths are stretched across distances.

  • Non-uniform host access means hosts in each site are connected only to the cluster in the same site. Cross-site paths and stretched paths aren't connected.

Note Uniform host access is supported for any SnapMirror active sync deployment; non-uniform host access is only supported for symmetric active/active deployments.
Zero RPO

RPO stands for recovery point objective, which is the amount of data loss deemed acceptable during a given time period. Zero RPO signifies that no data loss is acceptable.

Zero RTO

RTO stands for recovery time objective, which is the amount of time that is deemed acceptable for an application to return to normal operations non-disruptively following an outage, failure, or other data loss event. Zero RTO signifies that no amount of downtime is acceptable.

SnapMirror active sync configuration support by ONTAP version

Support for SnapMirror active sync varies depending on your version of ONTAP:

ONTAP version

Supported clusters

Supported protocols

Supported configurations

9.17.1 and later

  • AFF

  • ASA

  • C-Series

  • ASA r2

  • iSCSI

  • FC

  • NVMe for VMware workloads

  • Asymmetric active/active

Note Asymmetric active/active does not support ASA r2 and NVMe
For more information about NVMe support, see NVMe configuration, support, and limitations.
  • Symmetric active/active

9.16.1 and later

  • AFF

  • ASA

  • C-Series

  • ASA r2

  • iSCSI

  • FC

  • Asymmetric active/active

  • Symmetric active/active
    Symmetric active/active configurations support 4-node clusters in ONTAP 9.16.1 and later. For ASA r2, only 2-node clusters are supported.

9.15.1 and later

  • AFF

  • ASA

  • C-Series

  • iSCSI

  • FC

  • Asymmetric active/active

  • Symmetric active/active
    Symmetric active/active configurations support 2-node clusters in ONTAP 9.15.1. 4-node clusters are supported in ONTAP 9.16.1 and later.

9.9.1 and later

  • AFF

  • ASA

  • C-Series

  • iSCSI

  • FC

Asymmetric active/active

Primary and secondary clusters must be of the same type: either ASA, ASA r2, or AFF.