跳转到主内容
NetApp Knowledge Base site will be down for 3 hours between Oct 26, 23:59 PST and Oct 27, 02:59 PST, for system maintenance and infrastructure update.

什么是性能归档?它们是如何触发的?

Views:
84
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
perf
Last Updated:

适用场景

ONTAP 9

问题解答

  • 在每个系统上收集和存储(归档)性能内容:
    • 记录节点和卷性能统计信息等指标。
    • 如何增加 PerfArchive 的数据存储库大小 默认情况下、数据会在根卷上保留28天。
    • 数据会不断记录、因此不会启动或停止高级日志记录。
    • 降低延迟所需的开销极少。
  • 使用AutoSupport (TM)基础架构、可以创建性能归档并上传到NetApp。
  • 性能归档不能替代性能监控或有助于规模估算、因为它们用于对ONTAP性能问题进行故障排除。
如何上传性能归档?
  1. 确认AutoSupport传输为HTTP或HTTPS:
    • Cluster::> autosupport show -fields transport
      node            transport
      --------------- ---------
      node1       https
    • 性能归档在压缩时通常大于或等于50 MB、因此、如果传输为SMTP、ONTAP会被硬编码为不传输。
    • 要从SMTP切换到HTTPS、以便传输更大的文件大小、请使用 命令:system node autosupport modify -node * -transport https
    • 如果传输为SMTP,而其他方法在环境中不起作用或不允许使用,请使用 手动方法和7zip文件OneCollect收集数据
  1. 运行system node autosupport invoke-performance-archive 命令:
    • Cluster::> system node autosupport invoke-performance-archive -start-date "11/31/2022 06:00:00" -duration 4h -case-number 2008123456 -node *
    • 以下是命令的选项:
      • -start-date <"MM/DD/YYYY HH:MM:SS">
        • 时区是文件管理器的时间、如event log show 输出或EMS日志中所示。
      • -duration <[ h][ m][ s]> (or -end-date)
      • -node *
      • -case-number

注:

  • 请注意、任何一次采集的最长持续时间为6小时、建议采样周期为4小时。
    • 如果少于2小时、则会错过一些每小时计数器。
    • -start-date 中输入的时间应反映 文件管理器时区中的时间。
    • -start-date  必须至少为 过去指定的-duration 小时数、否则将无法收集完整的时间段。
    • 不会显示任何错误消息、指示未收集完整的-duration
  • 最好从每小时的顶部开始、到每小时的顶部结束、以捕获每小时计数器。
    • 由于工作负载统计信息是在整个集群中测量的、因此必须触发整个集群。
    • 理想情况下、建议获取性能事件前后的小时数。
    • 建议将日期格式放在引号中。
  1. 使用以下命令查看性能归档的 上传进度:

::> autosupport history show-upload-details -node <node name> -seq-num <seq-num>

  • [1] 节点的性能归档将显示在Active IQ上的AutoSupport页面上。
  • 性能归档上载并显示在 Active IQ上后,支持人员将在一段时间后查看该归档。
如果性能归档不起作用、该怎么办?

::> set diagnostic
::*> statistics archive config show

验证字段:
Is the Performance Archive Enabled?: true

如果为false、请 运行以下命令以启用它:
::*> statistics archive config modify -is-enabled true

注意: 禁用性能归档后、EMS事件还会报告以下消息:
::*> event log show  -event perf*
Time                Node             Severity      Event
------------------- ---------------- ------------- ---------------------------
INFORMATIONAL perf.ccma.off: Performance archiver is not enable

  • 请确保  AutoSupport的statesupport 参数均已启用。如果不允许、请使用autosupport modify 命令进行访问。

aff200-2n-dal-1::> autosupport show -node * -fields state,support
node      state  support
------------- ------ -------
aff200-dal-1a enable disable
aff200-dal-1b enable disable
2 entries were displayed.


故障示例

aff200-2n-dal-1::> autosupport show -instance

                      Node: aff200-dal-1a
                     State: enable
                 SMTP Mail Hosts: mailhost
                  From Address: Postmaster
              List of To Addresses: -
      (DEPRECATED) List of Noteto Addresses: -
            List of Partner Addresses: -
  Send AutoSupport Messages to Vendor Support: disable 
          Protocol to Contact Support: https
           Support URL for HTTP/HTTPS: support.netapp.com/asupprod/post/1.0/postAsup
           Support URL for HTTP/S PUT: support.netapp.com/put/AsupPut
                Support Proxy URL:
                 Support Address: autosupport@netapp.com
                Hostname Subject: false
             (DEPRECATED) NHT Enable: true
            Performance Data Enable: true

aff200-2n-dal-1::> system node autosupport invoke-performance-archive -start-date "10/15/2024 15:00:00" -duration 1h -node aff200-dal-1a  -uri "file:///mroot/etc/log/autosupport/perfachivefile1"
The AutoSupport was successfully invoked on node "aff200-dal-1a" (sequence number: 134).

AutoSupport will be saved to mroot/etc/log/autosupport/perfachivefile1.7z.

aff200-2n-dal-1::> autosupport history show -node aff200-dal-1a -seq-num 134
       Seq                   Attempt  Percent  Last
Node      Num   Destination Status         Count   Complete Update
------------ ----- ----------- -------------------- -------- -------- --------
aff200-dal-1a
       134
          retransmit  ignore        -     -     10/15/2024 16:17:52

为什么需要perfstat?
  • 支持部门将请求perfstat。
  • 在ONTAP 9.5之前的版本上、可能缺少某些数据、支持部门将要求执行perfSAT。
  • 仅在支持部门要求时收集。
  • 有时、销售团队可能会要求收集性能数据以进行规模估算。
存储管理员如何查看性能归档中的内容?

追加信息

其他信息文本

 

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.