What is the recommended procedure when SnapMirror scheduled update is taking too long and aborting the transfer during ONTAP cluster migration?
Applies to
ONTAP 9
Answer
- SnapMirror update operations can be aborted using the
snapmirror abortcommand. - Abort is effective only when the SnapMirror relationship is in a “
Transferring” state. - These internal stages are not specifically shown in SnapMirror status output; only broader states like “
Transferring” or “Finalizing” are visible insnapmirror show. - If abort is successful, the relationship returns to “
Idle” state and manual update or schedule can be restarted. - If abort is not possible and update continues beyond the migration window, consider deleting the SnapMirror relationship after abort attempt.
- After abort and delete, the new SnapMirror relationship between the new source and DR must be initialized (
snapmirror initialize). - Resync (
snapmirror resync) is only possible if a common snapshot exists at both source and destination. Forceful deletion of the previous relationship usually removes the common snapshot, requiring initialize. - Initialize will perform a full data transfer. Plan for sufficient bandwidth and time, especially for large volumes.
- Scheduled SnapMirror updates can be controlled by removing the schedule with
snapmirror modify -schedule"" and performing manual updates. - Quiesce (
snapmirror quiesce) prevents both scheduled and manual updates. Use modify to remove schedule if manual control is needed. - Modifying the schedule during an active update does not interrupt the running update. The change only affects future scheduled updates.
- Example procedure for migration when update takes too long:
- Attempt to abort the running SnapMirror update with:
snapmirrorabort -destination-path <SVM:volume> - If abort is successful, delete the SnapMirror relationship:
snapmirrordelete -destination-path <SVM:volume> - Create new SnapMirror relationship from new source to DR.
- Initialize the new relationship:
snapmirrorinitialize -destination-path <SVM:volume> - Monitor the transfer and ensure DR capacity and bandwidth are sufficient.
