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: rebuild a disabled Unraid disk onto itself when the cable was the problem

Unraid
~/tips/tip-unraid-rebuild-disk-onto-itself

3. Unassign the disabled disk

Re-enable a disk that Unraid disabled over a cable or power hiccup.

A red X on a disk does not always mean the disk is dead. Unraid disables a disk after a write error, and the cause can be a loose cable or a power glitch. If the drive itself is fine, you don’t need a new one. You can rebuild it onto itself.

The docs list when this is allowed: the disk was disabled by something external like cables or power, you checked it with a SMART report (ideally a SMART extended test), you fixed that external problem, and the disk seems to work normally. Then the procedure is:

1. Run a SMART extended test, acknowledge warning icons
2. Stop the array
3. Unassign the disabled disk
4. Start the array (disk shows "Not installed")
5. Data disk: check the emulated contents
6. Stop the array
7. Reassign the disk to its original slot
8. Optional: Maintenance Mode for a faster rebuild
9. Start

That unassign and reassign dance looks silly, but it is how you tell Unraid to forget the disabled state and treat the same physical drive as a replacement. It then takes the contents of the emulated disk and writes them back onto the drive. It works for data drives and for parity drives.

Step 5 is the one I’d never skip. The rebuild makes the physical disk match the emulated disk exactly, so whatever the emulated disk shows is what you end up with. If it shows as unmountable, or the files don’t look right, the docs say to repair the file system first or ask on the forums before you continue. A rebuild will not necessarily fix an unmountable emulated disk.

If you choose Maintenance Mode, remember the Sync click on the Main tab. Also plan for time: the docs say several hours to more than a day for large drives, and every other disk has to read cleanly the whole way through.

Further reading: Unraid docs: Replacing disks in array

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