Hello all, I try to set the number of inodes to create in the filesystem during the installalation with the pressed file. The same way that mkfs: mkfs -t ext4 -N iNumberOfINodes /dev/XdY ?
Community (debian-user) indicates me this information: >>From there I found this file for bullseye: >> https://preseed.debian.net/debian-preseed/bullseye/amd64-main-full.txt >>which contains this stanza which appears to match your description: >>### Description: Typical usage of this partition: >># Please specify how the file system is going to be used, so that >># optimal file system parameters can be chosen for that use. >># . >># standard = standard parameters, >># news = one inode per 4KB block, >># largefile = one inode per megabyte, >># largefile4 = one inode per 4 megabytes. >># d-i partman-basicfilesystems/specify_usage select <choice> >># Possible choices: ${CHOICES} >> >>Which is not what the OP requested, but maybe it helps. It is the only >>occurrence of "inode" in that file. I did not check the other two files >>that contain the "contrib" and "non-free" data. I tryed to adapt like this with this option: **specify_usage{ }** -------------------------------------------------------------------------------------------------------------- 1024 1024 2048 ext4 \ lv_name{ var+log } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/log } \ options/nodev{ nodev } \ options/nosuid{ nosuid } \ options/noexec{ noexec } \ $lvmok{ } \ . \ 1024 1024 2048 ext4 \ lv_name{ var+loga } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/loga } \ options/nodev{ nodev } \ options/nosuid{ nosuid } \ options/noexec{ noexec } \ specify_usage{ news } \ $lvmok{ } \ . \ 1024 1024 2048 ext4 \ lv_name{ var+logb } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/logb } \ options/nodev{ nodev } \ options/nosuid{ nosuid } \ options/noexec{ noexec } \ specify_usage{ large } \ $lvmok{ } \ . \ 1024 1024 2048 ext4 \ lv_name{ var+logc } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/logc } \ options/nodev{ nodev } \ options/nosuid{ nosuid } \ options/noexec{ noexec } \ specify_usage{ large4 } \ $lvmok{ } \ . \ 1024 1024 2048 ext4 \ lv_name{ var+logd } \ method{ lvm } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var/logd } \ options/nodev{ nodev } \ options/nosuid{ nosuid } \ options/noexec{ noexec } \ specify_usage{ standard } \ $lvmok{ } \ . \ -------------------------------------------------------------------------------------------------------------- But this change nothing after verfication the bytes per inode is 16k in all case. (<bytes-per-inode> = <block count> x <block size> / <inode count>) -------------------------------------------------------------------------------------------------------------- root@debian:~# dumpe2fs /dev/mapper/rootvg-var+log | grep -E "(Block count|Block size|Inode count)" dumpe2fs 1.46.2 (28-Feb-2021) Inode count: 62464 Block count: 249856 Block size: 4096 root@debian:~# dumpe2fs /dev/mapper/rootvg-var+loga | grep -E "(Block count|Block size|Inode count)" dumpe2fs 1.46.2 (28-Feb-2021) Inode count: 62464 Block count: 249856 Block size: 4096 root@debian:~# dumpe2fs /dev/mapper/rootvg-var+logb | grep -E "(Block count|Block size|Inode count)" dumpe2fs 1.46.2 (28-Feb-2021) Inode count: 62464 Block count: 249856 Block size: 4096 root@debian:~# dumpe2fs /dev/mapper/rootvg-var+logc | grep -E "(Block count|Block size|Inode count)" dumpe2fs 1.46.2 (28-Feb-2021) Inode count: 62464 Block count: 249856 Block size: 4096 root@debian:~# dumpe2fs /dev/mapper/rootvg-var+logd | grep -E "(Block count|Block size|Inode count)" dumpe2fs 1.46.2 (28-Feb-2021) Inode count: 62464 Block count: 249856 Block size: 4096 root@debian:~# -------------------------------------------------------------------------------------------------------------- Tryed also with ----------------------------------------------------------------------------------------------------------- d-i partman-basicfilesystems/specify_usage select news ---------------------------------------------------------------------------------------------------------- And ugly workaround will be to update inode_ration into /etc/mke2fs.conf with sed via ------------------------------------------------------------------------------------------------------------------------- d-i partman/early_command string \ sed -i 's/inode_ratio = 16384/inode_ratio = 4096/g' /etc/mke2fs.conf ------------------------------------------------------------------------------------------------------------------------ but it apply to all FS. /etc/mke2fs.con also indicates the values: -------------------- .... news = { inode_ratio = 4096 } largefile = { inode_ratio = 1048576 blocksize = -1 } largefile4 = { inode_ratio = 4194304 blocksize = -1 } ..... Do you know how to use the option *specify_usage* to select the options news for a file system? Regards, Thierry