From owner-freebsd-questions Mon Sep 15 18:29:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA10924 for questions-outgoing; Mon, 15 Sep 1997 18:29:58 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA10904; Mon, 15 Sep 1997 18:29:53 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id KAA17557; Tue, 16 Sep 1997 10:59:40 +0930 (CST) Message-ID: <19970916105940.15713@lemis.com> Date: Tue, 16 Sep 1997 10:59:40 +0930 From: Greg Lehey To: Brian Somers Cc: freebsd-questions@FreeBSD.ORG, FreeBSD Hackers Subject: Re: nfs startup References: <199709042231.XAA26182@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709042231.XAA26182@awfulhak.demon.co.uk>; from Brian Somers on Thu, Sep 04, 1997 at 11:31:48PM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Sep 04, 1997 at 11:31:48PM +0100, Brian Somers wrote: > This has to be a dumb question, but I can't fathom it. > > /etc/rc sources /etc/rc.network and then runs network_pass1. > Directly afterwards, it runs ``mount -a -t nfs''. > > However, network_pass3 (invoked much later) starts nfsiod along with > the other nfs stuff. You don't need nfsiod for mounting, but you do need to resolve the names. If you're running a name server, I don't think it's reasonable to expect an /etc/hosts entry for each system you're mounting NFS file systems from. Unfortunately, named doesn't get started until network_pass2, so this can't work in a name server environment. Here's a suggested patch: ---------------------------------------------------------------------- --- rc.old Tue May 20 13:06:10 1997 +++ rc Tue Sep 16 10:47:28 1997 @@ -121,8 +121,6 @@ network_pass1 fi -mount -a -t nfs >/dev/null 2>&1 - # Whack the pty perms back into shape. chmod 666 /dev/tty[pqrsPQRS]* @@ -172,6 +170,8 @@ if [ -n "$network_pass1_done" ]; then network_pass2 fi + +mount -a -t nfs & # Check the quotas (must be after ypbind if using NIS) if [ "X${check_quotas}" = X"YES" ]; then ---------------------------------------------------------------------- The & after the mount command is to let it continue to try to mount file systems on systems which are not currently up; otherwise system startup will hang at this point. As you see, I also agree with the sentiment that the messages should be seen. Greg