Mikael Abrahamsson wrote:
On Sat, 15 Jan 2005, Peter T. Breuer wrote:
quoted
I also agree that "redundancy per block" is probably a much better idea
than "redundancy per disk". Probably needs a "how hot are you?"
primitive, though!
Would a methodology that'll do
if read error then
recreate the block from parity
write to sector that had read error
In theory this should reallocate the bad sector.
wait until write has completed
If the write fails, fail the drive as bad things are going to happen.
flush buffers
read back block from drive
if block still bad
fail disk
log result
Make sure the logging is done in such a way as mdadm can send you an E-mail and say. "Hey, sda just had a bad block. Be aware.
Brad