In the lab “Deploy a Shareded Cluster,” I’m attempting to add the shard1 cluster. Since the instructions state that only the mongos configuration file needs editing, I’m assuming the config files already have this line added:
sharding: clusterRole: shardsvr
So, I log into the replica set via
mongo admin --port 27001 -u "m103-admin" -p "m103-pass" --authenticationDatabase "admin" switch to the admin db, and shut down the server via
But, I can’t figure out how to restart the nodes. I’ve tried
mongod -f node2.conf and
mongod -f shard1/node2.conf but I keep getting a “No such file or directory” message. How do I restart these nodes successfully?