Trying to find the 'max files per directory' figure for an OCFS2/LVM volume

Solution 1:

Supposedly, there is no such limit. The index is supposed to handle any number of files up to the maximum available blocks, even if they are all in the root.

However, if I remember correctly, the allocation bitmap is fixed to 2^20 bytes. So a single OCFS2 filesystem can only contain 8,388,608 files.

The maximum volume size for OCFS2 is 16 TiB on 32-bit and 4 PiB on 64-bit platforms.

The maximum logical volume size for LVM2 is 16 TiB on 32-bit platforms, and 8 EiB on 64-bit platforms.