Discussion Locked

Server running out of Inodes

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

I have a RedHat 7.3 server running squid proxy server.

Every few months my proxy server keeps running out of Indoes as the cache grows.
When I do a df -i, the IFree field is 0.

How do I permanently increase the number of Inodes on the server?

Thanks

9 replies

by bcbvale

I'm not sure about linux but in solaris you can specify the number of inodes using the -i option with the newfs command. Of course this means that you have to do this when creating the file system and cannot change it without destroying your data.

by paulo.sedrez

The number of inodes are stablished by filesystem when it is created. You must recreate the filesystem to change the number of inodes. Use '-i 1024' (1k per inode) to create a filesystem with enough inodes.

Of course, I am assuming you create a partition dedicated to squid cache. If you did not, I sugest you do, and mount it with 'noatime' option - this will speed up things.

If you have little space to create a new partition for squid cache, use parted to resize some of your partitions and make room for a new one.

--Sedrez

This discussion is closed to new replies.