I am sure most of has seen this issue earlier -
[root@DebaTestBox ~]# reboot
bash: /sbin/reboot: Input/output error
[root@DebaTestBox ~]# shutdown -r now
bash: /sbin/shutdown: Input/output error
Whats the rescue - call the data center guy and hard reboot.
WAIT!! **Just try this :
Theere is some issue with your disc for sure and thats why the kernel is unable to access the '/sbin/reboot' and '/sbin/shutdown' binaries from the disk so that it could execute them.
A fsck in next boot is mandatory now BUT what you need right away is - some way to reboot this BOX. Do we have something to tell the kernal bypassing anything or any command on disc.
There is this "magic SysRq key" for your rescue.
First you must activate the magic SysRq option:
echo 1 > /proc/sys/kernel/sysrq
When you are ready to reboot the machine simply run the following:
echo b > /proc/sysrq-trigger
(Note: This will reboot your server, without trying to umount any file system)
BUT pleas remember this should only be used in dire situation as it wont do any umount of the currently mounted file systems. BUT if your drive is already failing then that may not be a concern.
Make the Sysrq setting permanent -
echo "kernel.sysrq = 1" >> /etc/sysctl.conf
More magic keys here
D e b a
I have been having a great company with some of the very talented NCG’s ( New College Hires/ Grads ) last ~2yrs. I work for Intuit I...
( A story on - how we formulated a process around measuring and achieving CICD, and how these journey lines has now become a means t...
Have you come across a situation when you need to reset the root password of a XEN virtual box. Logon Host machine run following command to...
I had to handle a recent escalation where /var reportedly got filled up - Someone with 'dbuser' userid deleted /var/log/message file...