4

How can I increase the maximum amount of inodes available on a dedicated server running CentOS 6.5 and ext4? The websites we are hosting create and use millions of small files. We are already hitting the limit, and had to remove several sites to get it down to 92% inode usage.

Filesystem             Inodes    IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
                      3276800    58531 3218269    2% /
tmpfs                 3074543        1 3074542    1% /dev/shm
/dev/sda1             128016       44  127972    1% /boot
/dev/mapper/VolGroup-lv_home
                      56967168 52223688 4743480   92% /home
0

2 Answers 2

10

No, you can't; the number of inodes for ext(2,3,4) is set at creation time, and can't be altered after the fact. Your only option is to back-up, format (using different options), and restore your partition.

3

You don't have many options for your inode exhaustion other than restructuring the directories... or a complete reformat of the data partition. My suggestion, now that you understand the workload and demands of this environment, is to refactor. That includes:

  • Maybe creating several filesystems/mountpoints to split up the website data (shard).
  • Pruning/purging unneeded data.
  • Acquiring more space.
  • Using a filesystem that isn't as susceptible to these inode limitations (XFS).
1

Not the answer you're looking for? Browse other questions tagged .