Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 1996 09:48:53 +0300 (EET DST)
From:      Heikki Suonsivu <hsu@clinet.fi>
To:        Poul-Henning Kamp <phk@critter.tfs.com>
Cc:        Heikki Suonsivu <hsu@clinet.fi>, dg@Root.COM, "Marc G. Fournier" <scrappy@freefall.freebsd.org>, freebsd-bugs@freefall.freebsd.org
Subject:   Re: bin/926 
Message-ID:  <199610230648.JAA19608@katiska.clinet.fi>
In-Reply-To: <6323.846012810@critter.tfs.com>
References:  <199610221739.UAA13123@katiska.clinet.fi> <6323.846012810@critter.tfs.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Poul-Henning Kamp writes:
 > >Please read the whole text; the problem is when two computers cross-mount
 > >each other's disks.  When they are rebooted at the same time and they
 > >arrive to mount -a -t nfs they both block there to wait until other party
 > >gets its mountd running, which of course never happens as mountd is started
 > >after mount -a -t nfs.
 > 
 > It is ancient wisdom that you mount soft+background in that scenario,
 > or wait forever after a power-failure :-)

Starting mountd before mounting nfs disks corrects this problem and as far
as I know does not have any disadvantages.

bg mounts won't help, as daemons started in /etc/rc.local might need the
disks (apache, for example, fails to start if it cannot find log files to
write to, or document root is missing).  It is possible to kludge around
this but it would be better to fix it, particularly when it is this easy
and does not effect anyone who is not doing cross-mounting (other than nfs
comes up slightly faster after a crash/reboot, which is a plus).

-- 
Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND, hsu@clinet.fi
mobile +358-40-5519679 work +358-0-43542270 fax -4555276



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610230648.JAA19608>