What happens when a process tries to write in that last 5%? do you deny
access, or only allow "root" to write there?

If so, I suggest you look into the "tune2fs" comand. What you seek is
basically a filesystem limitation, and the "-m" or
"--reserved-blocks-percentage". The filesystem will look like it is 100%
full, and report that way to the operationg system with "df" commands, but
root will be able to use the remaining percentage to keep the system alive
until you throw some stuff away. That's what that option is *for*.



On Wed, Oct 23, 2013 at 6:35 AM, Mahmood Naderan <[email protected]>wrote:

> Hi,
> How can I set a global disk usage limit on root folder '/'? All I see in
> the manuals is user and group quotas. I just want to set an upper limit
> that 5% of '/' must be empty.
>
>
> Regards,
> Mahmood
>

Reply via email to