I selected a 100gb volume to be added to one of my droplets. One of the things I need to do with this volume is to write millions of files to it. I selected DO to format and mount the volume for me, but I quickly saw that the default number of inodes that DO creates is very low for the size of the volume.
(output from df -i)

/dev/sda       3276800    11 3276789    1% /mnt/volume_nyc1_01

I ended up increasing the number of inodes:

/dev/sda       26214400    11 26214389    1% /mnt/volume_nyc1_01

(Command I used: mkfs.ext4 -N 26214400 /dev/sda)

While this isn’t a problem per se, it would be nice that DO handles this for users automatically. Is there a reason why DO chose a relatively small inode number for a large volume?

1 comment
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!