ONTAP REST API 返回错误的备用数量
适用于
- 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-disks
ONTAP 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