Each OS offers a choice of filesystem types. Some filesystem types are older and less performant. However, they are not good candidates to run MongoDB. There are two main reasons for this: the need to support legacy applications and legacy files. The other reason is that OS vendors want to give their customers more choice.
The recommended filesystem types are summarized in this table:
OS | Filesystem | Notes |
Linux kernel 2.6.25+ | XFS | This is the preferred filesystem. |
Linux kernel 2.6.28+ | EXT4 | The next best choice for MongoDB on Linux. |
Windows Server 2019, 2016, 2012 R2 | ReFS | Resilient File System (ReFS). |
For information on currently supported OS versions, please have a look at this documentation reference: https://docs.mongodb.com/manual/installation/#supported-platforms.
Let's now look at other server considerations.