Getting an Ubuntu 12.04 machine to give you boot messagesJuly 16, 2012
As part of a slow move towards Ubuntu 12.04, we recently worked on the problem that our 12.04 servers were pretty much not showing boot messages and in particular they weren't showing any kernel messages. Not showing boot messages is a big issue for servers because if anything ever stalls or goes wrong in the boot process you wind up basically up the creek without boot messages; you have a hung server and no clue what's wrong. (Since I've gone through this with a 12.04 server that was hanging during boot, I can tell you that various bits of magic SysRq are basically no help these days.) The main changes we need to make are to
We've also changed (I understand why a desktop install wants to hide the Grub menu by default, but this is the wrong behavior for a server.) Remember that after you change (This is where I could insert a rant about the huge mess of complexity that is Grub2. I do not consider having a programming language for Grub menus to exactly be progress, especially not when they become opaque and have to be machine generated.) The remaining change is to
Unfortunately the result of all of these changes isn't exactly
perfect. We get kernel messages and now avoid wiping out what messages
Upstart prints about starting user-level servers, but the 12.04 Upstart
configuration doesn't print very many messages about that. I believe
that only the remaining (There are ways to coax Upstart into logging messages about services, but I haven't found one that causes it to print 'starting <blah>' and "done starting <blah>' on the console during boot.) Things that don't work to produce more verbose boot messagesI've experimented with a number of options and arguments that seem like they should help but in practice don't. All of these are supplied on the kernel command line:
(For reasons kind of described in my entry on the kernel command
line, Sidebar: what caused our Ubuntu 12.04 machines to hang on bootIt turns out that our 12.04 servers will stall during boot if a
filesystem listed in As best as I can determine, this behavior is not directly caused
by anything in No, we are not happy about this. This might be vaguely excusable for
regular filesystems; it's inexcusable for |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |