#percent_used not available

1 messages · Page 1 of 1 (latest)

fathom magnet
#

Hello everyone,
I query all volumes via the API as follows:

https://$cluster/api/storage/volumes?is_svm_root=false&return_records=true&return_timeout=15&fields=**"

I have now noticed that the .space.percent_used field does not exist for some volumes:

`
size : 50047106416640
available : 18823891181568
used : 5198719901696

delayed_free_footprint : 44265156608
nearly_full_threshold_percent : 95
overwrite_reserve : 0
overwrite_reserve_used : 0
size_available_for_snapshots : 30463779557376
fractional_reserve : 0
block_storage_inactive_user_data_percent : 0
physical_used_percent : 13
physical_used : 6382909734912
expected_available : 18823891181568
filesystem_size : 50047106416640
filesystem_size_fixed : False
large_size_enabled : False
logical_space : @{reporting=False; enforcement=False; used_by_afs=11340613545984; used_percent=47; used=11340613545984; used_by_snapshots=124335011315712}
snapshot : @{used=1184201506816; reserve_percent=52; autodelete_enabled=False; reserve_size=26024495333376; space_used_percent=5; reserve_available=11639888375808; autodelete_trigger=volume;
autodelete=}
When I query the volume on the ONTAP CLI, I get matching values:
::> vol show XXX -fields percent-used,logical-used-percent
vserver volume percent-used logical-used-percent


XXX XXX 21% 47%

`

Do you have any idea why this field is missing on some volumes?

unreal hare
#

Are you querying this via the swagger interface ? I just checked on our lab system and percent_used shows up on all flexvol volumes, we are using ontap 9.13.1, which version of ontap are you using and are all your volumes flexvols ?

fathom magnet
#

We are using version 9.12.1P4.
And also via Swagger, I have volumes that simply do not have the percent_used attribute

patent ibex
#

Just for the testing, maybe you can retry the request with specific fields, instead of querying for all fields=* ... Just to see if this changes anything...

unreal hare
fathom magnet
fathom magnet
patent ibex
#

Maybe try with the space.percent_used or just space . I did not try this, just copying the names from your initial post...

fathom magnet