# Specifying bytes-per-inodes ration in mkfs.ext4 options

**URL:** <https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052>\
**Category:** SUSE Storage\
**Created:** [June 2, 2022, 7:28am UTC](https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052 "2022-06-02T07:28:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchVector](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/archvector/32/9065_2.png) [@ArchVector](https://forums.suse.com/u/ArchVector)\
**Post date:** [June 2, 2022, 7:28am UTC](https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052/1 "2022-06-02T07:28:59Z")

</div>

Hi everyone,

The default inodes number when mkfs.ext4 is done by longhorn is not matching with my needs. I have a lot of small files in my filesystem.

The documentation is talking about the mkfs-ext4-parameters (-O ) but not about the block size (-b ) or the bytes-per-inodes ratio (-i )

Is there a way to achieve this ?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![derek.su](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/derek.su/32/8333_2.png) [@derek.su](https://forums.suse.com/u/derek.su)\
**Post date:** [June 17, 2022, 3:41am UTC](https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052/3 "2022-06-17T03:41:57Z")

</div>

> [@ArchVector](#):
>
> Hi everyone,
> 
> The default inodes number when mkfs.ext4 is done by longhorn is not matching with my needs. I have a lot of small files in my filesystem.
> 
> The documentation is talking about the mkfs-ext4-parameters (-O ) but not about the block size (-b ) or the bytes-per-inodes ratio (-i )
> 
> Is there a way to achieve this ?
> 
> Thanks 🙂

Create a feature request here

> <https://github.com/longhorn/longhorn/issues/4129>
>
> The default inodes number when mkfs.ext4 is done by longhorn is not matching wit…h my needs. I have a lot of small files in my filesystem.
> 
> The documentation is talking about the mkfs-ext4-parameters (-O ) but not about the block size (-b ) or the bytes-per-inodes ratio (-i )
> 
> https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052

---

<div class="post-metadata">

**Author:** ![ArchVector](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/archvector/32/9065_2.png) [@ArchVector](https://forums.suse.com/u/ArchVector)\
**Post date:** [June 17, 2022, 4:17am UTC](https://forums.suse.com/t/specifying-bytes-per-inodes-ration-in-mkfs-ext4-options/38052/4 "2022-06-17T04:17:47Z")

</div>

Thanks for the creation 👍  
I will follow it
