Best Method To Reboot Remote Linux / Windows / UNIX Server

Q. I’ve couple of Linux / Windows server hosted in remote data center? My ISP provides following option for rebooting the box:
a) Graceful shutdown command
b) An IPMI reboot
c) A power strip

ADVERTISEMENTS

Which one is the best way to reboot server and why?

A. For UNIX like system shutdown command is the best way to reboot system in a safe way. Whey you issue graceful shutdown command all logged-in users are notified that the system is going down and, within the last five minutes of TIME (if time is specified), new logins are prevented. Shutdown / reboot procedure will stop all services and unmount the file system. Login as root and type the command:
# shutdown -r +5
# shutdown -r now

An IPMI reboot or a power strip should be only use when server is not responding to ssh / login / console requests. Modern IPMI implementation try to reboot gracefully using ACPI, but it is best to use console login. Usually it may take 3-5 minute to come back online. If you are using Windows use shutdown command or usual start > shutdown method.

You can always monitor your reboot procedure using KVM over IP / IPMI client.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Moataz Eljaky Mar 31, 2013 @ 5:43

    PLz , i need your support to guide me how to shutdown linux machine remotly using shutdown command ?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.