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: Unraid tracks array disks by serial number, so you can move them to other SATA ports

Unraid
~/tips/tip-unraid-disks-by-serial-not-port

After: disk3 on port 5, cable from port 2 now on disk1

Swap SATA ports or cables to find a fault without losing disk assignments.

Moving a disk to another SATA port feels risky on a parity array. Will disk 3 suddenly become disk 5 and wreck parity? On Unraid, no.

According to the docs, Unraid recognises a disk by its serial number and size, and the SATA port it hangs on plays no part in that. So you can move drives to other ports and their assignments stay the same. Disk 3 stays disk 3, whichever connector it hangs on.

That makes it a handy troubleshooting tool. Say one disk keeps collecting UDMA CRC errors. I’d stop the array, power down, and swap its data cable or port with a neighbour:

Before: disk3 on port 2, CRC errors rising
After:  disk3 on port 5, cable from port 2 now on disk1

If the errors follow the disk, look at the drive or its power. If they move to the other disk, the port or cable is the problem. The docs name exactly this use: finding a faulty port or replacing unreliable power or SATA cables.

It also matters when you move to a new case or a new HBA. As long as the same disks show up, Unraid puts them back in their slots.

Before you touch cables, write down the model and the last four characters of each serial number from the Main tab. The docs recommend that for parity swaps, and I like having it for any hardware change.

The caveat is that this only covers moving the same disks around. If you ever end up in Tools → New Config and assign disks yourself, order matters again: the docs say changing disk order won’t affect parity1, but it can invalidate parity2.

Further reading: Unraid docs: Arrays overview, Unraid docs: Array health and maintenance

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 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