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 -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など)で表示される場合があります。