Ordinarily, SnapMirror updates the destination automatically according to the update schedule you specify in the /etc/snapmirror.conf file. However, you can also initiate updates manually with the snapmirror update command. You might need to run an unscheduled update to prevent data loss resulting from a scheduled or threatened power outage or from a destination volume being taken offline for maintenance, repair, upgrade, or data migration. You can also include the snapmirror update command in an external script if you want to drive updates using that script.
To perform an unscheduled SnapMirror incremental update, independent of the schedule in the /etc/snapmirror.conf file, complete the following step.
filerB> snapmirror update filerB:vol2
SnapMirror updates the destination (vol2 on filerB) from the source specified in the /etc/snapmirror.conf file.
filerB> snapmirror update -S filerA:/vol/vol1/users filerB:/vol/vol2/usersbak
SnapMirror updates the qtree destination on filerB:/vol/vol2/usersbak from the source qtree on filerA:/vol/vol1/users.
To establish an extra backup snapshot on both sides of a SnapMirror qtree relationship, you can create a manual snapshot using the snap create command and then use the -c and -s options of the snapmirror update command together. These extra backup snapshots can serve as the newest common snapshot in case a base snapshot was accidentally deleted. You can also use them to resynchronize a SnapMirror qtree relationship to an earlier resynchronization point.
filerB> snap create vol2 my_snap
filerA> snapmirror update -S filerB:/vol/vol2/qtree1 -s my_snap -c my_dest_snap vol/vol4/qtreeSafe
You create a snapshot on filerB (the source) called my_snap. Then on filerA (the destination), you update the data in filerA:/vol/ vol4/qtreeSafe from the data in my_snap and store the updated data in the snapshot you create called my_dest_snap. SnapMirror does not automatically delete my_snap and my_dest_snap because they are user-originated snapshots.
Changes on the source are reflected on the destination after SnapMirror completes the transfer. Changes being copied are not visible during the transfer and are not visible if the transfer is interrupted. After the destination update is finished, you see the changes if you open the file.
SnapMirror automatically deletes old snapshots that are no longer necessary for updating data.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00476
File: mirror10.htm
Last updated: 11/13/03 17:17:26