REST APIがスペースに対して負の値を返す。ボリュームで使用可能
環境
- ONTAP 9
- REST API
問題
- ONTAP System Manager でボリュームサイズに負の値が表示される
- REST APIは
/api/storage/volumes?name=vol1&fields=space、スペースに対して負の値を返します。使用可能なスペースがある特定のボリュームで使用可能
{"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 CLI
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など)で表示される場合があります。