REST API returns a negative value for space.available on the volume
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=spacereturns 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 showcommand shows correct value
netapp::> vol show vol1 -instanceVserver Name: svm1Volume Name: vol1Aggregate Name: aggr06List of Aggregates for FlexGroup Constituents: aggr06Encryption Type: noneList of Nodes Hosting the Volume: netapp-1Volume Size: 52TB...........Comment: Available Size: 2.47TBFilesystem Size: 52TBTotal User-Visible Size: 44.20TBUsed Size: 41.73TBUsed Percentage: 94%..................Note: issue might be seen on tools using ONTAP REST API such as: System Manager, Active IQ Unified Manager etc.
