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