I have a pipeline on my server which creates a lot of hard links to big files. today I realized it fails and shows this error:
ln: failed to create hard link to '/path/to/a/file': Too many links
The filesystem is ext4 and dir_nlink is enabled:
> sudo dumpe2fs -h /dev/sdb1 | grep "Filesystem features"
dumpe2fs 1.44.1 (24-Mar-2018)
Filesystem features: has_journal ext_attr dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
What is the problem and how can I solve it? any help would be greatly appreciated.