大网数据广告活动
服务器运维问答

Is rpcbind needed for an NFS client?

· 52CE 我爱测

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. T…

问题原文

原帖链接 · Jonathon Reinhart · CC BY-SA 4.0

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:

已采纳解答

原帖链接 · kofemann · CC BY-SA 4.0

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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-05-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。