Categories:- Unix Commands

Linux: No space left on device while df command shows lot of free space

While working on linux boxes system admin usually get this error “No Space left on device” While df commands shows lot free space on the same partition or device. In my scenario i have apache based application running on Centos , i also face the same problem.




Follow the below steps to solve this problem


Step:1 Identify  inodes information

To get inodes information of all the flie system , use below command


df -i  


To get  inode information for a particular file system , use below command :


# df -i /dev/mapper/my--vg-my--lv

As we can see in the above output that all the inodes of the filesystem (/dev/mapper/my—vg-my--lv) has been consumed that's why I am getting no space left on the device while lot free space is available.


Note : We can also get inode information of a filesystem using tune2fs command , as show below :


# tune2fs -l /dev/mapper/my--vg-my--lv


Step:2 Identify obsolete or unnecessary files on the file system.

Find all the obsolete or unnecessary files and delete them using rm command. After deleting files then we can create files and directories.


Note : There is no way to increase the number of inodes on a file system once it has been created


Scott Carr on, 2013-08-28 00:12:39
I had this problem recently on a web server. It turned out that a rogue process was trying to send 1 million + emails. Normal running systems usually don't run into the inode limit, but a hacked system or rogue process could be to blame.
nike air on, 2013-09-03 00:41:17
Good day very cool blog!! Man .. Beautiful .. Wonderful .. I will bookmark your website and take the feeds also¡KI am glad to seek out a lot of helpful information right here within the submit, we need develop extra techniques on this regard, thank
louis vuitton outlet on, 2013-08-29 05:39:50
I have been checking out some of your stories and i can claim pretty good stuff. I will definitely bookmark your blog.
Post Your Comments
Security Code  *
Enter Security Code  *
Can't read the image? click here to refresh