Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 1995 18:29:53 +0300 (????)
From:      Dmitry Khrustalev <dima@bog.msu.su>
To:        Jason Mechler <jasonm@raptor.mtc.ti.com>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: nfs client bug in /etc/rc
Message-ID:  <Pine.SOL.3.91.951211182458.11771A-100000@sunny.bog.msu.su>
In-Reply-To: <199512111501.JAA12525@raptor.mtc.ti.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 11 Dec 1995, Jason Mechler wrote:

> > 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.

And this is rigth, since portmap lives in usr and it can be nfs mounted. 
It is not needed anyway. What error are you getting from mount?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.951211182458.11771A-100000>