9

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:

1 Answer 1

12
+50

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.

4
  • 1
    I'm sorry, but this still does not answer my question. "rpc-statd service is used to manage locks" -- this is running on the server, right? I am asking if rpcbind needs to be running on the client. May 12, 2020 at 1:32
  • 1
    The 'rpc-statd' runs on the client and used by nfs servers to send clients lock GRANT information or reboot notification.
    – kofemann
    May 12, 2020 at 6:37
  • Thank you. If you care to update your answer with that information (and ideally a reference to some further reading) I'd be happy to award the bounty to you. May 19, 2020 at 11:49
  • Ok. I have updated the answer. Let me know if more corrections are required.
    – kofemann
    May 19, 2020 at 12:07

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.