NFS error StartingNFSquotas: Cannotregisterservice: RPC: Unabletoreceive; errno = Connectionrefused
NFS Error
[Root @ bjs0-~] #/Etc/init. d/portreserve start
Starting portreserve: [OK]
[Root @ bjs0-~] #/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: [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]
After version 6.0, the RH operating system does not have the portmap service to control rpc startup. As NFS and nfslock must be registered with rpc, an error will be reported if rpc is not started.
Solution: Start rpcbind & rpcidmap rpcbind is the default RPC service after version 6.0, so it must be started before nfs. If you do not start rpcidmap, The ing of user permissions is incorrect. The user permissions appear to be a string of numbers.
[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]