跳转到主内容

以下哪个 REST API 或命令行界面相当于 ONTAP System Manager 信息板中的容量?

Views:
25
Visibility:
Public
Votes:
0
Category:
ontap-system-manager
Specialty:
OM
Last Updated:

适用场景

ONTAP System Manager 9.7或更高版本

问题解答

  ONTAP系统管理器 信息板中的容量 显示 USEDAVAILABLE的大小。

哪个REST API或命令行界面相当于ONTAP系统管理器信息板中的容量

用于获取这些值的REST API和CLI包括:

  • 的REST API USED

[<CLUSTER>/api/storage/cluster?fields=*]

  • 适用于的命令行  界面 USED

::*> storage aggregate show-efficiency -aggregate <AGGREGATE> -fields aggregate,total-logical-used,total-physical-used,aggr-logical-used,aggr-physical-used,total-storage-efficiency-ratio

注意:需要高级权限。

  • 的REST API AVAILABLE

[<CLUSTER>/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]

  • 适用于的命令行  界面 AVAILABLE

::> df -A

 

示例:

与上述屏幕截图对应的REST API和CLI的结果(已用为 7.32 MB,可用为 28.32 GB)。

  • 的REST API USED

[cluster2/api/storage/cluster?fields=*]

<snip>
{
"efficiency": {
  "savings": 0,
  "ratio": 1,
  "logical_used": 7671808
},
</snip>

逻辑_已用:7671808 = 7671808/1024/1024 = 7.32 MB

  • 适用于的命令行  界面 USED

::*> storage aggregate show-efficiency -aggregate aggr1_cluster2_01 -fields aggregate,total-logical-used,total-physical-used,aggr-logical-used,aggr-physical-used,total-storage-efficiency-ratio

aggregate             total-logical-used    total-physical-used     total-storage-efficiency-ratio     aggr-logical-used     aggr-physical-used
-----------------             ------------------             -------------------             ------------------------------             -----------------             ------------------
aggr1_cluster2_01     7.32MB              13.83MB                1.00:1                             13.83MB              13.83MB


总逻辑使用量= 7.32 MB

  • 的REST API AVAILABLE

[cluster2/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]

仅数据聚合(无根聚合):

<snip>
"space": {
"footprint": 25886720,
"block_storage": {
  "size": 30439669760,
  "available": 30404370432,
  "used": 35299328,
  "full_threshold_percent": 98
},
</snip>

可用空间:30404370432/1024/1024 = 28.32 GB

  • 适用于的命令行  界面 AVAILABLE

::> df -A
Aggregate                    kbytes             used        avail        capacity
aggr1_cluster2_01           29726240    34332      29691908    0%
aggr1_cluster2_01/.snapshot  0              0          0                 0%

可用空间:29691908 = 29691908/1024/1024 = 28.32 GB 

追加信息

其他信息文本

 

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.