Normally a dead disk in Unraid means a rebuild from parity. When that’s not possible, because two disks failed or parity isn’t valid, the docs point to ddrescue to rescue what can still be read from the failing one.
Install the ddrescue plugin from Apps. The docs recommend it over Nerd Tools and NerdPack, which are both deprecated. You need a healthy destination disk at least as large as the source, and neither disk may be mounted.
Now the warning before the command: ddrescue overwrites the destination completely. Check the device letters twice, for example against the serial numbers on the Main tab. Swap X and Y by accident and you overwrite the disk you were trying to save.
ddrescue -f /dev/sdX /dev/sdY /boot/ddrescue.log
sdX is the failing source, sdY the destination. The third argument is the mapfile. ddrescue records its progress there, so if the copy stops halfway you run the same command again and it continues. That’s why it lives on the boot device and not on one of the disks involved.
The first pass copies everything that reads easily and shows Copying non-tried blocks. After that it goes back for the bad areas with Scraping failed blocks, which can take much longer on a badly damaged disk. Watch pct rescued and bad areas in the output.
Want the clone straight on an array disk with parity kept up to date? The docs use the partition of the source and the md device of the destination, with the array in Maintenance Mode: ddrescue -f /dev/sdX1 /dev/md# /boot/ddrescue.log.
The caveat is that a copy isn’t a clean copy. Files that sat on unreadable sectors may be corrupt even if the disk mounts, so run a filesystem check on the clone. Then copy the files you need to a safe place on the array.
Further reading: Unraid docs: Data recovery
Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it