跳转到主内容

REST API为卷上的space.available返回负值

Views:
22
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2009793847</a>
Last Updated:

适用场景

  • ONTAP 9
  • REST API

问题描述

  • ONTAP系统管理器 会将卷大小显示为负值
  • REST API /api/storage/volumes?name=vol1&fields=space 在具有可用空间的特定卷上为space.available返回负值
{
"records": [
{
"uuid": "a12345xx-x12x-123d-1234-x1x123xx12xx",
"name": "vol1",
"space": {
"size": 57174604644352,
"available": -9709504753664, (<--负值)
"used": 58307918704640,
..................
}}},
"_links": {
"self": {
"href": "/api/storage/volumes/a12345xx-x12x-123d-1234-x1x123xx12xx"
}}}],
"num_records": 1,
"_links": {
"self": {
"href": "/api/storage/volumes?name=vol1&fields=space"
}}}
 
  • ONTAP命令行界面 volume show 命令显示的值正确
netapp::> vol show vol1 -instance
 
Vserver Name: svm1
Volume Name: vol1
Aggregate Name: aggr06
List of Aggregates for FlexGroup Constituents: aggr06
Encryption Type: none
List of Nodes Hosting the Volume: netapp-1
Volume Size: 52TB
...........
Comment: 
Available Size: 2.47TB
Filesystem Size: 52TB
Total User-Visible Size: 44.20TB
Used Size: 41.73TB
Used Percentage: 94%
..................

注意: 使用ONTAP REST API的工具可能会显示问题描述、例如System Manager、Active IQ Unified Manager等

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.