Skip to main content

Convert the type of a SnapMirror relationship

Contributors netapp-dbagwell netapp-thomi

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

About this task

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

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

    1. From the destination cluster, delete the asynchronous SnapMirror 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 asynchronous SnapMirror 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 asynchronous SnapMirror 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 asynchronous SnapMirror 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