Linux: increase inodes on EXT4 file system

If you have a file system with a lot of small files, it it possible that you are running out of inodes.
Unfortunately it is not possible to increase the number of inodes on the fly.
In order achieve this, you will need to create a new file system, using the N option, and then copy the data to that new fs:

mkfs.ext4 /dev/vgroot/lvtest -N 300000
Share your love