Re: RAID5 losing initial synchronization on restart when one disk is spare
From: Dan Williams <hidden>
Date: 2008-06-12 17:01:46
From: Dan Williams <hidden>
Date: 2008-06-12 17:01:46
On Thu, Jun 12, 2008 at 1:03 AM, David Greaves [off-list ref] wrote:
Neil Brown wrote:quoted
When writing to the array, the new parity block will sometimes be calculated assuming that it was previously correct. If all updates to a particular parity block are of this sort, then it will still be incorrect when you lose a drive, and data recovered based on that parity block will be incorrect. Until you lose a drive, it will have no visible effect.There is a slight chance that this happened to me recently - would a echo check > /sys/block/mdX/md/sync_action detect this? and would echo repair > /sys/block/mdX/md/sync_action fix it?
'Yes' on both questions. -- Dan