由于XFS是从下面的链接推荐的MongoDB:https://docs.mongodb.com/manual/administration/production-notes/Ubuntu机器上的XFS或ext4文件系统mongodb服务器?
的MongoDB在Linux上
内核和文件系统
当生产在Linux上运行的MongoDB,你应该使用Linux内核版本2.6.36或更高版本,无论是XFS还是EXT4文件系统。如果可能的话,使用XFS,因为它通常对MongoDB更好。
对于WiredTiger存储引擎,强烈建议使用XFS以避免将EXT4与WiredTiger配合使用时可能出现的性能问题。
对于MMAPv1存储引擎,MongoDB在使用它们之前会预先分配其数据库文件,并且通常会创建大文件。因此,您应该使用XFS或EXT4文件系统。如果可能的话,使用XFS,因为它通常对MongoDB更好。
而且从Ubuntu的链接:https://askubuntu.com/questions/690360/help-me-choose-the-best-filesystem-for-my-pc
ext4文件系统被推荐用于所有的Linux操作系统,因为与它的前辈向后兼容性,您可以挂载ext2和ext3作为ext4文件系统 的Ext4
reduces file fragmentation
employs delayed allocation which helps with flash memory life as well as fragmentation.
Good choice for SSDs and HDD
XFS
Good for a media file server because of constant throughput for large files.
Most distributions require separate /boot partition because XFS and GRUB can be unpredictable
Performance with small files is not as good.
那么哪一个是更好地使用MongoDB的在Ubuntu 16.0 4 。
刚刚与XFS有一些戏剧性 - 你不能缩小xfs文件系统,所以如果你使用LVM快照进行备份,并且你已经为mongo分配了100%的VG,你就不能创建一个快照:/ – mils