You are right. At the moment, our debian partition layout was in my mind. In SL, sda1 is for /boot and sda2 is for '/'.
It is now ok # tune2fs -m 5 /dev/sda2 tune2fs 1.41.12 (17-May-2010) Setting reserved blocks percentage to 5% (10929510 blocks) # tune2fs -l /dev/sda2 | grep Reserved Reserved block count: 10929510 Reserved GDT blocks: 203 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 860641152 378783432 438139680 47% / tmpfs 32942120 188 32941932 1% /dev/shm /dev/mapper/tigerfiler1-tigervolume 2884301016 1177166848 1560620044 43% /data Thanks. Regards, Mahmood On Wednesday, October 23, 2013 2:45 PM, Nico Kadel-Garcia <[email protected]> wrote: Is your root tifle system ext2, ext3, or ext4? The "tune2fs" only works with those. And I'm going to be surprised if you have your "/" filesystem on the "/dev/sda1" partition, most default setups of Scientific Linux have "/" on an LVM based partition, and "/dev/sda1" is set aside for "/boot". On Wed, Oct 23, 2013 at 6:53 AM, Mahmood Naderan <[email protected]> wrote: >>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 > > >
