Date: Tue, 16 Sep 1997 10:59:40 +0930 From: Greg Lehey <grog@lemis.com> To: Brian Somers <brian@awfulhak.org> Cc: freebsd-questions@FreeBSD.ORG, FreeBSD Hackers <hackers@FreeBSD.ORG> Subject: Re: nfs startup Message-ID: <19970916105940.15713@lemis.com> In-Reply-To: <199709042231.XAA26182@awfulhak.demon.co.uk>; from Brian Somers on Thu, Sep 04, 1997 at 11:31:48PM %2B0100 References: <199709042231.XAA26182@awfulhak.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970916105940.15713>
