Skip to main content
NetApp Knowledge Base

REST API returns a negative value for space.available on the volume

Views:
265
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

  • ONTAP 9
  • REST API

Issue

  • ONTAP System Manager  shows negative value as a volume size
  • The REST API /api/storage/volumes?name=vol1&fields=space returns a negative value for space.available on a specific volume which has space available
{
"records": [
{
"uuid": "a12345xx-x12x-123d-1234-x1x123xx12xx",
"name": "vol1",
"space": {
"size": 57174604644352,
"available": -9709504753664, (<-- negative value)
"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 CLI volume show command shows correct value
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%
..................

Note: issue might be seen on tools using ONTAP REST API such as: System Manager, Active IQ Unified Manager etc.

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.