Date: Tue, 22 Oct 1996 19:24:03 +0300 (EET DST) From: Heikki Suonsivu <hsu@clinet.fi> To: Robert Eckardt <roberte@mep.ruhr-uni-bochum.de> Cc: scrappy@freefall.freebsd.org (Marc G. Fournier), hsu@clinet.fi, freebsd-bugs@freefall.freebsd.org Subject: Re: bin/926 Message-ID: <199610221624.TAA05589@katiska.clinet.fi> 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>
index | next in thread | previous in thread | raw e-mail
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 <hsu@clinet.fi>
> >
> > 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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610221624.TAA05589>
