nlehrer@ibb.gov (neil lehrer) writes:
i use qtree quotas with ontap 6.1x nfs and cifs.
from windows i can just get properties on a qtree and i see its quota and usage. is there anyway to do that from a unix host? du would take a while and i could run a quota report, but i was curious if there were another way?
If you have an NFS mount point inside the qtree, then statvfs(2) [e.g. df(1)] will tell you about the limits and usage of the qtree, rather than the whole volume. For example, on a filer near here:
puppis> quota report /grp_hpop K-Bytes Files Type ID Volume Tree Used Limit Used Limit Quota Specifier ----- -------- -------- -------- -------- -------- ------- ------- --------------- tree 14 CUS grp_hpop 300396 307200 3151 31000 /grp_hpop
and on its clients:
$ df -k /group/hpop/. Filesystem kbytes used avail capacity Mounted on puppis:/grp_hpop 307200 300396 6804 98% /group/hpop $ df -t /group/hpop/. /group/hpop (puppis:/grp_hpop): 13608 blocks 27849 files total: 614400 blocks 31000 files
That's how we advise managers of individual qtrees to keep track of their usage.
Chris Thompson Email: cet1@cam.ac.uk