跳转到主内容

集群模式Data ONTAP 中的SnapMirror日志有何用途?

Views:
2
Visibility:
Public
Votes:
0
Category:
clustered-data-ontap-8
Specialty:
core
Last Updated:

适用场景

  • SnapMirror
  • 集群模式 Data ONTAP 8.2

问题解答

集群模式Data ONTAP 中的SnapMirror日志有何用途?

集群模式Data ONTAP 中的SnapMirror日志记录与Data ONTAP 7-模式中的日志记录有很大不同、而且在集群模式Data ONTAP 8.2中、它在许多方面也有了发展。本文介绍集群模式Data ONTAP 中与SnapMirror相关的不同日志的用途、以帮助收集日志并解决问题。

背景信息

集群模式Data ONTAP 8.2及更高版本中的snapmirror"关系功能":

  • "集群模式Data ONTAP 8.2之前":此关系的管理和控制与集群模式Data ONTAP 8.1 (称为 集群模式Data ONTAP 8.1模式 SnapMirror)兼容。
  • "集群模式Data ONTAP 8.2及更高版本":完全支持Data ONTAP 8.2或更高版本、即集群模式Data ONTAP SnapMirror关系管理和控制、也称为 集群模式Data ONTAP 8.2模式 SnapMirror
    。"集群模式Data ONTAP 8.2之前"模式的SnapMirror关系可能仍存在于集群模式Data ONTAP 8.2上。运行"snapmirror show –instance"命令检查此设置、然后检查 "关系容量"字段。
集群模式Data ONTAP 8.1模式SnapMirror
  • /mroot/etc/log/mlog/snapmirror.log*            : SnapMirror活动主要记录在此处
  • /mroot/etc/log/mlog/command-history.log* : 此处提供了用于管理SnapMirror的所有命令
  • /mroot/etc/log/mlog/mgwd.log*            : 此处提供了SnapMirror服务作业日志、尤其是LS镜像相关日志
  • /mroot/etc/log/ems.log*                  : 适用于集群模式Data ONTAP 8.1的版本以开头 'mgmt_snapmir'
集群模式Data ONTAP 8.2模式SnapMirror
  • /mroot/etc/log/snapmirror_audit*  : 审核SnapMirror操作的日志
  • /mroot/etc/log/snapmirror_error*  : 此处记录了错误
  • /mroot/etc/log/mlog/mgwd.log*     : 与集群模式Data ONTAP 8.1模式SnapMirror的信息相同
  • /mroot/etc/log/ems.log*           : 适用于集群模式Data ONTAP 8.1的版本以开头 'smc_snapmir'
AutoSupport (ASUP)是否包含这些内容?

snapmirror_error*, ems.log*, command-history.log*mgwd.log* 包含在每日或手动触发的(键入all) AutoSupport 中。每周ASUP不包含此信息。

SnapMirror日志命名约定是什么?

以下是的示例 /mroot/etc/log/mlog/snapmirror.log*:
cm2552a-cn-01% pwd
/mroot/etc/log/mlog
cm2552a-cn-01% ls -al snapmirror*
-rw-r--r-- 2 root wheel 0 Sep 22 15:49 snapmirror.log
-rw-r--r-- 1 root wheel 1004 Sep 7 19:24 snapmirror.log.0000000001
-rw-r--r-- 1 root wheel 0 Sep 8 15:48 snapmirror.log.0000000002
-rw-r--r-- 1 root wheel 0 Sep 9 15:48 snapmirror.log.0000000003
-rw-r--r-- 1 root wheel 0 Sep 10 15:48 snapmirror.log.0000000004
-rw-r--r-- 1 root wheel 0 Sep 11 15:48 snapmirror.log.0000000005
-rw-r--r-- 1 root wheel 0 Sep 12 15:48 snapmirror.log.0000000006
-rw-r--r-- 1 root wheel 0 Sep 13 15:48 snapmirror.log.0000000007
-rw-r--r-- 1 root wheel 0 Sep 14 15:48 snapmirror.log.0000000008
-rw-r--r-- 1 root wheel 0 Sep 15 15:48 snapmirror.log.0000000009
-rw-r--r-- 1 root wheel 0 Sep 16 15:48 snapmirror.log.0000000010
-rw-r--r-- 1 root wheel 0 Sep 17 15:48 snapmirror.log.0000000011
-rw-r--r-- 1 root wheel 0 Sep 18 15:49 snapmirror.log.0000000012
-rw-r--r-- 1 root wheel 0 Sep 19 15:49 snapmirror.log.0000000013
-rw-r--r-- 1 root wheel 0 Sep 20 15:49 snapmirror.log.0000000014
-rw-r--r-- 1 root wheel 0 Sep 21 15:49 snapmirror.log.0000000015
-rw-r--r-- 2 root wheel 0 Sep 22 15:49 snapmirror.log.0000000016

