Mlaunch --single

when I amdoing mlaunch --single it is getting failed with the below error.
2019-02-21T04:01:30.963+0000 E STORAGE [initandlisten] WiredTiger error (22) [1550721690:963824][2628:0x7f2148bc1d00], connection: /shared/data/data/db/: directory-sync: fdatasync: Invalid argument
2019-02-21T04:01:30.965+0000 I - [initandlisten] Fatal Assertion 28561 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 264
2019-02-21T04:01:30.965+0000 I - [initandlisten]

could you help me with that.

@ venkata_praveen_62627

Well, I’m going to make a couple of assumptions here: first, that you’re doing this in the VM; second, that you have correctly removed any old data files from the default data directory (/home/vagrant/data/db) and third either that the log file (/home/vagrant/data/mongod.log) doesn’t exist or that there’s no additional information there.

On those assumptions, I would recommend that you stick to the full command format, and use mlaunch init --single rather than try a short-cut. That works just fine in my VM. Good luck.

thank you. Now it is working.

You should not store the data files in /shared folder.
In other words, if you’re going to run
mlaunch --single
, run a
cd /home/vagrant
first. However, you should be fine running
mlaunch init --replicaset --sharded 4 --wiredTigerCacheSizeGB 0.5 --dir /data/m312SH --port 30000 --host localhost --oplogSize 10
from /shared because mongod will store the data in /data/m312SH.

The full error in the log would look like this:
2019-03-16T02:50:37.560+0000 E STORAGE [initandlisten] WiredTiger error (22) [1552704637:560505][28079:0x7fd049294d00], connection: /shared/data/db/: directory-sync: fdatasync: Invalid argument
2019-03-16T02:50:37.566+0000 I - [initandlisten] Fatal Assertion 28561 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 264
2019-03-16T02:50:37.567+0000 I - [initandlisten]