NFS error Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused, connectionrefused
NFS Error
[Root @ bjs0-~] #/Etc/init. d/portreserveStart
StartingPortreserve: [ OK ]
[Root @ bjs0-~] #/Etc/init. d/nfsStart
StartingNFSServices: [ OK ]
StartingNFSQuotas:CannotRegisterService:RPC:UnableToReceive;Errno=ConnectionRefused
Rpc. rquotad:UnableToRegister(RQUOTAPROG,RQUOTAVERS,Udp ).
[FAILED]
StartingNFSMountd: [FAILED]
StartingNFSDaemon:Rpc. nfsd:WritingFdToKernelFailed:Errno111(ConnectionRefused)
Rpc. nfsd:UnableToSetAnySocketsForNfsd
[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 & rpcidmapRpcbind 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/rpcbindStart
StartingRpcbind: [ OK ]
[Root @ bjs0-~] #/Etc/init. d/rpcidmapdStart
StartingRPCIdmapd: [ OK ]
[Root @ bjs0-~] #/Etc/init. d/nfsStart
StartingNFSServices: [ OK ]
StartingNFSQuotas: [ OK ]
StartingNFSMountd: [ OK ]
StartingNFSDaemon: [ OK ]