Hi everyone,
I recently reactivated my NAS setup. It consists of a Intel N100 and four Western Digital RED CMR drives in a RAID-Z2 (RAID 6 -> two parrity drives). The software used is Truenas.
Two of the drives have already degrated pretty badly (read, write and checksum errors). The other were also throwing Checksum errors. Multiple files were already corrupted. Attempting to copy broken files from the pool would stop the complete copy action.
So I needed a robust script which attempts to copy files one by one.