Free inodes in Squid3

glitchlist Blog Leave a Comment

if you use a large cache maybe you can experience squid process crash because you running-out of inodes.

Index node or inode is a table that contain meta data of all achived files in a linux filesystem such as file size, owner and group membership, permissions, date of last modification or creation and so on.

to troubleshooting type:

glitchlistlx@3n:~$ df -i
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
udev             922471    528   921943    1% /dev
tmpfs            930373    805   929568    1% /run
/dev/sda1      15630336 320220 15310116    3% /
tmpfs            930373     92   930281    1% /dev/shm
tmpfs            930373      5   930368    1% /run/lock
tmpfs            930373     18   930355    1% /sys/fs/cgroup
tmpfs            930373     44   930329    1% /run/user/1000

if the IUse% is 100% process like squid that writes on file system may have problems.

to search anormal use of inodes run the script and check the directories with an high use of inodes:

for inode in /*; do echo $inode; find $inode |wc -l; done

another trick: if you use SARG reporting on same squid machine it is likely that the “IUse 100%” is caused by SARG. So delete/move sarg-reports and back online with squid!

.glitchlist crew

Leave a Reply

Your email address will not be published. Required fields are marked *