From owner-freebsd-bugs Mon Dec 11 07:31:41 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA19651 for bugs-outgoing; Mon, 11 Dec 1995 07:31:41 -0800 (PST) Received: from sunny.bog.msu.su (dima@sunny.bog.msu.su [158.250.20.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA19634 for ; Mon, 11 Dec 1995 07:31:32 -0800 (PST) Received: (from dima@localhost) by sunny.bog.msu.su (8.6.12/8.6.12) id SAA11790; Mon, 11 Dec 1995 18:29:55 +0300 Date: Mon, 11 Dec 1995 18:29:53 +0300 (????) From: Dmitry Khrustalev To: Jason Mechler cc: freebsd-bugs@FreeBSD.ORG Subject: Re: nfs client bug in /etc/rc In-Reply-To: <199512111501.JAA12525@raptor.mtc.ti.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG Precedence: bulk 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 >