scrub was Re: RAID5 Problem - $1000 reward for help
Quoted 7 lines
Quoted 3 lines
Does this test stress the discs a lot, like a resync? How long does it take?
Can I use it on a mounted array?I'd like to add to this question -- does 'check' action on a RAID5 array verify the accuracy of parity data, blindly read back all data, or only verify readability of data blocks?
The former: it reads all data and verifies the parity.
It's a bit hard to see buried in drivers/md/raid5.c:handle_stripe5(), which is more than a little intricate. If you search for MD_RECOVERY_CHECK in there, you can see where it rewrites the newly added disk if syncing or just notes the problem if checking.