>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
 
Exactly.

At starting point with tune2fs, things aren't good!

$ tune2fs -l /dev/sda1 | grep Reserved
tune2fs: Bad magic number in super-block while trying to open /dev/sda1
Couldn't find valid filesystem superblock.

Is that OK? I mean does that mean "you have not defined reserve space yet"? 



Regards,
Mahmood



On Wednesday, October 23, 2013 2:15 PM, Nico Kadel-Garcia <[email protected]> 
wrote:
 
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