From owner-freebsd-hackers Mon Jul 23 6:16:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.wgate.com (mail.wgate.com [38.219.83.4]) by hub.freebsd.org (Postfix) with ESMTP id 0003937B405; Mon, 23 Jul 2001 06:16:43 -0700 (PDT) (envelope-from msinz@wgate.com) Received: from sinz.eng.tvol.net ([10.32.2.99]) by mail.wgate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PPQ4DQ3A; Mon, 23 Jul 2001 09:16:06 -0400 Received: from wgate.com (localhost [127.0.0.1]) by sinz.eng.tvol.net (8.11.3/8.11.3) with ESMTP id f6NBckN87164; Mon, 23 Jul 2001 07:38:47 -0400 (EDT) (envelope-from msinz@wgate.com) Message-ID: <3B5C0CC6.EF1A3828@wgate.com> Date: Mon, 23 Jul 2001 07:38:46 -0400 From: Michael Sinz Organization: WorldGate Communications Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Chen Cc: Attila Nagy , freebsd-hackers@FreeBSD.ORG Subject: Re: NFS local mount References: <20010719155719.N45187-100000@scribble.fsn.hu> <3B57290F.15C009A5@wgate.com> <20010721145747.B59221@enterprise.spock.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Jonathan Chen wrote: > > 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). Ahh, but a auto-backgrounding of NFS mounts would be nice. In (albeit old) SYSV R4 which we (my old Commodore hat) did on the Amiga UNIX project, NFS mounts would try for a bit at boot time and then switch into the background if they took too long. One could specifically ask for a mount to be hard such that it would not background under any conditions. Under normal conditions, the system had its mounts up before the rest of the RC process ran. Under poor conditions, it may end up waiting for some reasonable amount of time (was it 1 or 2 minutes - I can not remember) and then background any mounts that had not yet worked. This always let the system come up to at least admin capable level, which is important when you have a headless machine somewhere. > 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. That may be good - I still think some form of timeout and then bg option would be even better... > - 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?) I see that as the timeout before bg - where it tries and tries but after some point says "hey, it still is not up, lets bg this thing" > * overload the Pass number in fstab, nobody fscks over nfs anyway. I hate that - it feels soo bad. However, it also happens to be a good place to put in a configurable timeout for bg operation. Arg.... Don't do it - must not go to the dark side. -- Michael Sinz ---- Worldgate Communications ---- msinz@wgate.com A master's secrets are only as good as the master's ability to explain them to others. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message