From owner-freebsd-hackers Sat Jul 21 11:57:54 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from enterprise.spock.org (cm-24-29-85-81.nycap.rr.com [24.29.85.81]) by hub.freebsd.org (Postfix) with ESMTP id A9EBA37B401 for ; Sat, 21 Jul 2001 11:57:51 -0700 (PDT) (envelope-from jon@enterprise.spock.org) Received: (from jon@localhost) by enterprise.spock.org serial EF600Q3T-B7F; Sat, 21 Jul 2001 14:57:47 -0400 (EDT) (envelope-from jon)$ Date: Sat, 21 Jul 2001 14:57:47 -0400 From: Jonathan Chen To: Michael Sinz Cc: Attila Nagy , freebsd-hackers@FreeBSD.ORG Subject: Re: NFS local mount Message-ID: <20010721145747.B59221@enterprise.spock.org> References: <20010719155719.N45187-100000@scribble.fsn.hu> <3B57290F.15C009A5@wgate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: telnet/1.1x In-Reply-To: <3B57290F.15C009A5@wgate.com>; from msinz@wgate.com on Thu, Jul 19, 2001 at 02:38:07PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 19, 2001 at 02:38:07PM -0400, Michael Sinz wrote: > I had been meaning to ask if there was a reason why NFS mounts happened > before NFS servers were started but life kept getting in the way :-) If /usr was nfs mounted on a machine, then /usr needs to be mounted before nfsd was loaded, and portmap/rpcgen lives in /usr and nfsd requires one of those. Not to mention there are probably other services loaded before nfsd which may require nfs moutned directories. In general, it is a good idea to first setup vital parts of the system (like networking or mounting directories) before offering other services (such as nfsd). Possible ways to fix this includes: - do nothing, let those who run these circular nfs-mount systems fix it themselves. Perhaps recommend -o bg in the handbook or something. - setup a flag, nfs_mount_delayed="YES|NO" in rc.conf - do something in fstab which distingushes nfs mounts which can be delayed * a new nfs_delayed fstype [this screams EVILE HACK!], or * a new "delayable" option (how's that different from bg?) * overload the Pass number in fstab, nobody fscks over nfs anyway. Thoughts? -Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message