![](https://seccdn.libravatar.org/avatar/99bbf0e2807d0c1a81e021665cc9e09f.jpg?s=120&d=mm&r=g)
On Monday 25 September 2006 14:15, Gaël Lams wrote:
I'm running out of inodes on one of my partitions (IUsed in df -i = 100%).
It's my understanding that this limit can be increased only when you format the partition (at least on ext2/3).
That's correct. The number of inodes is calculated automatically at format-time based off of the number of bytes/inode you specify when formatting (or the default size, of course). For example, mkfs.ext2 uses the [-i bytes-per-inode] option and allows you to specify the number of inodes with -N (but i've never seen -N actually used). To change the number of inodes, you need to reformat. (We won't consider LVM-like options here, since that apparently doesn't apply to you.)
If I recreate the partition with a higher inode limit, do I also need to increase /proc/sys/fs/file-max and /proc/sys/fs/inode-nr?
You shouldn't have to touch the /proc/sys files. Those are generated by the kernel and its drivers. Any changes you make will be lost at reboot, anyway, because /proc is an in-memory filesystem.
Should it be the case, is it still true that inodes limit should be 3/4 times the file-max limit? Because on that 9.3 server, they are the same.
The number of inodes is calculated automatically, as mentioned above. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts