SUMMARY: nfsd errors on /var/adm/messages

From: Angel Ortiz (cherub@lava.net)
Date: Tue Apr 04 2000 - 22:37:53 CDT


Sun Admins;

My many thanks to Casper Dik and Jim Blevins.

I went back and looked (per Casper Dik's reply) at the nsswitch.conf file
and this time I noticed that the services line had and entry:

services: nisplus <NOTFOUND=RETURN> files

I replaced it with

services: files (am using /etc/services)

Rebooted and BINGO!

I had tried to stop/restart nfsd with same results.
I had also looked at these files: /etc/services, /etc/inetd.conf,
/etc/nsswitch.conf and had missed it.

----------------------------------------
From: Casper Dik <Casper.Dik@holland.sun.com>
Subject: Re: nfsd errors on /var/adm/messages
Date: Tue, 04 Apr 2000 22:34:15 +0200

The solaris FAQ says:

5.40) I can't run nfs: netdir_getbyname failure, /dev/udp: bind problem

    For some reason the nfs service has disappeared from your
    /etc/services file, NIS map or NIS+ table. You need to
    have an entry like:

    nfsd 2049/udp nfs # NFS server daemon (clts)
    nfsd 2049/tcp nfs # NFS server daemon (cots)

    If you use NIS+, you must make sure that the NIS+ entry is readable
    for the machine executing nfsd.

    If you used your SunOS 4.x services file, that would explain it:
    SunOS 4.x doesn't have an entry for nfsd in /etc/services,
    Solaris 2.x requires one.

    This will usually not happen until you upgrade to Solaris 2.4 or
    a later revision. Solaris 2.3 and earlier would always consult
    /etc/services, regardless of what nsswitch.conf said.
    /etc/services does contain the right NFS entries.

    Solaris 2.4 and earlier don't have an entry for NFS over tcp, so
    this error is also likely to occur on 2.5+ NFS servers that are
    NIS/NIS+ clients of 2.4- servers. In 2.5 the error message will look
    like:

    nfsd: Cannot get address for transport udp host \1 service nfs
    nfsd: Cannot establish NFS service over /dev/udp: transport setup problem.
    nfsd: Cannot get address for transport tcp host \1 service nfs
    nfsd: Cannot establish NFS service over /dev/tcp: transport setup problem.

    --- end of excerpt from the FAQ

The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>

------------
From: Jim Blevins <jblevins@nlc.com>
Sender: root@smtp.nlc.com
Date: Tue, 04 Apr 2000 13:27:44 -0700
Organization: Next Level Communications
Subject: Re: nfsd errors on /var/adm/messages

Try stopping and restarting nfsd.

/etc/init.d/nfs.server stop

then start it again.

-jim

------Original question------
At 09:41 AM 4/4/2000 -1000, you wrote:
>Sun Admins;
>
>I am receiving the below messages (/var/adm/messages) on a Sparc 20 running
>Solaris 2.5.1.
>
>/usr/lib/nfs/nfsd[268]: netdir_getbyname(transport udp, host/serv \1/nfs),
>No such file or directory
>/usr/lib/nfs/nfsd[268]: Cannot establish NFS service over /dev/upd:
>transport setup problem
>/usr/lib/nfs/nfsd[268]: netdir_getbyname(transport tcp, host/serv \1/nfs),
>Resource temporarily unavailable
>/usr/lib/nfs/nfsd[268]: Cannot establish NFS service over /dev/tcp:
>transport setup problem
>/usr/lib/nfs/nfsd[268]: Could not start NFS service for any protocol.
>Exiting.
>
>Any assistance or suggestions on above error message is appriciated.
>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:05 CDT