Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Assuming that I use ext3 filesystem in Cent OS: Can I increase the number of Free Inodes in the filesystem? If Yes how? When I run tune2fs -l /dev/sda1 it got these inodes statistics:

Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super
Inode count:              26104
Free inodes:              26069
Inodes per group:         2008
Inode blocks per group:   251
First inode:              11
Inode size:               128
Journal inode:            8
Journal backup:           inode blocks
share|improve this question
    
Did you search ?! superuser.com/questions/158031/… –  Sepahrad Salour Apr 21 '13 at 10:22
    
I don't want to change the inode size(wich is by default 128 bytes) but the max inode count. –  Chedy2149 Apr 21 '13 at 12:42
    
@terdon ext filesystems are limited in size and number of files. This is about the latter. Even if you have terabytes of free disk space, if you're out of inodes, no new files can be created. –  Daniel Beck Apr 22 '13 at 7:45
    
@DanielBeck, ah, of course, sorry not thinking straight. –  terdon Apr 22 '13 at 13:26

1 Answer 1

up vote 2 down vote accepted

In order to increase the number of Inode in ext3 filesystem we need to remake the filesystem using mke2fs with the -i option we can set the byte-per-inode ratio which will affect the number of inodes. Otherwise the -N option allows to specify the exact number of inodes.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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