On Wed, Nov 12, 1997 at 06:21:49PM -0500, David Schairer wrote: -> -> The effects of soft quotas are relatively easy to implement. We've got -> a system with many thousands of 'soft' quotas running off of netapps -> servers. Remember that with the 'quota report' command, you can -> find the level of usage in real time for any quota ID. You can put -> a wrapper around this to check a quota very rapidly -- not rapidly -> enough to plug directly into realtime applications, but fast enough -> for use in, say, a .login message. -> -> Since you need to be root on a hosts.equiv machine to do an rsh quota report -> on the netapps, you'll probably need a setuid root binary wrapper to -> actually do the rsh, but that's fairly simple to accomplish. Then -> set your physical quotas in the /etc/quotas file to be your _hard_ limit, -> and establish another file (which the netapps doesn't see) containing -> soft limits to compare to the real values. -> -> We do this all through our database engines for thousands of accounts, poll -> the server on a very frequent basis, and everything works extremely well. -> There may be a couple of bugs where the numbers returned are slightly off -> (and in at least one case, negative), but these have been very rare and quite -> transitory, so I haven't pinned down whether there's really a bug or just -> a pookah.
We did something a little different...
I wrote a script which checks to see if you are within a certain percentage, such as 15%, of your hard limit. This runs each day and sends email to anyone who exceeds that limit.
Granted this doesn't work in real time....
- dlb