Re: raid 5 mismatch_cnt errors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Brown
Date: Thursday, May 20, 2010 - 3:38 pm

On Thu, 20 May 2010 17:29:37 -0500
Trey Scarborough <treys@locallinux.com> wrote:


To detect a mismatch, raid5 reads from all drives in parallel, calculates the
parity across the data blocks and compares that to the parity block.
So no: something like that is not possible.

only thing I can suggest:

- add a write-intent bitmap so you can remove/re-add devices fairly cheaply
- create a v.large file.
- write random data to the file without truncating it. (use dd of=file
  conv=notrunc) then read it back and see if it matches.   If it does, then
  this approach doesn't help.  If it doesn't:

  1 by 1, fail/remove a drive from the array.  Write new random data to the
  same file and read it back and compare.  Then --readd the missing device.
  I'm hoping that you will get an error every time except when the 'bad'
  device has been removed.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
raid 5 mismatch_cnt errors, Trey Scarborough, (Thu May 20, 10:02 am)
Re: raid 5 mismatch_cnt errors, Neil Brown, (Thu May 20, 2:16 pm)
Re: raid 5 mismatch_cnt errors, Trey Scarborough, (Thu May 20, 3:29 pm)
Re: raid 5 mismatch_cnt errors, Neil Brown, (Thu May 20, 3:38 pm)
Re: raid 5 mismatch_cnt errors, Doug Ledford, (Thu May 20, 7:16 pm)
Re: raid 5 mismatch_cnt errors, MRK, (Fri May 21, 9:40 am)
Re: raid 5 mismatch_cnt errors, Doug Ledford, (Fri May 21, 1:57 pm)
Re: raid 5 mismatch_cnt errors, Tim Small, (Mon May 24, 2:34 am)
Re: raid 5 mismatch_cnt errors, Robert Hancock, (Tue May 25, 12:09 pm)
Re: raid 5 mismatch_cnt errors, Bill Davidsen, (Wed May 26, 8:07 am)
Re: raid 5 mismatch_cnt errors, Doug Ledford, (Wed May 26, 8:49 am)