启动NFS报错:
[root@www]# service 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: [FAILED]
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
[FAILED]
原因:
RH系列操作系统(我用的是centos6.5版本)在6.0版本之后没有portmap服务控制rpc的启动,NFS和nfslock的启动需要向rpc进行注册,rpc不启动的话就会报错。
解决方法:
启动rpcbind和rpcidmap即可;rpcbind是6.0版本后默认的RPC服务,所以要先于nfs启动。如果不启动rpcidmap则会造成用户权限的映射错误,用户的权限看起来是一串数字。
[root@www ~]# service rpcbind start
Starting rpcbind: [ OK ]
[root@www ~]# service rpcidmapd start
Starting RPC idmapd: [ OK ]
再次启动NFS:
[root@www]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
阅读(6996) | 评论(0) | 转发(0) |