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