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: ethtool -s eth0 wol g lets your Unraid server wake on a magic packet

Unraid
~/tips/tip-unraid-wake-on-lan-ethtool

ethtool -s eth0 wol g

Wake a sleeping Unraid server from another computer on your network.

A server that sleeps when nobody streams anything is nice for the power bill. It’s less nice when you’re on the couch and want to watch something. Wake-on-LAN fixes that, and Unraid’s docs show the whole chain.

Start in the BIOS. Enable the setting that might be called Wake on LAN, PME event wake-up or Power on by PCI/PCIe devices, and make sure ErP ready is disabled, because WoL won’t work with it on. The server needs an Ethernet cable; WiFi WoL isn’t supported.

The easy route for sleep itself is the Dynamix S3 Sleep plugin from the Apps tab, configured under Settings > Sleep Settings. For the manual route, find your interface and its MAC address (the ether line) with ifconfig, then enable WoL:

ethtool -s eth0 wol g

That doesn’t survive a reboot. To make it stick, the docs say to add this line to /boot/config/go:

/usr/sbin/ethtool -s eth0 wol g

To wake the server from a Mac, install the tool with Homebrew and send the magic packet to the MAC address you noted:

brew install wakeonlan
wakeonlan MAC_ADDRESS

On Linux it’s the same wakeonlan command, and on Windows the docs use wolcmd.exe.

The caveat comes straight from the docs: not all hardware supports S3 sleep or WoL reliably. Some systems won’t sleep, some won’t wake up properly, so test it a few times before you rely on it from the couch.

Further reading: Unraid docs: Wake-on-LAN (WoL)

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