[prev in list] [next in list] [prev in thread] [next in thread]
List: toasters
Subject: Re: quota limits
From: Chris Thompson <cet1 () cus ! cam ! ac ! uk>
Date: 2001-02-28 16:13:10
[Download RAW message or body]
tmac@netapp.com (Tim McCarthy) writes
>
> Something like this should do:
>
> /etc/quotas
> /vol/vol0/qtree2g tree 2G
> #Establish a 2G limit for your special qtree
>
> user1 user@/vol/vol0/qtree2g 2G
> user2 user@/vol/vol0/qtree2g 2G
> user3 user@/vol/vol0/qtree2g 2G
> user4 user@/vol/vol0/qtree2g 2G
> * user@/vol/vol0/qtree2g 0M
> #Give your special users a 2G limit inside the special qtree
> #Give everyone else no limit in the special qtree
>
> * user 200M
> #Give all users a 200MB limit on the rest of the volume
No, that won't apply to "the rest of the volume", but to the whole
of it. For files owned by user1 inside /qtree2g, *each* of the
following quotas will apply:
1. the 2G tree quota for /qtree2g
2. the 2G quota for user1 inside /qtree2g
3. the 200M quota for user1 on the whole volume /vol/vol0
and of course (3) will always bite before (2).
For this reason (among others) it's desirable to put everything inside
qtrees whenever possible. I try to arrange that only /etc is not in a
qtree on my volumes. Thus if the 200 MB limit was meant to apply only
to "home directories", and they had all been put inside a qtree /home,
then
* user@/home 200M
would provide a control that was independent of those on /qtree2g.
Of course, if the original poster has allocated his home directories
outside any qtree, it may be a substantial chore for him to get them
all reallocated inside a qtree, as a lot of data movement could be
involved.
If one could have quotas that applied only to "qtree 0" (in the sense
of the na_qtree man page) then that would solve his problem, but AFAIK
this is not currently possible in ONTAP.
> #And hey, just for kicks:
> * tree@/vol/vol0/ *
^ should be "-" ?
> #a default tree quota for vol0. If you add more
> #qtrees, simply add it to this quotas file
> #and do a quota resize
That's certainly what I have done since that facility became available
(5.3.4 or thereabouts).
BTW, I've been assuming that /vol/vol0 is the root volume above. In which,
case the entries in /etc/quotas do not have to mention it explicitly after
the "@"s, as it is the default.
Chris Thompson University of Cambridge Computing Service,
Email: cet1@ucs.cam.ac.uk New Museums Site, Cambridge CB2 3QG,
Phone: +44 1223 334715 United Kingdom.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic