LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2007, 07:42 AM   #1
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
Help with SysRq


Hello all. I have a system that freezes-up randomly so I'm trying to dump info using sysrq and writing its output to a file using "script". Hopefully this is a sound strategy. I'm using alt-sysrq-t, alt-sysrq-w, alt-sysrq-m, and the output looks like what I'd expect, but it seems like whatever I type after that reboots my computer. I get the HELP prompt for sysrq, but (at least on my terminal) I don't see a way to just exit (I think it's "stuck" in sysrq mode).

I'm trying to experiment on my own box (not a production box) but the key combo does nothing. I've written "1" to /proc/sys/kernel/sysrq, but I have a feeling it's not compiled into the kernel. This is RHEL 4. Is there a way to dump everything compiled into my running kernel to see if SYSRQ was compiled in?

Thanks for any help.
 
Old 01-03-2007, 08:28 AM   #2
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Original Poster
Rep: Reputation: 30
Just an update:
1) it seems output from SysRq was written automatically to /var/log/messages, so I don't need to run "script", which is nice
2) I also updated /etc/sysctl.conf for kernel.sysrq=1, however I still get no output from my workstation (unlike the production box)

Also, LogWatch reports kernel errors on the production box from when I ran sysrq-t, sysrq-w, sysrq-m, however I don't think this is true, as it seems to have simply flagged the output from sysrq. Are the below true errors or just normal sysrq output?

--------------------- Kernel Begin ------------------------

WARNING: Kernel Errors Present
[<f8842dea>] scsi_error_handler+0x0/0x15...: 2 Time(s)
[<f8843106>] .text.lock.scsi_error+0x2d/0x33 [scsi_...: 2 Time(s)

2 Time(s): sibling
1 Time(s): 00000000 00000000 c7075d60 00000000 00001888 40c7ab81 0000001a c031ea80
1 Time(s): 00000000 00000000 c7075d60 00000000 00008018 85725cfd 00000013 c031ea80
1 Time(s): 00000000 00000000 c7075d60 00000000 0000b705 2ba847be 00000024 c031ea80
1 Time(s): 00000000 00000000 c707dd60 00000001 00002644 61a621fa 00000011 f7f110b0
1 Time(s): 00000000 00000000 c707dd60 00000001 00007816 4c0cdd1f 00000024 f7f110b0
1 Time(s): 00000000 00000000 c707dd60 00000001 00008476 445e73bf 00000024 f7f110b0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
missing file??? /proc/sys/kernel/sysrq bad_gui Linux - General 4 08-18-2006 10:37 PM
magic sysrq with minicom angelo1234 Linux - General 0 08-16-2005 10:07 PM
How to disable Ctrl and Alt keys? (and maybe sysrq) bigperk420 Slackware 13 12-07-2004 05:53 PM
Uart serial port + SysRq flook Linux - Hardware 0 11-30-2004 08:57 AM
Magic sysrq key + Framebuffer console jspenguin Linux - Software 0 04-14-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration