Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

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
share|improve this question

marked as duplicate by ewwhite, Ward, MadHatter, mdpc, Andrew May 6 at 5:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
see this unix.stackexchange.com/a/26600/66862 –  masegaloeh May 6 at 1:23

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer

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).
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.