A degraded RAID 5 of four drives has three survivors. A rebuild onto the replacement reads all three from end to end, computes the missing member's block for each stripe by XOR, and writes it. Every sector of every survivor is asked for, including the ones nobody has read since the array was built and the ones a survivor has been quietly reallocating around. A survivor with pending sectors, SMART attribute 197, has sectors it cannot currently give, and the rebuild asks for all of them. When it meets one, the controller either drops that survivor, which fails the virtual disk, or on a PERC skips the stripe and punctures it, finishing a rebuild with holes.
The unrecoverable-read-error rating is why large sets are exposed. Consumer drives are rated at one URE per 10^14 bits read, enterprise and nearline drives at one per 10^15; 10^14 bits is about 12.5TB. A rebuild on four 8TB drives reads about 24TB from the survivors, which on the naive reading of the rating is more than one expected error. The rating is a specification ceiling rather than a measured rate, and if it were a real rate most drives could not complete a long sequential read; a 2013 paper on reliability models put UREs between 10^-14 and 10^-15 per bit and computed that an eight-plus-two RAID 6 of 1TB drives had only about a 53 per cent chance of reading its survivors clean after two failures. The honest use of the number is the one the calculator makes: a reason rebuilds fail late, and a reason for RAID 6 on big drives, not a prediction for any one array.
On the bench the arithmetic is the same and the writes are not. The survivor that stopped the rebuild is imaged with its weak areas last, on hardware that retries the way a controller will not; the drive that failed first is imaged too, because it still holds every stripe the rebuild had not reached when it stopped, and on a set that was degraded for a week those are most of them. The set is assembled in software from the current members, with the first-dropped drive's image used only where a survivor genuinely cannot read, and the file system repaired on a copy of the virtual volume.