Comment posted How to reboot remotely Linux server if reboot, shutdown and init commands are not working (/sbin/reboot: Input/output error) – Reboot Linux in emergency using MagicSysRQ kernel sysctl variable by .
Recent comments by
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Hey long time now see, thanks for dropping back again! 🙂
Previoust Post:
Next Post:
Tags: dmesg, drive, drive scsi, driverbyte, emergency, errorJust, fdisk, filesystems, fsck, hard drive, hdd, hostbyte, init, input output, kernel, Linux, log, machine, mcedit, number, pinky, reboot web, remote reboot, remount, request, Result, sda, sector, server boot, server shutdown, Shell, shell linux, target, tech support, turtle, vim, web front
This entry was posted
on Thursday, April 18th, 2024 at 5:55 am and is filed under Linux, System Administration.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Hello fellow admins,
We had the same incident today on one of our Debain hosts.
View CommentView CommentRunning the sysrq saved us a trip to the datacenter during the night.
Thumbs up for the poster!
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5
Hi,
I usually work on a SLES machine connected through ssh. I wanted to know, is there any command or procedure to know, when the pc got last rebooted and from which IP. generally using the commands
last reboot (or) ps -fp 1
only gives us the info regarding the last time of reboot.
But I wanted to know from which IP the reboot command was given.
View CommentView CommentMozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Try with “last” ccmd
View CommentView CommentMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
I would not recommend to send only the "r" to sysrq-trigger. As you said, it will reboot the system immediately – without syncing or unmounting your disks!
But – rseiub to the rescue – there is actually a sequence that let you do almost the same as reboot!
Note: Instead of echoing to sysrg-trigger, use the Alt + SysRq keyboard shortcut (SysRq is almost always the same as the PrintScreen button.). Leave about half a second between each command.
Alt + SysRq + r // switch keyboard to raw mode
Alt + SysRq + s // sync disk
Alt + SysRq + e // terminate all processes
Alt + SysRq + i // kill all processes
Alt + SysRq + u // remount all filesystems in read-only mode
Alt + SysRq + b // (hard) reboot the system
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
good to know thx Stephan ! 🙂
View CommentView Comment