How to I get mongo to use a mounted drive on ec2? I really do not understand. I attached a volume on ec2 formatted the drive as root and start as root and yet as root I ca
For me on CentOS 6.x:
sudo chown -R mongodb:mongodb sudo service mongod restart
And I have set a custom db-path in /etc/mongod.conf.
db-path
/etc/mongod.conf