Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Ubuntu Server 10.04.4, and once in a while the server hangs (once a month) and is totally unresponsive. The tty is flooded with messages like these. The problem is that these messages are not in my log files after reboot. How to log these messages so that I can analyze them later? In the current logs I can't see anything that would tell me why this is happening.

I would also appreciate if anybody can tell from those messages what's going on. This server is a guest virtual machine. The host server is also Ubuntu server 10.04 with KVM/QEMU.

share|improve this question
add comment

2 Answers

As @coredump (very relevant user name!) pointed out, that's the tail end of a kernel panic. Doubt those are going to be logged anywhere. Maybe you can enable a crash memory dump, I've never done that, though.

Edit: For kernel crash dumps, it seems kdump is currently the way to go.

You can configure the kernel to automatically reboot on panic with echo 10 > /proc/sys/kernel/panic (reboot after 10 seconds on panic), although that obviously doesn't solve the problem. ;-)

share|improve this answer
    
That's actually a nice tip. But as you said, it doesn't solve the problem :) –  raistlin majere Jul 2 '12 at 9:26
    
I added a link to kdump, which should allow you to grab the crash dump. –  Gnarfoz Jul 2 '12 at 15:02
add comment

I don't know if you can save those messages in log. Usually that happens because the kernel broke so badly that it can't even write the messages at that state.

Take a picture/screenshot, is what I do usually.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.