NFS – Is Rpcbind Needed for an NFS Client?

linuxnfsrpcbind

I understand that rpcbind runs on NFS servers to respond to port-mapping requests from clients.

Is the rpcbind daemon needed on an NFS client?

I'm surprised that it is so difficult to find a definitive answer to this question. That might be because there's no reason to suspect that it is required.

The reason I'm asking is because I found that rpcbind is running on a number of Debian servers that are not NFS servers. And surprisingly, the nfs-common package directly depends on rpcbind, even though:

Use this package on any machine that uses NFS, either as client or server.

Related Serverfault questions:

Best Answer

The NFS client uses rpcbind service on server to discover the port number used by nfsd.

More over, for clients of nfs v2 and v3, an additional rpc-statd service is used to manage locks. As rpc-statd runs on the client, a rpcbind should run on the client to let nfs servers to discover on which port rpc-statd listens.

Thus, for client that uses nfs v4, the rpcbind, rpc-statd and rpc-statd-notify services can be disabled. This can required modifying some .service files.

IOW - The rpcbind service is needed by nfs clients that use v2 and v3, as it required for file locking, and can be disabled for nfs v4 clients, as locking is a part of the NFSv4.0 protocol.

Related Topic