Re: NFS Service not starting (83 Views)
Reply
Occasional Contributor
JulianHaines
Posts: 8
Registered: ‎03-05-2013
Message 1 of 4 (116 Views)

NFS Service not starting

Hi,

 

For some reason NFS stopped working yesturday and when I checked the NFS service was disabled, when I try and start it hangs for five mins and then stops.

 

I have looked at all the standard files but cant see what is wrong, below is part of my syslog.log file for today which shows a error about BIND.

 

Mar 25 08:49:44 wmbldrt301 inetd[18381]: ftp/tcp: Connection from ukwmdc01data02 (10.1.9.202) at Tue Mar 25 08:49:44 2014
Mar 25 08:49:44 wmbldrt301 sshd[18379]: Did not receive identification string from 10.1.9.202
Mar 25 08:49:44 wmbldrt301 ftpd[18381]: Data port : 20
Mar 25 08:49:44 wmbldrt301 ftpd[18381]: FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_40380) Fri Dec  4 10:04:38 GMT 2009) ready.
Mar 25 08:49:44 wmbldrt301 ftpd[18381]: lost connection to ukwmdc01data02.eu.tbs.thebodyshop.com [10.1.9.202]
Mar 25 08:49:44 wmbldrt301 ftpd[18381]: FTP session closed
Mar 25 08:49:46 wmbldrt301 inetd[18384]: tftp/udp: Connection from ukwmdc01data02 (10.1.9.202) at Tue Mar 25 08:49:46 2014
Mar 25 08:59:46 wmbldrt301 tftpd[18384]: Timeout (no requests in 10 minutes)
Mar 25 09:46:16 wmbldrt301 sshd[461]: SSH: Server;Ltype: Version;Remote: 10.10.82.27-60427;Protocol: 2.0;Client: PuTTY_Release_0.63
Mar 25 09:46:16 wmbldrt301 sshd[461]: SSH: Server;Ltype: Kex;Remote: 10.10.82.27-60427;Enc: aes256-ctr;MAC: hmac-sha2-256;Comp: none [preau
th]
Mar 25 09:46:19 wmbldrt301 sshd[461]: SSH: Server;Ltype: Authname;Remote: 10.10.82.27-60427;Name: julianh [preauth]
Mar 25 09:46:21 wmbldrt301 sshd[461]: Accepted password for julianh from 10.10.82.27 port 60427 ssh2
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1457]: Setting STREAMS-HEAD high water value to 131072.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: nfsd do_one mpctl succeeded: ncpus = 2.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: nfsd do_one pmap 2
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1461]: Cannot get address for transport tcp host \1 service nfsd
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1461]: Cannot establish NFS service over tcp: transport setup problem.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: nfsd do_one pmap 3
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: nfsd do_one bind 0
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: Cannot establish NFS service over udp: bind problem.
Attempting older NFSD binding method.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: nfsd do_one bind 1
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1465]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 09:49:52 wmbldrt301 /usr/sbin/nfsd[1462]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4304]: Setting STREAMS-HEAD high water value to 131072.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: nfsd do_one mpctl succeeded: ncpus = 2.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: nfsd do_one pmap 2
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: nfsd do_one pmap 3
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4311]: nfsd do_one bind 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4311]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4311]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: nfsd do_one bind 1
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4311]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4308]: Cannot get address for transport tcp host \1 service nfsd
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4308]: Cannot establish NFS service over tcp: transport setup problem.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4311]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 09:59:50 wmbldrt301 /usr/sbin/nfsd[4309]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 10:05:23 wmbldrt301 sshd[5660]: SSH: Server;Ltype: Version;Remote: 10.10.82.27-60631;Protocol: 2.0;Client: PuTTY_Release_0.63
Mar 25 10:05:23 wmbldrt301 sshd[5660]: SSH: Server;Ltype: Kex;Remote: 10.10.82.27-60631;Enc: aes256-ctr;MAC: hmac-sha2-256;Comp: none [prea
uth]
Mar 25 10:05:27 wmbldrt301 sshd[5660]: SSH: Server;Ltype: Authname;Remote: 10.10.82.27-60631;Name: julianh [preauth]
Mar 25 10:05:28 wmbldrt301 sshd[5660]: Accepted password for julianh from 10.10.82.27 port 60631 ssh2
Mar 25 10:14:25 wmbldrt301 inetd[7608]: ftp/tcp: Connection from ukl13175 (10.10.82.27) at Tue Mar 25 10:14:25 2014
Mar 25 10:14:25 wmbldrt301 ftpd[7608]: Data port : 20
Mar 25 10:14:25 wmbldrt301 ftpd[7608]: FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_40380) Fri Dec  4 10:04:38 GMT 2009) ready.
Mar 25 10:14:26 wmbldrt301 ftpd[7608]: FTP LOGIN FROM ukl13175.eu.tbs.thebodyshop.com [10.10.82.27], julianh
Mar 25 10:18:44 wmbldrt301 automountd[19668]: server bsi01da1 not responding
Mar 25 10:18:44 wmbldrt301 automountd[19668]: server bsi01da1 not responding
Mar 25 10:25:51 wmbldrt301 inetd[9811]: ftp/tcp: Connection from ukl13175 (10.10.82.27) at Tue Mar 25 10:25:51 2014
Mar 25 10:25:51 wmbldrt301 ftpd[9811]: Data port : 20
Mar 25 10:25:51 wmbldrt301 ftpd[9811]: FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_40380) Fri Dec  4 10:04:38 GMT 2009) ready.
Mar 25 10:25:51 wmbldrt301 ftpd[9811]: FTP LOGIN FROM ukl13175.eu.tbs.thebodyshop.com [10.10.82.27], julianh
Mar 25 10:26:08 wmbldrt301 inetd[9980]: ftp/tcp: Connection from ukl13175 (10.10.82.27) at Tue Mar 25 10:26:08 2014
Mar 25 10:25:51 wmbldrt301 ftpd[9811]: FTP LOGIN FROM ukl13175.eu.tbs.thebodyshop.com [10.10.82.27], julianh
Mar 25 10:26:08 wmbldrt301 inetd[9980]: ftp/tcp: Connection from ukl13175 (10.10.82.27) at Tue Mar 25 10:26:08 2014
Mar 25 10:26:08 wmbldrt301 ftpd[9980]: Data port : 20
Mar 25 10:26:08 wmbldrt301 ftpd[9980]: FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_40380) Fri Dec  4 10:04:38 GMT 2009) ready.
Mar 25 10:26:08 wmbldrt301 ftpd[9980]: FTP LOGIN FROM ukl13175.eu.tbs.thebodyshop.com [10.10.82.27], julianh
Mar 25 10:27:09 wmbldrt301 ftpd[9980]: FTP session closed
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10907]: Setting STREAMS-HEAD high water value to 131072.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: nfsd do_one mpctl succeeded: ncpus = 2.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: nfsd do_one pmap 2
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: nfsd do_one pmap 3
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10913]: nfsd do_one bind 0
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10913]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10913]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method
.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: nfsd do_one bind 1
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: Cannot establish NFS service over udp: bind problem. Attempting older NFSD binding method
.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10913]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10911]: Cannot get address for transport tcp host \1 service nfsd
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10911]: Cannot establish NFS service over tcp: transport setup problem.
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10912]: netdir_getbyname (transport udp, host/serv \1/nfsd), Error 0
Mar 25 10:29:16 wmbldrt301 /usr/sbin/nfsd[10913]: Cannot establish NFS service over udp: bind problem. Exiting.
Mar 25 10:29:38 wmbldrt301 ftpd[7608]: User julianh timed out after 900 seconds at Tue Mar 25 10:29:38 2014
Mar 25 10:29:38 wmbldrt301 ftpd[7608]: FTP session closed

 

 

 

 

 

Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,720
Registered: ‎06-21-2000
Message 2 of 4 (106 Views)

