tips
77 tips Unraid
One command, setting or habit at a time about Unraid: what it does, the line to copy and a caveat or two.
Array and disks 18
-
Runs read tests across the surface of each drive and draws heat maps that show slow zones.
-
Override the global spin down delay for a single array disk or pool device.
smartctl -n standby -i /dev/sdb -
Turn on ZFS compression for an Unraid pool and save space without any app noticing.
Stop the array > Add Pool > name it, assign disks -
Use one ZFS-formatted array disk as a snapshot and replication target under parity.
click an empty slot under Array Devices, select the disk -
Build a two-drive ZFS pool on Unraid that can still grow one disk at a time.
Main > Pool Devices: add a slot, assign the new drive -
Attribute 199 counts transfer errors, and they usually point at cabling.
199 UDMA CRC error count -
Compare sector counts of the old and new disk before you start an array rebuild.
blockdev --getsz /dev/sdX -
Know when Unraid zeros a disk itself and what Preclear adds.
Start the array → clear runs in the background -
Swap SATA ports or cables to find a fault without losing disk assignments.
After: disk3 on port 5, cable from port 2 now on disk1 -
Use the emulated disk to check your data before replacing a failed drive.
ls /mnt/disk4 -
Bring an existing ZFS pool into Unraid without copying the data off first.
click the pool name > File System: Auto -
Avoid losing the rebuild option for a disabled disk.
Assign the new disk to the failed disk's slot -
Re-enable a disk that Unraid disabled over a cable or power hiccup.
3. Unassign the disabled disk -
Shrink the array by one disk without guessing at the steps.
1. Move the data you want to keep off the disk -
Makes array writes faster by reading all the other disks instead of the old data and parity.
-
Reads all data on a pool, checks the checksums and repairs bad blocks from a redundant copy.
zpool scrub poolname -
Explains why a disk stays awake in spite of the spin down delay and where you set the timers.
-
Lists earlier parity checks with their date, duration, speed and errors.
System 16
-
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.
-
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.
-
Save a VM's state before risky changes and roll back if they go wrong.
Before Windows Update -
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 -
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 -
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
Updates and troubleshooting 12
-
Pick a shutdown time-out that fits your VMs and containers, so clean shutdowns stay clean.
(VM timeout x 3) + Docker timeout + other services + 15-30 seconds -
Restart the Unraid API with a higher log level and read the tail of its log.
unraid-api restart --log-level debug -
Rule out bad RAM as the cause of random crashes and corruption.
Memtest86+ -
Trade a little memory speed for a server that stops crashing.
XMP / AMP: Disabled (RAM at default SPD speed) -
Find where Unraid's Stable and Next release branches are switched, and who Next is for.
7.2.1 stable patch release -
Describes what the automatic cloud backup of the USB flash drive contains and how it is stored.
-
Compares Unraid's built-in update notices with the plugin that installs updates for you.
-
Rolls Unraid back to the previous version from the WebGUI without downloading a zip file.
Tools > Downgrade OS -
Downloads a ZIP of the Unraid boot drive so a bad update never costs you your configuration.
Main > Boot Device > Boot Device Backup -
Starts Unraid with all plugins disabled, so you can tell whether a plugin causes the problem.
-
Points out the pre-update check in the Tools menu and why to confirm its version number.
-
Puts back your previous array configuration after you clicked New Config by mistake.
/boot/config/super.old -> /boot/config/super.dat
Cache and Mover 5
-
Switches a BTRFS pool between Single, RAID 1 and other profiles from the Main tab while the array runs.
-
Swaps a failing or small drive in a mirrored cache pool and lets Unraid rebuild onto the new one.
-
Takes a drive out of a mirrored btrfs cache pool, from the GUI or the command line.
btrfs device remove /dev/sdX1 /mnt/cache -
Put SSDs in a pool where TRIM works instead of the parity array.
Array Devices: HDDs (parity + data) -
Starts the mover now, so cache files move to the array without waiting for the schedule.
mover start
Apps and containers 4
-
Cap a container's memory with the new field in the advanced view of Unraid 7.4.
grep -i "Memory cgroup out of memory" /var/log/syslog -
Makes an Unraid container create its files as nobody:users, the owner your shares expect.
id nobody -
Solve a port clash between containers by changing only the host side of the mapping.
Container port: 8000 Host port: 8000 -
Stops Sonarr and Radarr from downloading again a file you deleted on purpose.
Parity checks 3
-
Drop a parity disk without making an existing failure worse.
2. Set the parity slot to "Unassigned" -
Pick a parity drive that won't drag out parity syncs and rebuilds.
Recording technology: CMR -
Find unreadable sectors on an array that has no parity disk.
Main → Array Operation → Check
Networks 2
-
Wake a sleeping Unraid server from another computer on your network.
ethtool -s eth0 wol g -
Plan for reconfiguring containers before you switch your Unraid server between cable and Wi-Fi.
SMART alerts 2
-
The weekly status report is a cheap check that notifications still reach you.
-
Sets separate warning and alert temperatures for hard disks and SSDs on Unraid.
Default warning disk temperature threshold 45
Virtual machines 2
-
Shows the libvirt XML that your VM form choices produce, so you can see what each setting does.
-
Lets you pick the location of a new VM's virtual disk instead of the default domains share.
Nothing in this filter yet.