{"id":283,"date":"2007-09-16T02:46:20","date_gmt":"2007-09-15T23:46:20","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=283"},"modified":"2007-09-16T02:55:08","modified_gmt":"2007-09-15T23:55:08","slug":"force-remote-reboot-via-sysrq","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2007\/09\/16\/force-remote-reboot-via-sysrq\/","title":{"rendered":"Force remote reboot via sysrq"},"content":{"rendered":"<p>I&#8217;ve just had a kernel crash on a remote machine. Unfortunately kjournald died and I couldn&#8217;t write anything to the \/ (root) partition. I could ssh to the machine but I couldn&#8217;t start nor stop any services. I couldn&#8217;t call any shutdown scripts either. My only hope was to force, somehow, the machine to hard reboot remotely, but how ? The solution was to use the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Magic_SysRq_key\">magic sysrq<\/a> button (or trigger if you like)!<\/p>\n<p>Since my kernel already supported sysrq and it was enabled,  I only had to:<br \/>\n<code>echo b &gt; \/proc\/sysrq-trigger<\/code><br \/>\nand the machine rebooted just as if I had pressed the reset switch on the box.<\/p>\n<p>The good news is that after one minute the machine was up and running, the bad news is that I have to find what caused the kernel crash. It&#8217;s the third time it happens since January on the same machine&#8230;<\/p>\n<p>P.S. <a href=\"http:\/\/marek.terminus.sk\/prog\/ipt_sysrq.shtml\">ipt_sysrq<\/a> looks quite interesting now&#8230;hmm&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just had a kernel crash on a remote machine. Unfortunately kjournald died and I couldn&#8217;t write anything to the \/ (root) partition. I could ssh to the machine but I couldn&#8217;t start nor stop any services. I couldn&#8217;t call any shutdown scripts either. My only hope was to force, somehow, the machine to hard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":12508,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}