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

Moving volume SnapMirror sources

Moving from one volume SnapMirror source to another  Top

To moving a volume SnapMirror source volume to another source volume, 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:oldsourcevol newsource:newsourcevol

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

Result

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:

Was

oldsource:oldsourcevol destination:destinationvol 
restart=always 0 * * * *

Edit to

newsource:newsourcevol destination:destinationvol 
restart=always 0 * * * *
7

Establish the new SnapMirror relationship, using the following command:

destination> snapmirror resync -S newsource:newsourcevol 
destination:destinationvol

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 last 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