NFS mounts recently automatically got un-mounted. When I checked, the NFS service status it was shown to be running.

[root@hsluasrepo]# service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 4083) is running...
nfsd (pid 4148 4147 4146 4145 4144 4143 4142 4141) is running...
rpc.rquotad (pid 4079) is running...

[root@hsluasrepo]# service rpcbind status
rpcbind (pid  4203) is running...

[root@hsluasrepo common]# rpcinfo -p 10.80.3.154
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper

But showmount output was showing an error.

[root@hsluasrepo ]# showmount -e 10.80.3.154
clnt_create: RPC: Program not registered

After restarting the NFS service, showmount output displayed the NFS server's export list.

Can anyone tell me the root cause of this issue and How to avoid this problem in future?

/var/log/messages:

Jul 7 03:22:01 hsluasrepo rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1188" x-info="rsyslog.com"] rsyslogd was HUPed
Jul 7 03:22:02 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date.
Jul 8 03:22:01 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date.
Jul 8 16:36:55 hsluasrepo kernel: nfsd: last server has exited, flushing export cache
Jul 8 16:36:55 hsluasrepo rpc.mountd[4083]: Caught signal 15, un-registering and exiting.
Jul 8 16:36:55 hsluasrepo rpc.mountd[24463]: Version 1.2.3 starting
Jul 8 16:36:55 hsluasrepo kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Jul 8 16:36:55 hsluasrepo kernel: NFSD: starting 90-second grace period
Jul 8 16:37:32 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.208:1004 for /common/PROD (/common/PROD)
Jul 8 16:38:09 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.181:869 for /common/PROD (/common/PROD) 
Jul 8 16:38:43 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.180:825 for /common/PROD (/common/PROD)
Jul 8 16:39:12 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.176:688 for /common/PROD (/common/PROD)
  • I would check my dmesg log and /var/log/syslog or /var/log/messages for signs that the NFS service threw any errors. Also the disks that the NFS share are comprised of, are they in a RAID of any sort? If a member of the RAID failed the share may have gone into an unusable state. – slm Jul 9 '13 at 7:07
  • check if nfs deamon is running on nfs server where the shares are exported – user179149 Jul 11 '16 at 10:23
  • Since it's really a too nonsensical error message I requested clarification at bugzilla.kernel.org/show_bug.cgi?id=152151. Maybe we'll know one day what is actually meant by it. – Karl Richter Aug 13 '16 at 10:26

you have to:

root@10.80.3.154]$ service nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

root@10.80.3.154]$ service nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]

root@10.80.3.154]$ chkconfig nfs on
  • 1
    service status nfs? – Dylan Dec 10 '15 at 16:24

I faced this issue on RHEL6. Its strange but restart rpcbind service before the nfs service and error gone. I following this article Configure NFS Server step by step in RHEL6 It works for me but still i want to know to reason behind it. Anyone else have the reason behind ?

  • 3
    If you put a question together with you an answer, few people are going to see it. Take the last sentence out and make it into a new question (refer to this Q&A as a solution, but not an explanation). – Anthon Jan 8 '14 at 8:28
  • @rohit - That indeed solved the problem. RPCBIND service restart before NFS service. – anup Dec 1 '17 at 7:02

I had this issue and I resolved it using a simple approach to nfs server and client configuration it involves like 10 steps.

  1. install nfs-utils and check to make sure it is installed (yum install -y nfs-utils / rpm -qa | grep nfs-utils)
  2. vi /etc/sysconfig/nfs (uncomment and change the port numbers of the following.. STATD_PORT=, MOUNTD_PORT=, LOCKD_UDPPORT=, LOCKED_TCPPORT={you can use 4000-4004 or any of your choice}
  3. system-config-firewall-tui {Open the port numbers specified in 2 above and also 111 (rpc) and 2049 (nfs)}
  4. iptables save
  5. vi /etc/export (provide the directory to share and where to share it to and the options eg. /share *(ro,async)
  6. exportfs -rv
  7. service nfs start
  8. ssh root@clientserver. eg. ssh root@192.168.2.15
  9. showmount -e {master ip} eg. showmount -e 192.168.2.31
  10. mount -t nfs {master ip}:/{shared dir from master} /{mount point} .. eg. mount -t nfs 192.168.2.31:/share /mnt

Finally, do a df -h.

This is just my little contribution; I may not have taken all the necessary steps, but this may help.

i've recently configured NFS in RHEL on a virtual machine and the same problem appear when i set showmount -e localhost command. After trying to restart services several times, i`ve just poweroff my virtual machine and poweron again and the problem was solved.

Regards!!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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