From owner-freebsd-bugs Mon Dec 11 07:02:57 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA16345 for bugs-outgoing; Mon, 11 Dec 1995 07:02:57 -0800 (PST) Received: from dragon.ti.com (dragon.ti.com [192.94.94.61]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA16335 for ; Mon, 11 Dec 1995 07:02:53 -0800 (PST) Received: from landru.mtc.ti.com ([157.170.31.46]) by dragon.ti.com (8.6.12/) with ESMTP id JAA23734; Mon, 11 Dec 1995 09:01:16 -0600 Received: from raptor.mtc.ti.com (raptor.mtc.ti.com [157.170.31.48]) by landru.mtc.ti.com (8.6.12/8.6.12) with ESMTP id JAA34452; Mon, 11 Dec 1995 09:01:47 -0600 Received: (from jasonm@localhost) by raptor.mtc.ti.com (8.6.12/8.6.12) id JAA12525; Mon, 11 Dec 1995 09:01:30 -0600 From: Jason Mechler Message-Id: <199512111501.JAA12525@raptor.mtc.ti.com> Subject: Re: nfs client bug in /etc/rc To: dima@bog.msu.su (Dmitry Khrustalev) Date: Mon, 11 Dec 1995 09:01:30 -0600 (CST) Cc: freebsd-bugs@FreeBSD.ORG In-Reply-To: from "Dmitry Khrustalev" at Dec 10, 95 05:22:22 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-bugs@FreeBSD.ORG Precedence: bulk > 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