ONTAP Discussions
ONTAP Discussions
Can anyone let me know how to get file count on a single CIFS share
Solved! See The Solution
Not entirely. Inodes used includes:
- files
- directories
- symlinks
If you want actual file count, you can use XCP, which is offbox and doesn't require ONTAP 9.8.
You can check if netapp xcp file analytics provides the feature you need. Its free!!!
References
NetApp XCP file analytics is host-based software to scan the file shares, collect and analyzes the data and provide insights into the file system. XCP file analytics works for both NetApp and non-NetApp systems and runs on Linux or Windows host
Looks like XCP file analytics works with Ontap 9.8.
I am still at Ontap 9.4P3.
Can inode utilization -> iused -> can be taken as no.of files under the shares of that volume ?
iused ifree %iused
198913653 47741537 80%
Not entirely. Inodes used includes:
- files
- directories
- symlinks
If you want actual file count, you can use XCP, which is offbox and doesn't require ONTAP 9.8.
Also look for page 177-179 of TR-4571 for good xcp scan examples.
https://www.netapp.com/us/media/tr-4571.pdf
Good luck 👍
You can run this command:
::> volume show -vserver Vserver_Name -volume Volume_Name -fields files-used
It will list the number of files including snapshots.
That works if the share is at the volume level.
But you can set shares at qtree or folder level.
XCP is one way to get the count. Or, in 9.8, you can enable Filesystem Analytics.
https://blog.netapp.com/ontap-file-system-analytics
https://tv.netapp.com/detail/video/6208348752001/ontap-file-system-analytics
https://www.netapp.com/media/20707-tr-4867.pdf
FSA looks awesome! Thanks for the info here.