tips
34 tips System
One command, setting or habit at a time about System: what it does, the line to copy and a caveat or two.
System 34
-
See how much disk space ZFS compression saves per dataset.
zfs get compressratio tank/media -
Starts the built-in Midnight Commander to browse and copy files between shares and disks from the terminal.
mc -
Spot missing kernel features that silently disable memory limits or networking.
docker info --format '{{json .Warnings}}' -
Lists the personal crontabs of every account, to find a job that runs from somewhere unexpected.
sudo ls -l /var/spool/cron/crontabs -
Unraid's Power Mode and the Tips and Tweaks plugin can both set the CPU governor.
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor -
Whether the array starts by itself after a reboot decides if your server comes back.
-
The Unraid setting that caps how much memory ZFS keeps as cache.
awk '/^size|^c_max/ {printf "%s %.1f GiB\n", $1, $3/1073741824}' /proc/spl/kstat/zfs/arcstats -
Stops the Unraid array and powers the server off from the terminal, the same safe way as the WebGUI.
powerdown -
Saves Unraid's notification history on the boot device so you can read old warnings later.
-
Tells you where the VirtIO drivers ISO goes so Unraid's Windows VM form can attach it.
/mnt/user/isos/virtio-win.iso -
Unraid VMs cannot hot-plug USB, so tick the devices before the VM starts.
-
RAW is faster, QCOW2 supports snapshots, so the vDisk type decides whether you can roll back.
-
Switches on Unraid's built-in help, and a click on a field name shows help for just that field.
-
Limits which user accounts are allowed to create and edit their own cron jobs.
printf 'root\nbackup\n' | sudo tee /etc/cron.allow -
Save a VM's state before risky changes and roll back if they go wrong.
Before Windows Update -
Give an existing Windows 10 VM the virtual TPM that Windows 11 needs.
BIOS: OVMF -> OVMF-TPM -
Fix a dark monitor on a GPU passthrough VM by changing its machine type.
i440fx -
Regain WebGUI access from the console when DNS is down and SSL is set to Strict.
use_ssl no -
Transfer your Unraid license to a new boot stick and know the 12-month limit.
Tools > Registration > Replace key -
Reset only the root password from the boot device and keep the share users' passwords.
root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7::: -
Protect the Unraid account that holds your license keys with an authenticator app code.
Account Settings > MFA > Enable MFA -
Create a separate Unraid API key per app with the smallest role that works.
unraid-api apikey --create -
Test Unraid API queries in a browser playground before you put them in a script.
unraid-api developer --sandbox true -
Hide a GPU or controller from Unraid so a VM can use it directly.
Bind Selected to VFIO at Boot -
Run your own scripts from the boot device even though it blocks execute permission.
bash /boot/config/scripts/myscript.sh -
Serve the Unraid WebGUI with your own domain certificate instead of a self-signed one.
/boot/config/ssl/certs/[servername]_unraid_bundle.pem -
Give a VM that ran out of space a bigger disk without rebuilding it.
100G -
Keep the boot device share off the network so nobody on your LAN can change it.
Yes visible and reachable -
Move an old physical Linux or Windows install into a VM on Unraid.
qemu-img convert -p -O raw /dev/sdX /mnt/user/domains/oldpc/vdisk1.img -
Routes serious Unraid alerts to your phone through a push service instead of only the WebGUI.
Settings > User Preferences > Notification Settings > Notification Agents -
Explains the script on the flash drive that runs your own commands each time Unraid starts.
cp /boot/config/go /boot/config/go.bak -
Keeps the system log across a crash by writing it to the boot drive while it happens.
Settings > Syslog Server > Mirror syslog to boot drive: Yes -
Keeps your SSH key login working after Unraid restarts, by storing the key on the flash drive.
nano /boot/config/ssh/root/authorized_keys -
Lists which scripts in a cron directory would be executed without running them.
run-parts --test /etc/cron.daily
Nothing in this filter yet.