Skip to contentSkip to conversation

change kernel logging (console=ttyS0) without reboot?

DISCUSSION Tomasz Chmielewski 1 participant 1 message Jun 17, 2011

lore
Share & tools
lore
#0 lore raw

Generally, most production systems don't like to be restarted unnecessarily.

I was wondering if it's possible to change kernel logging without a restart?

Say, I connected a serial cable to the server, but kernel was not booted with anything like console=ttyS0,19200 in its command line. So anything produced by the kernel will not show up on ttyS0.

Can I still somehow make the kernel to log to ttyS0, without restarting it (I can make syslog do it, but let's assume the syslog crashed and I'm mostly interested in catching a kernel oops/panic etc.)?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org