每当我尝试启动NFS挂载时,我都会得到:
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Version 1.3.2 starting
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Flags: TI-RPC
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Running as root. chown /var/lib/nfs to choose different user
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: failed to create RPC listeners, exiting
Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: rpc-statd.service: control process exited, code=exited status=1
Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: Unit rpc-statd.service entered failed state.
Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: rpc-statd.service failed.
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Version 1.3.2 starting
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Flags: TI-RPC
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Running as root. chown /var/lib/nfs to choose different user
Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: failed to create RPC listeners, exiting
我试图chown
/var/lib/nfs
到rpc
,刚刚给我的错误减去“以root身份运行”行:
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: Version 1.3.2 starting
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: Flags: TI-RPC
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: failed to create RPC listeners, exiting
Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: rpc-statd.service: control process exited, code=exited status=1
Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: Unit rpc-statd.service entered failed state.
Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: rpc-statd.service failed.
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: Version 1.3.2 starting
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: Flags: TI-RPC
Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: failed to create RPC listeners, exiting
我试图重新安装nfs-utils:
$ pacman -R nfs-utils
$ rm -r /var/lib/nfs
$ pacman -S nfs-utils
然后,在root用户的许可下重新创建目录。我什至不确定此错误是否与rpc.statd
无法启动有关。
我也尝试rpc.statd -F --no-notify
在shell中运行,但是仅以代码1退出。没有错误,没有任何错误。手册页中没有记录详细或调试标志。
我还尝试清空/etc/exports
,并且系统是最新的(pacman -Syu
)。我什么都没做,只是几个小时前就停止工作了。
注意使用mount -o nolock /data
作品;因此,其余的NFS / rpc守护程序似乎都很好。
systemctl start rpc-statd
在Arch linux系统上遇到了完全相同的问题(无法安装NFS3卷,失败并显示“无法创建RPC侦听器,退出”消息。)。安装,启用和启动rpcbind服务可以解决该问题。我想知道这是否以前是作为套接字而不是服务来工作的,但是某些地方出了问题。不幸的是,我在/ usr / lib / systemd目录中是否没有先验检查rpcbind。*文件。