My previous question was faulty marked as spam. I am trying again...
I am using volume-get-iter ZAPI call and use value of 'percentage-size-used' from volume-space-attributes . As I have noticed on ONTAP 8.3 and 9.2 (I have those two version) I get percentage-size-used as:
"percent-used" = (Used data space + Snapshot Reserve Size) / Total Volume size
However for same ZAPI call on ONTAP 9.7 I get value of percentage-size-used as":
"percent-used" = Used data space / Data sector Size
Then I've tried to run volume show command with percent-used field on those ONTAP versions and noticed same situation.
Here are examples of output of this command:
C-Mode ONTAP 8.3RC1. Size of Snapshot reserve 10%. And it is shown as used space (alongside with used data 200kb which is less than 1%):
![ONTAP83.png ONTAP83.png](https://community.netapp.com/t5/image/serverpage/image-id/9765i5F614B669D2E8703/image-size/large?v=v2&px=999)
The same situation is for ONTAP 9.2:
![ONTAP92.png ONTAP92.png](https://community.netapp.com/t5/image/serverpage/image-id/9766i221625B391F58BB6/image-size/large?v=v2&px=999)
However for ONTAP 9.7 the Snapshot reserve isn't included in this percentage. The value of percent used shows only data utilization (and snapshot spill, but not snapshot reserve size). Utilization is 3% despite Snapshot reserve is 50%:
![ONTAP97.png ONTAP97.png](https://community.netapp.com/t5/image/serverpage/image-id/9767i21AE95B0A0F21EBB/image-size/large?v=v2&px=999)
Could someone tell from which ONTAP version calculation approach has changed? And point the doc where this is mentioned (because I couldn't find this place at least for now).
Thanks!