Skip to main content
NetApp Knowledge Base

Is there a way to check the total number of user data files in ONTAP volume?

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

Applies to

Answer

  • No, ONTAP does not provide a standard command to get the exact total number of files in the user data area.
  • As an approximation, you can use the number of inodes used in each volume, since each file and directory typically uses one inode.
  • The number of inodes used is roughly equal to the sum of files and directories.
  • To check the used inodes, use volume show -fields files-used or df -i.

Additional Information

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.