Changing max inode count number in ext3 filesystem in Cent OS

2

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

Chedy2149

Posted 2013-04-21T10:09:10.533

Reputation: 183

– Sepahrad Salour – 2013-04-21T10:22:25.810

I don't want to change the inode size(wich is by default 128 bytes) but the max inode count. – Chedy2149 – 2013-04-21T12:42:01.693

@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 – 2013-04-22T07:45:44.920

@DanielBeck, ah, of course, sorry not thinking straight. – terdon – 2013-04-22T13:26:57.777

Answers

3

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.

Chedy2149

Posted 2013-04-21T10:09:10.533

Reputation: 183