Thursday, 18th April 2024

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

Share this on:

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

No Responses to “…”

  1. SysAdmin says:
    Firefox 12.0 Firefox 12.0 Windows 7 x64 Edition Windows 7 x64 Edition
    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.
    Running the sysrq saved us a trip to the datacenter during the night.
    Thumbs up for the poster!

    View CommentView Comment
  2. deep says:
    Google Chrome 19.0.1084.52 Google Chrome 19.0.1084.52 Windows 7 x64 Edition Windows 7 x64 Edition
    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 Comment
  3. Stephan Schmitz says:
    Google Chrome 28.0.1500.72 Google Chrome 28.0.1500.72 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/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

     

    View CommentView Comment