Answer the question
In order to leave comments, you need to log in
How to make MongoDB data folder on nfs?
Good day,
there is a folder connected via nfs as standard in /etc/fstab with a line like
10.1.1.30:/mnt/pool/DBASE /mnt/share3 nfs rw,relatime,user,bg,hard,nolock,noatime,nointr 0 0
sudo mongod --dbpath /mnt/share3 --bind_ip 127.0.0.1,10.1.1.32
sudo service mongod start
sudo service mongod status
""Location28596: Unable to determine status of lock file in the data directory /mnt/share3/: boost::filesystem::status: Permission denied: \"/mnt/share3/mongod.lock\""
Answer the question
In order to leave comments, you need to log in
If you start mongod as a user, that is,
sudo mongod --dbpath /mnt/share3 --bind_ip 127.0.0.1,10.1.1.32
10.1.1.30: /mnt/pool/DBASE /mnt/share3 nfs rw,relatime,user,bg,hard,nolock,noatime,nointr 0 0
10.1.1.30:/mnt/pool/DBASE /mnt/share3 nfs rw,relatime,uid=mongouser,gid=mongouser,bg,hard,nolock,noatime,nointr 0 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question