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?
On Tue, May 07, 2002 at 07:39:46PM -0400, neil lehrer wrote:
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?
df [-k] filer:/qtree/mountpoint
p.
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
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?
The "quota report" command accepts a filename argument, so if you don't want to sift through a full quota report just pass the name of a file or directory within the qtree. You will get the usage and quotas that govern that particular filename, i.e., user@volume, group@volume, user@qtree, group@qtree and the tree quota.
quota report /vol/vol0/qtree/userdir
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support