I'm trying to configure quotas for home directories. the more research in the community section i do the more confused i am over what is and isn't possible.
so i've created a volume (users) and inside that a qtree (1GB).
I;ve used cifs.homedirs to allow the user to map their homedrive with \\filername\~ and that works lovely.
I've applied a quota of 1GB for users against this qtree. actually, i think its the default quota becuase of the * at the start of the quota line. in /etc/quotas it looks like
this isn't currently working, ive got three users in the qtree and when they collectively take up 1GB, no more storage is allowed. but im fairly confident i'll get this working, as there are threads like this one that explain how this works.
when i do get this working, I'd like to create a new qtree, 5GB inside users and apply a quota to that,
will i be able to have two quotas that apply to users? and configure a quotas file like this?
if you can give me a link to docco to read to understand this properly, would be most appreciative.
I've read through that document and specifically on page 10 found the section about user quotas. it states as i read it, that all users quotad on a volume or qtree contribute cumulatively to that qtree. would you agree to that statement?
is there a way to enforce a per user limit to their particular subfolder of the qtree without creating a specific entry for each user in \etc$\quotas? i can't see that the homedirs settings are all that useful without separate quotas
it is however not the way my filer is working right now.
usera has 900MB of docs.
userb adds 100MB of docs and the 1GB limit is triggered.
This is why i described the quota as cumulative. although the rule in \etc\quotas is per user , the limit is being hit cumulatively across the data stored by two users and then both users are denied the ability to store docs. im not sure you've got the same understanding of cumulative as i have!
so after pausing to reread your response, have i made the following mistake?
- not setting the default quota for the whole qtree
- then setting the quota for the user folders on the qtree of 1GB rather than a share lower.
which would lead me to believe that the best way to operate is to create
im going to do a bunch of testing on this now to try and answer that question for myself. will update the thread as i learn something.
three users on there. only one of those can write past 1GB for their homefolder.
however unlike previously, a cumulative count of all users home directories now measures more than 1GB.
I've got one user for whole \\filername\~ won't work, but I'm going to leave it overnight and see if that sorts itself out.
I've also just plugged in the second quota for the bigger homedirs at 5GB. I know it has been recommended above to have one rule and many exceptions, but I'm in a position where i can tear it all out if it doesn't work, so I thought I'd test it