Table of ContentsLibraryView in Frames

Moving volume SnapMirror sources

To move a volume SnapMirror source volume to another source volume, complete the following steps.

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.

Steps

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

    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 newsource and destination based on oldsource using the following commands. newsource> snapmirror update -S oldsource:oldsourcevol newsource:newsourcevol destination> snapmirror update -S oldsource:oldsourcevol destination:destinationvol

    Note: The common_Snapshot copy will be on all volumes because all Snapshot copies are mirrored using volume SnapMirror.

  5. Quiesce and break the SnapMirror relationship between oldsource and destination, and oldsource and newsource, using the following commands. destination> snapmirror quiesce destinationvol destination> snapmirror break destinationvol newsource> snapmirror quiesce newsourcevol newsource> snapmirror break newsourcevol
  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:oldsourcevol destination:destinationvol restart=always 0 * * * *

    Edit tonewsource:newsourcevol destination:destinationvol restart=always 0 * * * *

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

    Note: The SnapMirror relationship will discard any Snapshot copies older than common_Snapshot: namely, the ones used for the last 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