On Wed, 24 Apr 2013 18:38:42 +0100, Stroller wrote: > > Sometimes a simplistic rule is what's needed. If you are selling > > off-site storage in 1GB chunks, you need to stop people using more > > than they have paid for. Hard quotas do this, soft quotas let you > > warn them first, before things get broken. > > I'm unclear how this warning would be addressed. > > Your system must be more complex than I'm imagining, because I see this > obvious answer of a bash script which loops through /home/*, runs `du` > or `df` and sends an email to anyone who's consuming more than 90%. > Obviously this needs to be adapted to circumstance.
The warnquota command, from sys-fs/quota, does this for all user and all filesystems with a single command called from cron. Yes, you could reinvent the wheel with a shell script, but the wheel already exists for filesystems other than ZFS. There's also the grace time element, which allows you to go over quota for a short period, allowing you, for example, to delete some old backups before the system fails on the new one. -- Neil Bothwick WITLAG: The delay between delivery and comprehension of a joke.
signature.asc
Description: PGP signature

