Skip to main content

Convert the type of a SnapMirror relationship

Contributors netapp-lenida netapp-dbagwell netapp-thomi netapp-aherbin

Beginning with ONTAP 9.5, SnapMirror synchronous is supported. You can convert an SnapMirror asynchronous relationship to a SnapMirror synchronous relationship or vice versa without performing a baseline transfer.

About this task

You cannot convert an SnapMirror asynchronous relationship to a SnapMirror synchronous relationship or vice versa by changing the SnapMirror policy

Steps
  • Converting an SnapMirror asynchronous relationship to a SnapMirror synchronous relationship

    1. From the destination cluster, delete the SnapMirror asynchronous relationship:

      snapmirror delete -destination-path <SVM:volume>

      cluster2::>snapmirror delete -destination-path vs1_dr:vol1
    2. From the source cluster, release the SnapMirror relationship without deleting the common Snapshot copies:

      snapmirror release -relationship-info-only true -destination-path <destination_SVM>:<destination_volume>

      cluster1::>snapmirror release -relationship-info-only true -destination-path vs1_dr:vol1
    3. From the destination cluster, create a SnapMirror synchronous relationship:

      snapmirror create -source-path src_SVM:src_volume -destination-path <destination_SVM>:<destination_volume> -policy sync-mirror

      cluster2::>snapmirror create -source-path vs1:vol1 -destination-path vs1_dr:vol1 -policy sync
    4. Resynchronize the SnapMirror synchronous relationship:

      snapmirror resync -destination-path <destination_SVM:destination_volume>

      cluster2::>snapmirror resync -destination-path vs1_dr:vol1
  • Converting a SnapMirror synchronous relationship to an SnapMirror asynchronous relationship

    1. From the destination cluster, quiesce the existing SnapMirror synchronous relationship:

      snapmirror quiesce -destination-path <destination_SVM>:<destination_volume>

      cluster2::> snapmirror quiesce -destination-path vs1_dr:vol1
    2. From the destination cluster, delete the SnapMirror asynchronous relationship:

      snapmirror delete -destination-path <SVM:volume>

      cluster2::>snapmirror delete -destination-path vs1_dr:vol1
    3. From the source cluster, release the SnapMirror relationship without deleting the common Snapshot copies:

      snapmirror release -relationship-info-only true -destination-path <destination_SVM:destination_volume>

      cluster1::>snapmirror release -relationship-info-only true -destination-path vs1_dr:vol1
    4. From the destination cluster, create an SnapMirror asynchronous relationship:

      snapmirror create -source-path src_SVM:src_volume -destination-path <destination_SVM:destination_volume> -policy MirrorAllSnapshots

      cluster2::>snapmirror create -source-path vs1:vol1 -destination-path vs1_dr:vol1 -policy sync
    5. Resynchronize the SnapMirror synchronous relationship:

      snapmirror resync -destination-path <destination_SVM:destination_volume>

      cluster2::>snapmirror resync -destination-path vs1_dr:vol1