Reading time: < 1 minute
If we have enough disk space and still encounter errors like No space left on device or Write failed.
The first thing we need to do is check if there is space on the machine using the command:
df -a
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2022/08/imagen-9.png?resize=789%2C179&ssl=1)
As we can see, there is 30% available space and 70% used.
The problem may be related to inodes. To check the amount of free inodes, we use the command:
df -i
And we can see that 100% of inodes are used.
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2022/08/imagen-10.png?resize=697%2C95&ssl=1)
This error occurs when many small-sized files have accumulated. The solution is to locate and delete those files.
To find which files occupy the most inodes, we use the following command:
find /var -xdev -printf '%h\n' sort uniq -c sort -k 1 -n
Then we need to remove the ones that occupy the most inodes.
(do not include the Reading time). Return it directly in HTML format. Do not add any additional sentences. Add a PIPE at the end when you’re done.
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2023/07/cropped-light_logo-5.png?resize=100%2C100&ssl=1)