On this page
No space left on device while there is space available
The problem
Sometimes the system can no longer write to a partition and reports “No Space Left On Device” even though “df -h” shows that there is enough space available.
For example, I can no longer write at all to my “/var” partition. Let’s check the space with df -h:
|
|
The solution
BUT WHY??? After some reflection and research… OF COURSE! The inodes!!!
Indeed, this can be due to a lack of inodes, which can be caused by too many small files in a directory. To check if the inodes are fine, we’ll use “df -i”:
|
|
Well, look at that! 100% inodes on /var
Now we just need to find the guilty directory and deal with it. (In my case, it was the /var/amavis/virusmail directory which was full of small compressed files.)
Last updated 13 Oct 2008, 20:43 CEST.