Table of ContentsView in Frames

Moving qtree SnapMirror sources

With qtree SnapMirror you must create a Snapshot copy on the source and force its propagation to the destination and new source. This behavior is unlike volume SnapMirror, in which all of the Snapshot copies from the source are replicated to the destination.

About this task

The process of moving the qtree SnapMirror source involves creating a Snapshot copy on the original source and then replicating the Snapshot copy on the destinations, both the new source and the existing destination. After this is done, the Snapshot copy is 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.
The following terms are used in the task description for moving qtree SnapMirror sources:
  • oldsource—The original system on which the source resides.
  • newsource—The system to which you are moving the source.
  • destination—The system to which the source is replicated.
  • oldsourcevol—The original source volume.
  • newsourcevol—The new source volume to which you are moving.
  • destinationvol—The volume to which the source is replicated.

Steps

  1. Copy the original source to the new source by 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. Create a manual Snapshot copy on the oldsource system by using the following command:oldsource> snap create oldsourcevol common_Snapshot
  3. Update the destinations by using the following commands:newsource> snapmirror update -c common_Snapshot -s common_Snapshot -S oldsource:/vol/oldsourcevol/qtree newsource:/vol/newsourcevol/qtreedestination> 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 systems.
  4. Quiesce and break the SnapMirror relationship between oldsource and destination, and oldsource and newsource, using the following commands:destination> snapmirror quiesce /vol/destinationvol/qtreedestination> snapmirror break /vol/destinationvol/qtreenewsource> snapmirror quiesce /vol/volnewsourcevol/qtreenewsource> snapmirror break /vol/volnewsourcevol/qtree
  5. Using an editor, update the /etc/snapmirror.conf file on the destination for the new relationship by replacing the oldsource information with newsource information.
    Before editoldsource:/vol/oldsourcevol/qtree destination:/vol/destinationvol/qtree restart=always 0 * * * *

    After editnewsource:/vol/newsourcevol/qtree destination:/vol/destinationvol/qtree restart=always 0 * * * *

  6. Establish the new SnapMirror relationship using the following command on the destination system:snapmirror resync -S newsource:/vol/newsourcevol/qtree destination:/vol/destinationvol/qtree
    Note: SnapMirror discards any Snapshot copies older than the common Snapshot copy, namely, the ones used for the latest SnapMirror update. This is expected and no data is lost if you ensure that no new data was added to the original source volume during the move.
    The new SnapMirror relationship automatically picks the newest common Snapshot copy for replication. This is the common Snapshot copy.
  7. Verify that the SnapMirror relationship is resynchronizing by using the following command:destination> snapmirror status