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: replace a disk in a redundant Unraid pool from the Main tab

Unraid
~/tips/tip-unraid-pool-replace-disk

cat ~/tips/tip-unraid-pool-replace-disk.md

Swaps a failing or small drive in a mirrored cache pool and lets Unraid rebuild onto the new one.

A mirrored pool exists so one SSD can die without taking your appdata with it. When one does, the repair is short and does not involve the command line.

First check that the pool really is redundant. Open the pool on the Main tab and look at Balance Status for BTRFS or the ZFS pool status. You want a profile like RAID 1. The new disk must be the same size or larger than the one it replaces.

  • Stop the array under Array Operation.
  • If your hardware cannot hot-swap, take the old disk out and put the new one in.
  • Refresh the Main tab, then assign the new disk to the old slot.
  • Start the array and watch the rebuild in the web UI.

The docs give about 3 to 6 hours for a 4 TB SSD in RAID 1 as an example. Plan for the pool to be busy during that time.

Caveat: this only works when the pool has redundancy. With a single-device pool there is nothing to rebuild from, so copy the data off first (the Mover or a plain copy to the array works) and set up the pool again.

Further reading: Unraid docs: Cache pools, replace a disk in a pool

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance 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 grep -i "Memory cgroup out of memory" /var/log/syslog All Unraid tips (77) All topics

Link