unable to start nfs daemon on a server.

Latest response

Hi All,

We can not start NFS service even we run " service nfs start" .
At a glance, the command goes well but no nfs proc is running on a server.

[root]# service nfs start

[root]# <--- no message so far so I guess the command had no error.

When we stop the service, we got massage as follows,

[root]# service nfs stop
Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: [FAILED]
Shutting down NFS quotas: [FAILED]

[root]# service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

[root]# rpcinfo -p 127.0.0.1
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper


We already tried to reboot server but it did not solve the problem.

[additional info]
We checked "pstree" and found that some rpc.* proc are running on normal server comparred with the server.

rpc.idmapd
rpc.mountd
rpc.rquotad
rpc.statd

We want to start NFS service on the server.
Please give us advice.

Regads,
Daisuke

Responses

If you ever need to start the NFS server manually, the proper invocation sequence is to start the rpcbind (portmap in case of RHEL5.x) first, followed by NFS, followed by the NFS lock manager, that is:

/etc/rc.d/init.d/rpcbind start /etc/rc.d/init.d/nfs start /etc/rc.d/init.d/nfslock start

Conversely, to shut down the server, reverse the start procedure:

/etc/rc.d/init.d/nfslock stop /etc/rc.d/init.d/nfs stop /etc/rc.d/init.d/rpcbind stop

That is what appears to me at first look of the issue. So, start rpcbind service and then start nfs service.

Hi. Sadashiva-san,

Thanks for your advice. We can't find "rpcbind" on the server so we got error msg when we execute "/etc/rc.d/init.d/rpcbind start" command as follows. In addition, we have another server which is running NFS service also doesn't have "rpcbind" in the directory.

== [root]# /etc/rc.d/init.d/rpcbind start -bash: /etc/rc.d/init.d/rpcbind: No such file or directory <---- [root]# cd /etc/rc.d/init.d [root]# ll rpc -rwxr-xr-x 1 root root 2848 Jun 22 2011 rpcgssd -rwxr-xr-x 1 root root 2301 Jun 22 2011 rpcidmapd -rwxr-xr-x 1 root root 2852 Jun 22 2011 rpcsvcgssd

[root]# pwd /etc/init.d [root]# ll nfs -rwxr-xr-x 1 root root 5217 Jun 22 2011 nfs -rwxr-xr-x 1 root root 3701 Jun 22 2011 nfslock [root]# ll portmap -rwxr-xr-x 1 root root 1877 Jul 13 2006 portmap [root]# ll rpc -rwxr-xr-x 1 root root 2848 Jun 22 2011 rpcgssd -rwxr-xr-x 1 root root 2301 Jun 22 2011 rpcidmapd -rwxr-xr-x 1 root root 2852 Jun 22 2011 rpcsvcgssd

I need to investigate further more ...

Regards, Daisuke

I could see that you got "portmap" service over there. Is this RHEL5.x? I If so, then please start the services in this sequence:

/etc/init.d/portmap start
/etc/init.d/nfs start
/etc/init.d/nfslock start

Hi. Sadashiva-san,

Unfortunately, it's also didn't work.

I have support contract so I've submitted case to RH support in parallel.

Thanks for your kind support.

Regars,

Daisuke

ーーーーーーーーー

[root]# date

Mon Mar 12 17:25:54 JST 2018

[root]# /etc/init.d/portmap start Starting portmap: [ OK ]

[root]# /etc/init.d/nfs start

[root]# /etc/init.d/nfslock start [root]#

[root]# /etc/init.d/portmap status portmap (pid 32016) is running...

[root]# /etc/init.d/nfs status rpc.mountd is stopped nfsd is stopped rpc.rquotad is stopped

[root]# /etc/init.d/nfslock status rpc.statd is stopped [root]# [root]#

[root]# tail /var/log/messages

Mar 12 15:19:48 mdcccap03 portmap[1138]: cannot bind udp: Address already in use

Mar 12 16:27:27 mdcccap03 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team

Mar 12 17:27:46 mdcccap03 portmap[1909]: cannot bind udp: Address already in use

Ok, that is good that you raised case. Please update this thread once you get a resolution.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.