NFS错误Starting NFS quotas: Cannot register service: RPC: Unable to receive;errno=Connection refused
NFS报错一例:
[root@Server /]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
[FAILED]
Starting NFS daemon:
分析问题:
RHEL系操作系统在6.0版本之后没有portmap服务控制rpc的启动,由于NFS和nfslock的启动需要向rpc进行注册,rpc不启动的话就会报错。启动rpcbind&rpcidmap rpcbind是6.0版本后默认的RPC服务,所以要先于nfs启动。如果不启动rpcidmap则会造成用户权限的映射错误。
解决办法:
[root@bjs0- ~]# yum -y install rpcbind*
[root@bjs0- ~]# /etc/init.d/rpcbind start
Starting rpcbind: [ OK ]
[root@bjs0- ~]# /etc/init.d/rpcidmapd start
Starting RPC idmapd: [ OK ]
[root@bjs0- ~]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
转载于:https://blog.51cto.com/heyangguang/1892801