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:

Jonathon Reinhart
  • 446
  • 1
  • 8
  • 25

1 Answers1

13

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.

kofemann
  • 4,308
  • 1
  • 21
  • 27
  • 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**. – Jonathon Reinhart May 12 '20 at 01: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 '20 at 06: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. – Jonathon Reinhart May 19 '20 at 11:49
  • Ok. I have updated the answer. Let me know if more corrections are required. – kofemann May 19 '20 at 12:07