ONTAP Discussions

Number Files in Qtree

maillon133
3,375 Views

Hello everybody,

I have lot of volume with qtree inside and i want to know how many files there are in each qtree ?

It's possible to know that ?

My version is 8.0.2

Thank you very much

Regards,

3 REPLIES 3

paleon
3,375 Views

If you configure quotas on the qtrees and set the quotas to report but not restrict, I believe this will get you the information you require.

columbus_admin
3,375 Views

paleon is correct, add this to the /etc/quotas file:

current quota syntax, only one entry needed:

*     tree@/vol/your_volume_name     -     -     -     -

or

old quota syntax, separate entry needed for each qtree in the volume:

/vol/your_volume_name/qtree_name     tree     -     -     -     -

Then run quota on your_volume_name

This may take quite some time to finish, but once done, you can run quota report to see the qtree size, as well as the number of files

- Scott

maillon133
3,375 Views

Thank you very much for your help

Regards,

Public