From owner-freebsd-bugs Wed Oct 23 05:23:18 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA14518 for bugs-outgoing; Wed, 23 Oct 1996 05:23:18 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA14513; Wed, 23 Oct 1996 05:23:16 -0700 (PDT) Received: from sunny.bog.msu.su (sunny.bog.msu.su [158.250.20.1]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id FAA11294 ; Wed, 23 Oct 1996 05:13:59 -0700 (PDT) Received: from localhost (dima@localhost) by sunny.bog.msu.su (8.8.0/8.8.0) with SMTP id PAA28414; Wed, 23 Oct 1996 15:22:55 +0400 (????) Date: Wed, 23 Oct 1996 15:22:51 +0400 (????) From: Dmitry Khrustalev To: "Marc G. Fournier" cc: Heikki Suonsivu , Robert Eckardt , "Marc G. Fournier" , freebsd-bugs@freefall.FreeBSD.ORG Subject: Re: bin/926 In-Reply-To: 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, Marc G. Fournier wrote: > 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... Yes, mountd/nfsd depend on working name service. -Dima. > > Marc G. Fournier scrappy@ki.net > Systems Administrator @ ki.net scrappy@freebsd.org >