From owner-freebsd-bugs Tue Oct 22 13:49:17 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA01380 for bugs-outgoing; Tue, 22 Oct 1996 13:49:17 -0700 (PDT) Received: from quagmire.ki.net (root@quagmire.ki.net [205.150.102.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA01364; Tue, 22 Oct 1996 13:49:12 -0700 (PDT) Received: from localhost (scrappy@localhost) by quagmire.ki.net (8.7.6/8.7.5) with SMTP id QAA00549; Tue, 22 Oct 1996 16:48:21 -0400 (EDT) Date: Tue, 22 Oct 1996 16:48:21 -0400 (EDT) From: "Marc G. Fournier" To: Heikki Suonsivu cc: Robert Eckardt , "Marc G. Fournier" , freebsd-bugs@freefall.freebsd.org Subject: Re: bin/926 In-Reply-To: <199610221624.TAA05589@katiska.clinet.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 22 Oct 1996, Heikki Suonsivu wrote: > > > Synopsis: Mounting nfs disks before starting mountd: Chicken or Egg problem > The PR was about two machines mounting each others disks. If both panic or > are rebooted at the same time, they both lock up waiting for each other > coming up. > > I have moved mountd startup in /etc/rc like this: > > # $rwhod is imported from /etc/sysconfig; > # if $rwhod is set to YES, rwhod is run. > if [ "X${rwhod}" = X"YES" ]; then > echo -n ' rwhod'; rwhod > fi > > if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then > echo -n ' mountd' > if [ "X${pcnfsd}" = X"YES" ]; then > mountd -n > else > mountd > fi > echo -n ' nfsd'; nfsd -u -t 4 > fi > > if [ "X${nfs_client}" = X"YES" ]; then > echo -n ' nfsiod'; nfsiod -n 4 > fi > > mount -a -t nfs >/dev/null 2>&1 > > if [ "X${amdflags}" != X"NO" ]; then > echo -n ' amd'; amd ${amdflags} > fi > Is there any reacon why the above order is a bad idea? Both mountd/nfsd are in /sbin, which I don't believe *should* ever be nfs mount'd, and therefore should have any reason for needing to wait for the nfs drives to be mounted... Marc G. Fournier scrappy@ki.net Systems Administrator @ ki.net scrappy@freebsd.org