REST API为卷上的space.available返回负值
适用场景
- 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 -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%..................注意: 使用ONTAP REST API的工具可能会显示问题描述、例如System Manager、Active IQ Unified Manager等