ONTAP Discussions

File count on CIFS share

sairajeev
7,977 Views

Can anyone let me know how to get file count on a single CIFS share

1 ACCEPTED SOLUTION

parisi
7,893 Views

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.

 

https://whyistheinternetbroken.wordpress.com/tag/xcp/

View solution in original post

8 REPLIES 8

jcolonfzenpr
7,944 Views

You can check if netapp xcp file analytics provides the feature you need. Its free!!!

 

References

https://whyistheinternetbroken.wordpress.com/2018/07/02/how-to-find-average-file-size-and-largest-file-size-using-xcp/

 

https://xcp.netapp.com/

 

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

Jonathan Colón | Blog | Linkedin

sairajeev
7,898 Views

Looks like XCP file analytics works with Ontap 9.8.
I am still at Ontap 9.4P3.

sairajeev
7,897 Views

Can inode utilization -> iused -> can be taken as no.of files under the shares of that volume ?


 iused                   ifree         %iused 
 198913653     47741537        80% 

parisi
7,894 Views

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.

 

https://whyistheinternetbroken.wordpress.com/tag/xcp/

jcolonfzenpr
7,953 Views

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 👍 

Jonathan Colón | Blog | Linkedin

tahmad
7,951 Views

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. 

parisi
7,906 Views

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

 

darraghos
6,751 Views

FSA looks awesome! Thanks for the info here.

Public