Snapmirror.log.0000000001 是最早的日志、而最大的日志是包含相同内容的最新日志snapmirror.log
注意: 适用场景 mgwd.log*command-history.log* (均位于 /mroot/etc/log/mlog中)以及 ems.log* 中的规则相同 /mroot/etc/log.

以下是的示例 /mroot/etc/log/snapmirror_audit*:

cm2552a-cn-01% pwd /mroot/etc/log

cm2552a-cn-01% ls -al snapmirror_audit*
-rw-r--r-- 2 root wheel 542 Sep 22 15:49 snapmirror_audit
-rw-r--r-- 2 root wheel 3070 Sep 20 15:48 snapmirror_audit.0
-rw-r--r-- 2 root wheel 6725 Sep 13 15:46 snapmirror_audit.1
-rw-r--r-- 2 root wheel 70 Jul 11 23:47 snapmirror_audit.10
-rw-r--r-- 2 root wheel 2228 Sep 6 15:45 snapmirror_audit.2
-rw-r--r-- 2 root wheel 1897 Aug 30 21:48 snapmirror_audit.3
-rw-r--r-- 2 root wheel 3572 Aug 23 21:47 snapmirror_audit.4
-rw-r--r-- 2 root wheel 2099 Aug 16 22:02 snapmirror_audit.5
-rw-r--r-- 2 root wheel 1897 Aug 9 22:54 snapmirror_audit.6
-rw-r--r-- 2 root wheel 1897 Aug 2 22:52 snapmirror_audit.7
-rw-r--r-- 2 root wheel 1897 Jul 26 22:51 snapmirror_audit.8
-rw-r--r-- 2 root wheel 1696 Jul 19 22:49 snapmirror_audit.9
-rw-r--r-- 2 root wheel 70 Jul 11 23:47 snapmirror_audit.log.0000000001
-rw-r--r-- 2 root wheel 1696 Jul 19 22:49 snapmirror_audit.log.0000000002
-rw-r--r-- 2 root wheel 1897 Jul 26 22:51 snapmirror_audit.log.0000000003
-rw-r--r-- 2 root wheel 1897 Aug 2 22:52 snapmirror_audit.log.0000000004
-rw-r--r-- 2 root wheel 1897 Aug 9 22:54 snapmirror_audit.log.0000000005
-rw-r--r-- 2 root wheel 2099 Aug 16 22:02 snapmirror_audit.log.0000000006
-rw-r--r-- 2 root wheel 3572 Aug 23 21:47 snapmirror_audit.log.0000000007
-rw-r--r-- 2 root wheel 1897 Aug 30 21:48 snapmirror_audit.log.0000000008
-rw-r--r-- 2 root wheel 2228 Sep 6 15:45 snapmirror_audit.log.0000000009
-rw-r--r-- 2 root wheel 6725 Sep 13 15:46 snapmirror_audit.log.0000000010
-rw-r--r-- 2 root wheel 3070 Sep 20 15:48 snapmirror_audit.log.0000000011
-rw-r--r-- 2 root wheel 542 Sep 22 15:49 snapmirror_audit.log.0000000012

Mgwd目前正在维护两组 snapmirror_audit*snapmirror_error* 日志、它们具有相同的信息和时间戳。在这种情况
snapmirror_audit.10 = snapmirror_audit.log.0000000001 are the oldest logs and snapmirror_audit = snapmirror_audit.log.0000000012 下、是最新的日志。

这两组日志的轮换方式和保留期限不同。由于日志记录的信息相同、因此只需要检查一组日志。snapmirror_audit.log.xxxxxxxxxxsnapmirror_audit.log.xxxxxxxxxx建议使用、因为它们的保留期限较长、而它们的轮换方式更便于阅读。

追加信息

附加信息 _text

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.
Scan to view the article on your device