You can use the options snapmirror.log.enable command to check SnapMirror data transfer logs. You can find out whether transfers are occurring as planned, how long the transfers take, and how well the system setup works. You find this information in the SnapMirror log file.
The SnapMirror log file shows you
You can use the raw information provided to do the following:
SnapMirror logging is turned on by default. However, if you need to find out whether SnapMirror logging is turned on or off, complete the following step.
| 1 | Enter the following command on the filer for which you want the information: options snapmirror.log.enable Result |
filerA> options snapmirror.log.enable
snapmirror.log.enable on
To turn SnapMirror logging on, complete the following step.
| 1 | Enter the following command on the filer for which you want the log: options snapmirror.log.enable on Result |
SnapMirror keeps the current log on the root volume of the executing filer, as /etc/log/snapmirror.0. A new log file is generated every week as /etc./log/snapmirror.0. Older log files are renamed /etc./log/snapmirror.[1-5] and the oldest log file is deleted. The log files can be read with a text editor.
The log file is in the following format:
type timestamp source_filer:source_path dest_filer:dest_path event_info
type can be one of the following: src, dst, log, cmd.
type specifies whether the record is for the source side (src) or destination side (dst) of the transfer. Certain events apply to only one side. The type log indicates a record about the logging system itself, for example, Start_Logging and End_Logging. The type cmd indicates a record of user commands, for example, Release_command and Resync_command.
timestamp is expressed in ctime format, for example:
Fri Jul 27 20:41:09 GMT.
event_info includes the following event names:
Request ( IP address | transfer type )
Start
Restart (@ num KB)
End (num KB done)
Abort (error_msg)
Defer (reason)
Rollback_start
Rollback_end
Rollback_failed
Start_Logging
End_Logging
Wait_tape
New_tape
Snapmirror_on
Snapmirror_off
Quiesce_start
Quiesce_end
Quiesce_failed
Resume_command
Break_command
Release_command
Abort_command
Resync_command
Migrate_command
The Request event on the source side includes the IP address of the filer that made the transfer request; the Request event on the destination side includes the type of transfer. At the end of each successful transfer, the End event also reports the total size of the transfer in KB. Error messages are included with the Abort and Defer events.
The following is an example of a log file from the source side.
The following is an example of a log file from the destination side.
The following is an example of a log file from a retrieve (from tape) request.
dst Fri Jun 22 03:07:34 GMT milton:rst0l milton:bigtwo Request (retrieve)
dst Fri Jun 22 03:07:34 GMT milton:rst0l milton:bigtwo Start
dst Fri Jun 22 05:03:45 GMT milton:rst0l milton:bigtwo Wait_tape
dst Fri Jun 22 15:16:44 GMT milton:rst0l milton:bigtwo New_tape
dst Fri Jun 22 17:13:24 GMT milton:rst0l milton:bigtwo Wait_tape
dst Fri Jun 22 17:56:43 GMT milton:rst0l milton:bigtwo New_tape
dst Fri Jun 22 18:10:37 GMT milton:rst0l milton:bigtwo End (98602256 KB)
To turn off the SnapMirror log process, complete the following step.
| 1 | Enter the following command on the filer for which you want to disable the log: options snapmirror.log.enable off Result |
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00325
File: mirror13.htm
Last updated: 01/14/03 18:24:45