From owner-freebsd-bugs Tue Oct 22 09:24:21 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA08720 for bugs-outgoing; Tue, 22 Oct 1996 09:24:21 -0700 (PDT) Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA08709; Tue, 22 Oct 1996 09:24:13 -0700 (PDT) Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.7.6/8.6.4) with ESMTP id SAA27311; Tue, 22 Oct 1996 18:24:03 +0200 (EET) Received: (hsu@localhost) by katiska.clinet.fi (8.7.6/8.6.4) id TAA05589; Tue, 22 Oct 1996 19:24:03 +0300 (EET DST) Date: Tue, 22 Oct 1996 19:24:03 +0300 (EET DST) Message-Id: <199610221624.TAA05589@katiska.clinet.fi> From: Heikki Suonsivu To: Robert Eckardt Cc: scrappy@freefall.freebsd.org (Marc G. Fournier), hsu@clinet.fi, freebsd-bugs@freefall.freebsd.org Subject: Re: bin/926 In-Reply-To: <199610221203.OAA13249@ghost.mep.ruhr-uni-bochum.de> References: <199610220842.BAA12410@freefall.freebsd.org> <199610221203.OAA13249@ghost.mep.ruhr-uni-bochum.de> Organization: Clinet Ltd, Espoo, Finland Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Robert Eckardt writes: > > Synopsis: Mounting nfs disks before starting mountd: Chicken or Egg problem > > > > State-Changed-From-To: feedback-open > > State-Changed-By: scrappy > > State-Changed-When: Tue Oct 22 01:42:07 PDT 1996 > > State-Changed-Why: > > > > Problem Still Exists > > > > -- > > > > From: Heikki Suonsivu > > > > This is still valid problem; mountd is started in /etc/rc later than mount > > -a -t nfs is run (checked current from two days ago). > > This is no conflict. mountd is needed for the NFS-Server. > Mounting NFS-FSs is done by the NFS-Client, which needs only nfsiod. 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 -- Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND, hsu@clinet.fi mobile +358-40-5519679 work +358-0-43542270 fax -4555276