public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Support for netconsole as default tty/console?
@ 2014-03-29 12:22 Struan Bartlett
  2014-03-29 14:54 ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Struan Bartlett @ 2014-03-29 12:22 UTC (permalink / raw)
  To: linux-kernel

Hi

I help maintain a range of raw metal hosts, VMs, and Amazon EC2
instances that boot Linux within secure private networks. Where
possible, we connect raw metal hosts to a central logging server using
serial lines, and use the console=ttyS0 kernel command line option to
redirect not just kernel boot logs, but all boot script tty output,
via the serial line for central logging. This is particularly useful,
as when critical start-up scripts report issues to the console (as
opposed to logs files) those issues can be monitored centrally, and
diagnosed without the need to log in. In some cases, critical error
messages are only logged to the console, and not to the logs files.

Serial lines do not scale well and, on some of our VMs, and certainly
on EC2 instances, platforms are headless and may be accessed only by
our private network. As mentioned, our systems are running in known
secure private networks accessible only to sysadmins, so
authenticating access to the terminal output is not a particular
concern.

We have had a good experience of using netconsole to provide remote
real-time access to the kernel logs during Linux boot, via our syslog
server. However we have yet to find a reliable way to redirect all
console output (i.e. start-up script not just kernel logs) via the
private network to our logging server, as is possible via a serial
line. We have tried to address the issue in user-space. Patching of
boot scripts to pipe output via tee and socat has been attempted, but
it is hard to make this work comprehensively, and it appears to
interfere with standard shutdown scripts that expect all processes to
be able to be killed (without terminating standard output/error pipes)
before switching run levels.

Adding console=netconsole to the command line does not appear to have
the desired effect. I am not sure if this is because netconsole,
unlike the serial console, does not provide a tty. Can anyone advise
if this understanding is correct? If so, is there an independent
solution to this problem? Failing that, is there general interest in a
tty-capable (maybe output only) extension to the netconsole module?

Kind regards

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-04-02 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-29 12:22 Support for netconsole as default tty/console? Struan Bartlett
2014-03-29 14:54 ` Andreas Schwab
2014-03-30  8:44   ` Struan Bartlett
2014-03-30 11:39     ` Andreas Schwab
2014-03-31 10:18   ` One Thousand Gnomes
2014-03-31 10:26     ` Andreas Schwab
2014-03-31 12:32       ` One Thousand Gnomes
2014-03-31 12:34         ` Andreas Schwab
2014-04-01  8:34           ` Struan Bartlett
2014-04-02 10:26             ` Takashi Iwai
2014-03-31 18:33     ` Arkadiusz Miskiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox