MongoDB以“失败”;fdatasync:无效参数";关于WSL

MongoDB以“失败”;fdatasync:无效参数";关于WSL,mongodb,windows-subsystem-for-linux,Mongodb,Windows Subsystem For Linux,我正在WSL上设置MongoDB实例。当我尝试运行mongod--dbpath/path/to/db时,出现以下错误: E STORAGE [initandlisten] WiredTiger error (22) [1585749233:781695][842:0x7f8f57ee09c0], connection: __posix_sync, 108: /path/to/db: directory-sync: fdatasync: Invalid argument Raw: [158574

我正在WSL上设置MongoDB实例。当我尝试运行
mongod--dbpath/path/to/db
时,出现以下错误:

E STORAGE  [initandlisten] WiredTiger error (22) [1585749233:781695][842:0x7f8f57ee09c0], connection: __posix_sync, 108: /path/to/db: directory-sync: fdatasync: Invalid argument Raw: [1585749233:781695][842:0x7f8f57ee09c0], connection: __posix_sync, 108: /path/to/db: directory-sync: fdatasync: Invalid argument
MongoDB在指定的目录中创建文件,如果我再试一次,就会得到

E STORAGE  [initandlisten] WiredTiger error (17) [1585750028:645900][846:0x7f3f0e0309c0], connection: __posix_open_file, 715: /path/to/db/WiredTiger.wt: handle-open: open: File exists Raw: [1585750028:645900][846:0x7f3f0e0309c0], connection: __posix_open_file, 715: /path/to/db/WiredTiger.wt: handle-open: open: File exists
有人能解释这个问题吗


MongoDB v4.0.3

MongoDB对目录上fsync()的支持。这是否意味着我不能以任何方式在wsl上运行它?Microsoft表示,至少部分支持fsync,因此可能会有一些版本或文件系统的神奇组合可以工作(以任何方式共享的驱动器都不太可能工作)。您也可以尝试在windows上运行mongod。MongoDB支持目录上的fsync()。这是否意味着我不能以任何方式在wsl上运行它?Microsoft表示,至少部分支持fsync,因此可能会有一些版本或文件系统的神奇组合可以工作(以任何方式共享的驱动器都不太可能工作)。您也可以尝试在windows上运行mongod。