Friday, June 14, 2013

Space Usage Issue in Linux

Today i faced a new issue,
[root@bkserver1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             222G  218G     0 100% /
/dev/sda1              99M   11M   84M  11% /boot
tmpfs                 1.8G     0  1.8G   0% /dev/shm
I can see only 218G is using out of 222G still its showing 100% Usage.

[root@bkserver1 ~]# tune2fs -l /dev/sda3
Inode count:              59998208
Block count:              59974661
Reserved block count:     2998733
Free blocks:              1647082
Free inodes:              58882035
First block:              0
Block size:               4096

Solution :
[root@bkserver1 ~]# tune2fs -m 1 /dev/sda3
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 1% (599746 blocks)
After this i tried df -h, i got the Available space count.