Soft Quotas

I can’t say for certain the our disk quotas were working properly before or not since I never had any issues of sites going over their amount.

Regardless of how they may have worked or not, I do have a problem now. Our server is set up with Disk Quota type as soft in our server templates, however today a user was unable to upload anything via ftp (proftpd) since their site had just barely exceeded their quota.

I’ve checked through the respective template - all of them in fact - and everything is set up with soft quotas, however they seem to be functioning as hard. Any ideas?

Chris

Hi Chris,

I haven’t worked much with soft quotas, but from poking around some docs, it looks like there’s a grace period setup by default. And after that grace period is up, Linux will begin enforcing the quota.

There’s a little mentioned about that here:

http://www.faqs.org/docs/Linux-mini/Quota.html#ss5.6

Or, poking in the RedHat documentation, they say something similar:

http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-storage-quotas.html

"The grace period is the time during which the soft limit may be exceeded. The grace period can be expressed in seconds, minutes, hours, days, weeks, or months, giving the system administrator a great deal of freedom in determining how much time to give users to get their disk usage below their soft limit."

I don’t see a way to modify that within Virtualmin, but if you log in over SSH, you can change the grace periods using “edquota -t”. The “edquota” man page has some additional info on that.
-Eric

So if I just run edquota -t and then change the grace period that’s it? The quotas for existing users will be updated with the new default grace period?

Chris

Hi Chris,

Well, your kind of in a realm I’m not familiar with there, as I haven’t used soft quotas before.

However, that’s my impression based on the links I dug up on Google, that you could use edquota, and change the grace period for your users. It sounded like the grace period is a single setting for all users.
-Eric