User & Group quotas may exist at either the Volume level and/or the qtree level:
/etc/quotas: #volume tree quotas /vol/vol0 tree 50G - /vol/vol1 tree 20G - #default tree quotas * tree@/vol/vol0 - - * tree@/vol/vol1 - - #qtree quotas /vol/vol0/dir1 tree 15G - /vol/vol1/dir1 tree 5G - #user quotas per volume tmac user@/vol/vol0 5M - john user@/vol/vol1 5M - #default user quota per volume * user@/vol/vol0 3M - * user@/vol/vol1 3M - #user quotas per qtree tmac user@/vol/vol0/dir1 3M - john user@/vol/vol1/dir1 3M - #default user quotas per qtree * user@/vol/vol0/dir1 2M - * user@/vol/vol1/dir1 2M -
For group quotas, simply replace user with group. The first column can be a UNIX UID(user) or GID(group). It can also be a name if you use /etc/passwd or NIS.
--tmac
Steve Armijo wrote:
On Tue, Jun 27, 2000 at 09:50:01PM +0100, Chris Thompson wrote:
daniel@sprintlabs.com (Daniel Oxenhandler) writes:
- Will we need to create separate volumes for Home dir's and Projects, so
that the quotas will work as we intend (e.g. a user can own files in his Project directory without it counting against his User quota) -- or can we get away with qtrees? My suspicion is that we will need to start from scratch and create at least two volumes to do this.
You don't need separate volumes: separate qtrees will do everything you need. You can make specific or default per-uid or per-gid quotas that apply only within a particular qtree: see the na_quotas man page for the syntax.
it will of course be cleaner to create separate volumes, and in some situations make more sense and reduce operational overhead. user quotas apply on a per volume basis, not on a qtree basis. this means that users may be prevented from writing to 'project' directories once their home dir starts to fill up. depending on your clients, files may be truncated as they are opened ( Older versions on FreeBSD did this ) if a user is over their quota. in order to add a new qtree/user quota ( if you don't use a default user quota) you have to toggle quotas off/on.
-s
-- Cue the music, fade to black, no such thing as no payback. -PWEI
[ armijo@cs.unm.edu ]
-- ******All New Numbers!!!****** ************* *************
Timothy A. McCarthy --> System Engineer, Eastern Region Network Appliance http://www.netapp.com 240-268-2034 Office \ / Page Me at: 240-268-2001 Fax / 888-971-4468