Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2017 15:45:39 +0200
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        freebsd-stable@freebsd.org
Cc:        Mark Johnston <markj@freebsd.org>
Subject:   Re: The 11.1-RC3 can only boot and attach disks in "Safe mode", otherwise gets stuck attaching
Message-ID:  <81295bcacd7c44813de8d346c88cbb65@ijs.si>
In-Reply-To: <20170720000325.GB9198@wkstn-mjohnston.west.isilon.com>
References:  <e4acc16980fe65751325333870bf2b68@ijs.si> <20170717232434.GB21048@wkstn-mjohnston.west.isilon.com> <c8140f430fb2af93a6bc70a3df8cdadc@ijs.si> <9b3563aae75aa954d7fe31ffe25e1d29@ijs.si> <20170720000325.GB9198@wkstn-mjohnston.west.isilon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2017-07-20 02:03, Mark Johnston wrote:
> One thing to try at this point would be to disable EARLY_AP_STARTUP in
> the kernel config. That is, take a configuration with which you're able
> to reproduce the hang during boot, and remove "options
> EARLY_AP_STARTUP".

Done. And it avoids the problem altogether! Thanks.
Tried a reboot several times and it succeeds every time.

Here is all that I had in a config file for building a kernel,
i.e. I took away the 'options DDB' which also seemingly avoided
the problem:
   include GENERIC
   ident NELI
   nooptions EARLY_AP_STARTUP

> This feature has a fairly large impact on the bootup process and has
> had a few problems that manifested as hangs during boot. There was at
> least one other case where an innocuous change to the kernel
> configuration "fixed" the problem by introducing some second-order
> effect (causing kernel threads to be scheduled in a different
> order, for instance).

> Regardless of whether the suggestion above makes a difference, it would
> be helpful to see verbose dmesgs from both a clean boot and a boot that
> hangs. If disabling EARLY_AP_STARTUP helps, then we can try adding some
> assertions that will cause the system to panic when the hang occurs,
> making it easier to see what's going on.

Hmmm.
I have now saved a couple of versions of /var/run/dmesg.boot
(in boot_verbose mode) when EARLY_AP_STARTUP is disabled and
the boot is successful. However, I don't know how to capture
such log when booting hangs, as I have no serial interface
and the boot never completes. All I have is a screen photo
of the last state when a hang occurs (showing ada disks
successfully attached, followed immediately by the attempt
to attach a da disk, which hangs).

   Mark



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