Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Nov 2014 08:33:51 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Cc:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>, freebsd-current@freebsd.org
Subject:   Re: CURRENT: WARNING! r273914 leaves filesystems in inconsistent/corrupted condition!
Message-ID:  <1414852431.17308.210.camel@revolution.hippie.lan>
In-Reply-To: <86y4rv6lxf.fsf@nine.des.no>
References:  <20141031202045.2e02f4a3.ohartman@zedat.fu-berlin.de> <86a94c9bn3.fsf@nine.des.no> <545402C9.4070901@fgznet.ch> <201410312231.s9VMVsT1002148@pozo.com> <86fve392uy.fsf@nine.des.no> <20141101153554.77a4a7e4cef7bfe2b9486e89@dec.sakura.ne.jp> <86y4rv6lxf.fsf@nine.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2014-11-01 at 15:21 +0100, Dag-Erling Sm=F8rgrav wrote:
> Tomoaki AOKI <junchoon@dec.sakura.ne.jp> writes:
> > Dag-Erling Sm=F8rgrav <des@des.no> writes:
> > > Manfred Antar <null@pozo.com> writes:
> > > > Then for some reason /var started to being mounted mfs.  [...]  I=
f
> > > > I have varmfs=3D"NO" and cleanvar_enable=3D"NO" everything works =
fine.
> > > Not really.  The default for varmfs is AUTO, which mounts a memory
> > > file system on /var if, after mounting all "early" file systems,
> > > /var is not writeable.
> > For me, Manfred's workaround actually helped.
>=20
> It helped that particular issue, more or less by accident.  It was not
> in any way a correct fix or even a correct workaround.
>=20
> > In single user mode, actual /var (in root partition) appears as
> > before.  So there can be some mis-ordering within rc scripts.
> > (Remounting of / is delayed? Check for /var too early?)
>=20
> Exactly right; the check for a writeable /var occurred before / was
> mounted r/w, so it mounted an mfs instead.  Xin fixed this in r273919.
>=20
> > For me, [unblocking /dev/random] takes nearly 2 minutes each boot
> > after r273872.  No specific rc.conf setting for it.
>=20
> That means we're not getting enough entropy during early boot, or we're
> underestimating the amount of entropy we're getting.  We added entropy
> harvesting to device_attach() about a year ago, which in most cases
> provides enough entropy to unblock /dev/random before we even run
> init(8).
>=20
> DES

And I vaguely remember being promised that things like that would NEVER
happen, even on systems with little or no entropy available during early
startup (which describes quite nicely the embedded systems we build at
work).

-- Ian





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