LWN.net Logo

Brown: A Nasty md/raid bug

Brown: A Nasty md/raid bug

Posted Jun 19, 2012 11:14 UTC (Tue) by hummassa (subscriber, #307)
In reply to: Brown: A Nasty md/raid bug by epa
Parent article: Brown: A Nasty md/raid bug

One can press-and-hold the power button; usually it has the intended effect of just powering off the device... I don't know any hardware where it does not work. A "sync; poweroff -f" should work too.


(Log in to post comments)

Magic SysRq Keys

Posted Jun 19, 2012 11:55 UTC (Tue) by k3ninho (subscriber, #50375) [Link]

Please don't do the following on your machine without expecting it to sync the disks (wait for it to complete) and immediately reboot:
alt-sysrq-s; alt-sysrq-b.

Source: http://en.wikipedia.org/wiki/Magic_SysRq_key

K3n.

Magic SysRq Keys

Posted Jun 19, 2012 12:27 UTC (Tue) by hummassa (subscriber, #307) [Link]

I usually do ctrl-alt-f1, sysrq-6 (to see the messages), sysrq-s (wait for the all sync message to pop up), sysrq-u (so no processes try to write to the disks again after the last sync), another sysrq-s (should pop the message quickly this time), sysrq-o, wait one minute or so, turn the machine on again (the last part is kind of superstitious but I feel all warm and fuzzy inside knowing that if the power fails, I have seen the machine boot from zero last time, so it "ought" to work).

Magic SysRq Keys

Posted Jun 20, 2012 7:31 UTC (Wed) by jezuch (subscriber, #52988) [Link]

> I usually do ctrl-alt-f1, sysrq-6 (to see the messages), sysrq-s (wait for the all sync message to pop up) (...)

I saw a mnemonic for this sequence somewhere:
Raising Skinny Elephants Is [So] Utterly Boring

(The sysrq-s part I saw recommended after sysrq-r or after sysrq-i so, just for safety, I do it in both places ;) )

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds