brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: powerdown stops the array and shuts Unraid down safely from the terminal

Unraid
~/tips/tip-unraid-powerdown-command

powerdown

Stops the Unraid array and powers the server off from the terminal, the same safe way as the WebGUI.

When I’m already in an SSH session on the server, opening the WebGUI just to shut it down feels like a detour. Unraid has a short command for that.

Log in as root and run it:

ssh [email protected]
powerdown

The Unraid command line docs say it uses Unraid’s built-in shutdown process to stop the array and power down the system safely, and that it is preferred over manual shutdown methods. On a server with an array I reach for this instead of poweroff or shutdown -h now.

Your SSH session drops as soon as the server goes down. The terminal freezes for a moment and then disconnects, which is normal. To bring the machine back you need the power button, or a Wake-on-LAN packet if you set that up beforehand and your hardware supports it.

Nothing on the docs page mentions a confirmation prompt, so assume the command just runs. Check the hostname in your prompt before you press Enter, especially when you have terminals open to more than one machine. The same docs page lists the other built-in tools worth knowing, such as tail and top. To see what the server is doing before you shut it down, it shows tail -f /var/log/syslog for live system log output.

Further reading: Unraid docs: command line interface

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link