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: a disabled Unraid disk is emulated, so check its files before you swap hardware

Unraid
~/tips/tip-unraid-emulated-disk

ls /mnt/disk4

Use the emulated disk to check your data before replacing a failed drive.

The first reaction to a red X is to order a new drive and rip out the old one. I’d slow down. While a disk is disabled, Unraid emulates it from parity and the other disks, and that gives you time.

What the docs say happens: Unraid stops writing to the physical drive, any updates go into parity and the emulation, and you can still access the data that was on it. Your shares keep working. A file on the failed disk opens like before, only slower, because Unraid reads every other drive to reconstruct it. The docs mention read speeds dropping to 30 to 60 MB/s or lower during this.

So the first thing I’d do is look at the emulated disk itself, through its disk share:

ls /mnt/disk4

If the folders and files are there, the rebuild will put exactly that onto the new drive. The docs also point out that the physical drive is kept intact for potential recovery, so leave it alone while you sort things out.

If the emulated disk shows as unmountable, stop there. The docs are clear that rebuilding from an unmountable emulated disk gives you an unmountable new disk, and that a rebuild won’t change the file system or fix it. Repair the file system on the emulated disk first; it is quicker than a rebuild anyway.

The caveat is that you are running without protection for that slot. With single parity, one more failure while a disk is emulated means data loss, so this is the moment to copy anything you can’t replace to somewhere else, before any rebuild starts hammering the remaining drives.

Further reading: Unraid docs: Replacing disks in array, Unraid docs: Arrays overview

Going deeper: Get the most out of Unraid: the settings worth changing, from shares to backups

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