Rebooting Linux when it doesn’t feel like it
This commit is contained in:
32
2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html
Normal file
32
2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!--# set var="title" value="Rebooting Linux when it doesn’t feel like it" -->
|
||||
<!--# set var="date" value="February 2, 2006" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
<p>Linux seems to have a unique knack to just not want to shut down sometimes. This gets caused by everything from I/O failures stopping you loading the “shutdown” application, to I/O failures putting processes in “D” state, to I/O failures stopping you unmounting filesystems. So mainly it’s I/O failures, I guess :)</p>
|
||||
|
||||
<p>If your machine won’t shut down, try these in order:</p>
|
||||
|
||||
<pre><code>shutdown -h now
|
||||
halt
|
||||
telinit 0
|
||||
halt -f
|
||||
echo o > /proc/sysrq-trigger
|
||||
</code></pre>
|
||||
|
||||
<p>For reboots, try:</p>
|
||||
|
||||
<pre><code>shutdown -r now
|
||||
reboot
|
||||
telinit 6
|
||||
reboot -f
|
||||
echo b > /proc/sysrq-trigger
|
||||
</code></pre>
|
||||
|
||||
<p>The first three commands in each block have the possibility to leave you halfway through a shutdown if there’s something that prevents the normal shutdown scripts from working properly. The last two commands will take the system down harshly, requiring fscks on reboot (and possibly manual fscks, depending on your distribution) and possibly corrupting data.</p>
|
||||
|
||||
<p>While I’ve seen kernel bugs cause problems like this, the likely cause is disk or controller hardware failure. If your disk blew up, rebooting isn’t going to do you alot of good.</p>
|
||||
|
||||
<p>/derf-question</p>
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
@@ -40,6 +40,7 @@
|
||||
<li>2009-Sep-11: <a href="2009-09-11-confusing-bind-with-cnames.html">Confusing BIND with CNAMEs</a></li>
|
||||
<li>2009-Feb-19: <a href="2019-02-19-the-odd-case-of-my-mugging.html">The odd case of my mugging</a></li>
|
||||
<li>2009-Feb-03: <a href="2009-02-03-5-packet-tcp-connection.html">5-packet TCP connection?</a></li>
|
||||
<li>2006-Feb-02: <a href="2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html">Rebooting Linux when it doesn’t feel like it</a></li>
|
||||
<li>2006-Jan-25: <a href="2006-01-25-new-mysql-toys.html">New MySQL toys</a></li>
|
||||
<li>2006-Jan-24: <a href="2006-01-24-finally-sane-mysql-clustering.html">Finally, sane MySQL clustering</a></li>
|
||||
<li>2006-Jan-23: <a href="2006-01-23-ibm-thinkcentre-a50-slowdown.html">IBM ThinkCentre A50 Slowdown</a></li>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<!--# set var="title" value="Rebooting Linux when it doesn’t feel like it" -->
|
||||
<!--# set var="date" value="February 2, 2006" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
Linux seems to have a unique knack to just not want to shut down sometimes. This gets caused by everything from I/O failures stopping you loading the “shutdown” application, to I/O failures putting processes in “D” state, to I/O failures stopping you unmounting filesystems. So mainly it’s I/O failures, I guess :)
|
||||
|
||||
If your machine won’t shut down, try these in order:
|
||||
|
||||
shutdown -h now
|
||||
halt
|
||||
telinit 0
|
||||
halt -f
|
||||
echo o > /proc/sysrq-trigger
|
||||
|
||||
For reboots, try:
|
||||
|
||||
shutdown -r now
|
||||
reboot
|
||||
telinit 6
|
||||
reboot -f
|
||||
echo b > /proc/sysrq-trigger
|
||||
|
||||
The first three commands in each block have the possibility to leave you halfway through a shutdown if there’s something that prevents the normal shutdown scripts from working properly. The last two commands will take the system down harshly, requiring fscks on reboot (and possibly manual fscks, depending on your distribution) and possibly corrupting data.
|
||||
|
||||
While I’ve seen kernel bugs cause problems like this, the likely cause is disk or controller hardware failure. If your disk blew up, rebooting isn’t going to do you alot of good.
|
||||
|
||||
/derf-question
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
@@ -39,6 +39,7 @@
|
||||
1. 2009-Sep-11: [Confusing BIND with CNAMEs](2009-09-11-confusing-bind-with-cnames.html)
|
||||
1. 2009-Feb-19: [The odd case of my mugging](2019-02-19-the-odd-case-of-my-mugging.html)
|
||||
1. 2009-Feb-03: [5-packet TCP connection?](2009-02-03-5-packet-tcp-connection.html)
|
||||
1. 2006-Feb-02: [Rebooting Linux when it doesn’t feel like it](2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html)
|
||||
1. 2006-Jan-25: [New MySQL toys](2006-01-25-new-mysql-toys.html)
|
||||
1. 2006-Jan-24: [Finally, sane MySQL clustering](2006-01-24-finally-sane-mysql-clustering.html)
|
||||
1. 2006-Jan-23: [IBM ThinkCentre A50 Slowdown](2006-01-23-ibm-thinkcentre-a50-slowdown.html)
|
||||
|
||||
Reference in New Issue
Block a user