Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 1995 09:01:30 -0600 (CST)
From:      Jason Mechler <jasonm@raptor.mtc.ti.com>
To:        dima@bog.msu.su (Dmitry Khrustalev)
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: nfs client bug in /etc/rc
Message-ID:  <199512111501.JAA12525@raptor.mtc.ti.com>
In-Reply-To: <Pine.SOL.3.91.951210171721.4631B-100000@sunny.bog.msu.su> from "Dmitry Khrustalev" at Dec 10, 95 05:22:22 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sat, 9 Dec 1995, Jason Mechler wrote:
> 
> > 
> > I discovered an error in /etc/rc relating to mounting nfs filesystems
> > at boot time.  The line
> > 
> >         mount -a -t nfs >/dev/null 2>&1
> > 
> > comes immediately after /etc/netstart is run.  Unfortunately, this is
> > before the nfsiod daemon is started, so if there are any nfs
> > filesystems in /etc/fstab, the systems hang for a while and then
> > finally gets an RPC Portmapper error when trying to do the nfs mounts.
> > 
> 
> Nfsiod is not necessary for client nfs to work. Your problem is located 
> elsewhere.
> 
> 	-Dima.
> 
> > It's certainly easy to fix.  You just have to move the above line into
> > the nfs_client section as below.
> > 
> >         if [ "X${nfs_client}" = X"YES" ]; then
> >             echo -n ' nfsiod';      nfsiod -n 4
> > new-->      mount -a -t nfs >/dev/null 2>&1
> >         fi

OK, OK.  So I got the specific daemon wrong.  The overall problem still
exists.  I think I have pinpointed the location however...  
"mount -a -t nfs" should go anywhere in /etc/rc after the following
section.  

    # Portmapper should always be run, to provide RPC services for inetd.
    if [ -x /usr/sbin/portmap ]; then
        echo -n ' portmap';     portmap
    fi  

In the /etc/rc installed with FreeBSD 2.1.0, it doesn't.  The nfs
mounts are attempted before portmap is started.


-------------
Jason Mechler
jasonm@ccwf.cc.utexas.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512111501.JAA12525>