跳转到主内容

ONTAP REST API 返回错误的备用数量

Views:
23
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用于

  • ONTAP 9.6
  • REST API

问题

Curl Query 仅报告一个节点 -02 的备用磁盘而不是两个备用磁盘,并且输出中完全缺少节点 -01 :


{
 "records": [
  ],
 "num_records": 0,
 "spares": [
    {
     "node": {
       "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
       "name": "node-02"
      },
     "disk_class": "capacity",
     "size": 3992785256448,
     "checksum_style": "block",
     "syncmirror_pool": "pool0",
     "usable": 1,
     "layout_requirements": [
        {
         "raid_type": "raid_dp",
         "default": true,
         "aggregate_min_disks": 5,
         "raid_group": {
           "min": 3,
           "max": 20,
           "default": 14
          }
        },
        {
         "raid_type": "raid4",
         "default": false,
         "aggregate_min_disks": 3,
         "raid_group": {
           "min": 2,
           "max": 7,
           "default": 7
          }
        },
        {
         "raid_type": "raid0",
         "default": false,
         "aggregate_min_disks": 1,
         "raid_group": {
           "min": 0,
           "max": 0,
           "default": 0
          }
        },
        {
         "raid_type": "raid_tec",
         "default": false,
         "aggregate_min_disks": 7,
         "raid_group": {
           "min": 4,
           "max": 29,
           "default": 21
          }
        }
      ]
    }
  ]
}



aggr show-spare-disksONTAP CLI 中的命令报告正确的备件数量:

cluster1::> aggr show-spare-disks

Original Owner: node-01
 Pool0
  Root-Data1-Data2 Partitioned Spares
                                                             Local    Local
                                                              Data     Root Physical
 Disk             Type   Class          RPM Checksum        Usable   Usable     Size Status
 ---------------- ------ ----------- ------ -------------- -------- -------- -------- --------
 1.10.21          SSD    solid-state      - block                0B  53.88GB  894.3GB zeroed
 1.10.23          SSD    solid-state      - block           840.1GB  53.88GB  894.3GB zeroed

Original Owner: node-02
 Pool0
  Spare Pool

                                                             Usable Physical
 Disk             Type   Class          RPM Checksum           Size     Size Status
 ---------------- ------ ----------- ------ -------------- -------- -------- --------
 1.1.11           FSAS   capacity      7200 block            3.63TB   3.64TB zeroed
 1.2.11           FSAS   capacity      7200 block            3.63TB   3.64TB zeroed

Original Owner: node-02
 Pool0
  Root-Data1-Data2 Partitioned Spares
                                                              Local    Local
                                                               Data     Root Physical
 Disk             Type   Class          RPM Checksum         Usable   Usable     Size Status
 ---------------- ------ ----------- ------ -------------- -------- -------- -------- --------
 1.10.14          SSD    solid-state      - block                0B  53.88GB  894.3GB zeroed
 1.10.20          SSD    solid-state      - block                0B  53.88GB  894.3GB zeroed

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.