Skip to main content
NetApp Knowledge Base

Does difference in percent-used calculation depend on ONTAP versions?

Views:
188
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

ONTAP 9

Answer

ONTAP 9.3 or earlier and 9.3.1 or later are different calculations.

Additional Information

  • ONTAP 9.3 or earlier calculation of "percent-used"

"percent-used" = (df used  + df snapshot reserve) / (volume size + snapshot reserve)

Example:

"percent-used" = ( 814396 + 4194304) / ( 16777216 +  4194304 ) = 23%

ontap93::> vol show -vserver svm1_ontap93 -volume vol1_svm1 -fields percent-used, total ,used, percent-snapshot-space
vserver         volume    total used    percent-used percent-snapshot-space
--------------- --------- ----- ------- ------------ ----------------------
svm1_ontap93-02 vol1_svm1 16GB  795.3MB 23%          20%
 
ontap93-02::> df -vserver svm1_ontap93-02  -volume vol1_svm1
Filesystem              kbytes       used      avail capacity  Mounted on
/vol/vol1_svm1/     16777216     814396   15962820       5%  /vol1_svm1
/vol/vol1_svm1/.snapshot 4194304    12144    4182160 0%  /vol1_svm1/.snapshot
2 entries were displayed.
 
  • ONTAP 9.3.1 or later calculation of "percent-used" = "df used percent"

Example:

ontap97::> vol show -vserver svm1_ontap97 -volume vol1_svm1 -fields percent-used, total ,used, percent-snapshot-space
vserver      volume    total used   percent-used percent-snapshot-space
------------ --------- ----- ------ ------------ ----------------------
svm1_ontap97 vol1_svm1 4GB   1.57GB 39%          20%
 
ontap97::> df -vserver svm1_ontap97 -volume vol1_svm1
Filesystem              kbytes       used      avail capacity  Mounted on
/vol/vol1_svm1/        4194304 1651144    2543160      39%  /vol1_svm1
/vol/vol1_svm1/.snapshot 1048576    24204    1024372       2% /vol1_svm1/.snapshot
2 entries were displayed.

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.