rpcbind/nfs失败,创建RPC监听失败,退出

rpcbind/nfs失败,创建RPC监听失败,退出

我的系统在运行部署 pxe 引导系统(软件称为 DRBL)的脚本时崩溃。现在我无法让 rpcbind、nfs 或 ypbind 正常启动。我正在追寻一系列错误,我将在这里重述这些错误。我认为问题全部围绕 rpcbind 但我不确定。我认为文件系统的某些部分一定在崩溃中损坏了,但我还没有发现问题。适用于 Centos 6、2.6.32-573.26.1.el6.x86_64。

/var/log/messages 启动时出错:

May 25 09:01:48 tebow rpcbind: rpcbind terminating on signal. Restart with     "rpcbind -w"
May 25 09:07:23 tebow rpc.statd[4122]: Version 1.2.3 starting
May 25 09:07:23 tebow rpc.statd[4122]: Initializing NSM state
May 25 09:07:23 tebow rpc.statd[4122]: failed to create RPC listeners,     exiting
May 25 09:08:09 tebow ypbind: NIS service failed to register to rpcbind.
May 25 09:08:10 tebow rpc.ypxfrd[4469]: unable to register     (YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, udp).
May 25 09:08:12 tebow rpc.yppasswdd[4743]: unable to register yppaswdd udp     service.
May 25 09:39:12 tebow ypbind: NIS service failed to register to rpcbind.
May 25 09:39:13 tebow rpc.yppasswdd[15363]: unable to register yppaswdd udp     service.
May 25 09:39:14 tebow rpc.ypxfrd[15408]: unable to register     (YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, udp).

RPC 问题:

[root@tebow drbl]# service rpcbind status
rpcbind is stopped
[root@tebow drbl]# service rpcbind start
[root@tebow drbl]# service rpcbind status
rpcbind is stopped
[root@tebow drbl]# service rpcbind restart
Stopping rpcbind:                                          [FAILED]

[root@tebow drbl]# rpcinfo -p localhost
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

[root@tebow drbl]# rpcinfo -u tebow nfs 2
rpcinfo: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)
program 100003 version 2 is not available

[root@tebow drbl]# service nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

如果有一种方法可以简单地将 rpcbind/nfs 全部重置为初始安装值,我也会很高兴,但是执行 yum 重新安装,或者 yum remove/yum install rpcbind 和 nfs 并不能缓解问题。

更新1:我更新到最新的内核“2.6.32-642.el6.x86_64”并更新到最新的rpcbind和nfs,但出现同样的错误。重新启动时,/var/log/messages 中的错误为:

May 25 11:30:11 tebow yum[7059]: Updated: rpcbind-0.2.0-12.el6.x86_64
May 25 11:39:46 tebow rpc.statd[4297]: Version 1.2.3 starting
May 25 11:39:46 tebow rpc.statd[4297]: Initializing NSM state
May 25 11:39:46 tebow rpc.statd[4297]: Failed to register (statd, 1, udp): svc_reg() err: RPC: Remote system error - Connection refused
May 25 11:39:46 tebow rpc.statd[4297]: Failed to register (statd, 1, tcp): svc_reg() err: RPC: Remote system error - Connection refused
May 25 11:39:46 tebow rpc.statd[4297]: Failed to register (statd, 1, udp6): svc_reg() err: RPC: Remote system error - Connection refused
May 25 11:39:46 tebow rpc.statd[4297]: Failed to register (statd, 1, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
May 25 11:39:46 tebow rpc.statd[4297]: failed to create RPC listeners, exiting
May 25 11:40:33 tebow ypbind: NIS service failed to register to rpcbind.
May 25 11:40:34 tebow rpc.ypxfrd[4645]: unable to register (YPXFRD_FREEBSD_PROG, YPXFRD_FREEBSD_VERS, udp).
May 25 11:41:13 tebow rpc.yppasswdd[14594]: unable to register yppaswdd udp service.

另外,在检查 nfslock 时,我收到有关 rpc.statd 的有趣错误:

[root@tebow ~]# /etc/init.d/nfslock status
rpc.statd dead but pid file exists

相关内容