Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Moving qtree SnapMirror sources

The process for moving qtree SnapMirror sources  Top

Unlike volume SnapMirror, in which all of the Snapshot copies from the source are mirrored to the destintation, with qtree SnapMirror you must create a Snapshot copy on the source and force its propagation to the destination and new source. 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.

Moving from one qtree SnapMirror source to another  Top

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

Note
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 filer. See Prerequisites to running SnapMirror for more information.

Step

Action

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

Result

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 filer, 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

Result

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 filers.

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 /volnewsourcevol/qtree
newsource> snapmirror break /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:

Was

oldsource:/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

Result

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

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

8

Verify that the SnapMirror relationship is resynchronizing, using the following command:

destination> snapmirror status

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments