Today we had an interesting problem for a project. We were getting the message ‘disk is full’ despite having plenty of free space. Luckily my first thought was ‘inodes?’
I logged in and checked inode usage
$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/xvda1 525312 524844 468 100% / tmpfs 1007942 1102 1006840 1% /run |
This shows that all the inodes on the disk itself are full.
High inode usage is usually caused by a massive number of small files. In this case, the session files are normally stored somewhere temporary and removed when not in use. Either there could have been a bug in the code not removing them or it was a higher traffic website.
So we can see that inode is a very important aspect of Linux, so this blog will take u to a detailed journey to inodes.