How many bytes per inodes?

前端 未结 3 979
醉话见心
醉话见心 2021-02-05 03:29

I need to create a very high number of files which are not very large (like 4kb,8kb). It\'s not possible on my computer cause it takes all inodes up to 100% and I cannot create

3条回答
  •  日久生厌
    2021-02-05 04:19

    The default bytes per inode is usually 16384, which is the default inode_ratio in /etc/mke2fs.conf (it's read prior to filesystem creation). If you're running out of inodes, you might try for example:

    mkfs.ext4 -i 8192 /dev/mapper/main-var2
    

    Another option that affects this is -T, typically -T news which further reduces it to 4096.

    Also, you can not change the number of inodes in a ext3 or ext4 filesystem without re-creating or hex-editing it. Reiser filesystems are dynamic so you'll never have an issue with them.

提交回复
热议问题