Welcome to the community @Thang_Vu.
Mounting your dbPath
from a remote host is an atypical deployment approach as you may see network-related performance issues.
However, as long as performance isn’t a concern, mongod
has exclusive read/write access to the files in the dbPath
, and the mount point supports fsync()
system calls this approach should work. The MongoDB server will refuse to start if incorrect permissions or an unsupported filesystem are detected.
The Remote Filesystems section in the MongoDB Production Notes has some suggested options if you happen to be using NFS.
What is your motivation for using a remote filesystem? Is your remote filesystem on the same physical host as the host for your MongoDB instances?
This is the same scenario as a normal MongoDB major version upgrade. You need to follow the relevant upgrade instructions (including prerequisites) in the release notes for the version you are upgrading to.
Regards,
Stennie