Free space available on disk, but still show 100% used

We have a strange problem at company last week, Hard-drive of an asterisk server gets full with call recordings. I took the backup of the same when I came to know the situation.  After taking almost 100GB of data transfer I try to see the disk space available, I saw a strange problem.

Check disk status
Check disk status

You can see that the LVM group 0 partition have capacity of 448GB and almost 103GB is free but still it shows that the disk is used 100%, which is confusing.

In order to get the correct status of disk, we need to tune the file system using the tune2fs which is basically used to tune for Linux file system for ext2, ext3, and ext4. You can do many things with the tune2fs disk utility, Ubuntu user have seen that even you do normal start and shout down of your laptop but still it forcefully check disk after some specific number of shutdown, tune2fs is responsible to set that number of counts.

When I run command tune2fs to set the reserve disk space with 0 blocks, it tunes the disk for the same and after thaat I got the correct usage according to data and space available on the disk.

After tuning disk
After tuning disk with tune2fs

[root@loasterisk ~]# tune2fs -m 0 /dev/mapper/VolGroup00-LogVol00
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 0% (0 blocks)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s