Centos – impossible creating a ext4 fs with block size of 1024

centosext4inode

Im triying to build up a new server for a service that saves the data on very small files of max 1 kb on the fs.
The problem its, now we are using a block size of 4 kb and we are wasting a lot of space, so we are planning to change it to a new fs of max 1k block size.

The problem it is the partition its around 5.7 T, when i create the mkfs.ext4 command with the block size of 1024 it trown me the error

/dev/sda5: Cannot create filesystem with requested number of in odes

But if i change to 2048 its works perfect.

I tried to run with th 64bit flag, the e2fsprogs are on the last version, 1.42 something. Also i tried to set the in ode size from 1024 to 16365 and i had no luck.

Im running out of ideas, switching to another FS could be an option but i saw a lot of benchmarks and XFS or ZFS doesn't perform good as ext4 on small files 🙁

Any ideas?

Running centos 2.6.32-431.20.3.el6.x86_64

Best Answer

Finally we went for XFS, it has not this problem with the block size and now the FS its happily running with 1 K Block size.

Related Topic