0

Is it possible to use NFS over Linux network namespaces?

Does it even make sense? The only related thing in kernel source I found is is commit 7e3fcf61abde nfs: don't share mounts between network namespaces which does not say much to me.

0

Your question tackles two different namespaces, which are separate and unrelated at the kernel level as such ... until we throw in kernel NFS. Filesystem mounts are covered by mount namespace. My (limited) understanding now is that if you mount an NFS volume via network, processes joined to this mount namespace and joining/switching network namespaces make NFS mounts difficult: the same NFS mount could be connected to different NFS servers with the same IP address, depending on which process using this mount namespace is using which network namespace. This not only sounds messy, it will be. That's the reason why Linux drops NFS mounts for such processes.

So, in principle, mount and network namespaces are independent. However, things like NFS impose certain dependencies or restrictions. Please note that a user-space NFS would get bitten in such situations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.