Re: NFS Service not starting

Check your /etc/services file and see if the following 2 lines are there.  If not, add them and try again.

 

nfsd 2049/udp # NFS remote file system 
nfsd 2049/tcp # NFS remote file system 

 

 

Please use plain text.
Occasional Contributor
JulianHaines
Posts: 8
Registered: ‎03-05-2013
Message 3 of 4 (100 Views)

Re: NFS Service not starting

 

 

Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 4 (83 Views)

Re: NFS Service not starting

Just for the sake of completeness: the error message does not refer to BIND the DNS server, but to the bind(2) system call.

 

bind(2) is used to assign a particular IP address and/or port number to a network socket before starting to use it. It is usually used when setting up a network service to receive incoming connections, but can be used for outgoing connections too, if needed.

 

Just before the errors you noticed, nfsd makes a netdir_getbyname(3N) call, and the parameters indicate it is trying to look up the port number of nfsd from /etc/services. Apparently "I looked but there was none" is not exactly an error for netdir_getbyname(3N).

 

In the HP-UX circles, there lives a misguided idea of disabling network services by editing the /etc/services file.

In the HP-UX 10.20 era, that used to be the only way to make syslogd stop listening on the network for incoming syslog messages. There might have been a security vulnerability to which this was the accepted workaround.

 

Apparently someone extrapolated from that, and guessed that it was the standard way to disable services on HP-UX. No, it's not. It is only applicable in one specific case, with an ancient syslog daemon that opens a network socket by default and has no proper option to disable that behavior. The right way to disable a standard network service on HP-UX is by either commenting it out in /etc/inetd.conf or setting an appropriate variable to 0 in the service's configuration file in /etc/rc.config.d/. With third-party add-on software, all bets are off, but unless the add-on comes with a kernel module, there is usually a better way.

 

(Please try and debunk this misguided idea of removing things from /etc/services whenever you find it.)

 

MK
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation