Table of ContentsLibraryView in Frames

Moving qtree SnapMirror sources

Unlike volume SnapMirror, in which all of the Snapshot copies from the source are mirrored to the destination, with qtree SnapMirror you must create a Snapshot copy on the source and force its propagation to the destination and new source.

Before You Begin

Ensure that the major version of Data ONTAP on the destination storage system is greater than or equal to the major version running on the new source storage system.

Considerations

The process to move the qtree SnapMirror source is to create a Snapshot copy on the original source and then replicate the Snapshot copy on the destinations, both the new source and the existing destination. After this is done, the Snapshot copy will be common on all volumes, allowing for the SnapMirror relationship to be broken from the original source and established between the new source and the existing destination.

Steps

  1. Copy the original source to the new source, using the following command:newsource> snapmirror initialize -S oldsource:/vol/oldsourcevol/qtree newsource:/vol/newsourcevol/qtree

    Note: This might take some time to finish.

  2. It is recommended that you make oldsource read-only before continuing.
  3. Create a manual Snapshot copy on the oldsource storage system, using the following command:oldsource> snap create oldsourcevol common_Snapshot
  4. Update the mirrors, using the following commands. newsource> snapmirror update -c common_Snapshot -s common_Snapshot -S oldsource:/vol/oldsourcevol/qtree newsource:/vol/newsourcevol/qtree destination> snapmirror update -c common_Snapshot -s common_Snapshot -S oldsource:/vol/oldsourcevol/qtree destination:/vol/destinationvol/qtree

    The -s option of the snapmirror update command synchronizes newsource with oldsource and destination with oldsource based on common_Snapshot. The -c option of the snapmirror update command creates the common_Snapshot Snapshot copy on the destination storage systems.

  5. Quiesce and break the SnapMirror relationship between oldsource and destination, and oldsource and newsource, using the following commands.destination> snapmirror quiesce /vol/destinationvol/qtree destination> snapmirror break /vol/destinationvol/qtree newsource> snapmirror quiesce /vol/volnewsourcevol/qtree newsource> snapmirror break /vol/volnewsourcevol/qtree
  6. Using an editor, update the /etc/snapmirror.conf file on the destination for the new relationship by replacing the oldsource information with newsource information.

    Wasoldsource:/vol/oldsourcevol/qtree destination:/vol/destinationvol/qtree restart=always 0 * * * *

    Edit to newsource:/vol/newsourcevol/qtree destination:/vol/destinationvol/qtree restart=always 0 * * * *

  7. Establish the new SnapMirror relationship using the following command:destination> snapmirror resync -S newsource:/vol/newsourcevol/qtree destination:/vol/destinationvol/qtree

    Note: The SnapMirror relationship will discard any Snapshot copies older than common_Snapshot: namely, the ones used for the latest SnapMirror update. This is expected and no data will be lost if you ensured that no new data was added to the original source volume during the move.

    The new SnapMirror relationship will automatically pick the newest Snapshot copy in common to mirror. This will be common_Snapshot.

  8. Verify that the SnapMirror relationship is resynchronizing, using the following command:destination> snapmirror status