1

Unable to share NFS to clients. Throwing error when i execute showmount -a on the NFS server.

/root # showmount -a
clnt_create: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)

/root # rpcinfo -p
No remote programs registered.

/root # ps -ef | grep notify
rpcuser   4467     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   4477     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4509     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4516     1  0 03:14 ?        00:00:00 rpc.statd --no-notify
rpcuser   4650     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   4677     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4689     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4698     1  0 03:16 ?        00:00:00 rpc.statd --no-notify
rpcuser   4836     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   4859     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4867     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   4878     1  0 03:18 ?        00:00:00 rpc.statd --no-notify
rpcuser   5023     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   5037     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   5060     1  0 03:20 ?        00:00:00 rpc.statd --no-notify
rpcuser   5092     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   5211     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   5216     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
rpcuser   5227     1  0 Aug29 ?        00:00:00 rpc.statd --no-notify
rpcuser   5277     1  0 Aug30 ?        00:00:00 rpc.statd --no-notify
2

Most likely yourrpcbind service has not started :

sudo service rpcbind start
  • Issue with ports. Ports were not mapped to rpc bind in /etc/services. # cat /etc/services | grep rpc sunrpc 111/tcp portmapper rpcbind # RPC 4.0 portmapper TCP sunrpc 111/udp portmapper rpcbind # RPC 4.0 portmapper UDP – Pandu Aug 31 '17 at 16:05
1

Got the fix and it worked for my issue. check firewall rules, selinux status, port.

Stop the NFS services as below sequence

# service nfslock stop
# service nfs stop
# service rpcbind stop

Firewall rules:

Add required NFS ports to IPtables or disable IPtables

Selinux:

Disable selinux or add selinux context to the NFS files .

Port:

Below ports should be opened and mapped in /etc/services.

/root # cat /etc/services | grep rpc
sunrpc          111/tcp         portmapper rpcbind      # RPC 4.0 portmapper TCP
sunrpc          111/udp         portmapper rpcbind      # RPC 4.0 portmapper UDP

finally, start the service in below sequence

# service rpcbind start
# service nfs start
# service nfslock start
  • Actually ports were not mapped to rpcbind in /etc/services – Pandu Aug 31 '17 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.