Thread (12 messages) 12 messages, 4 authors, 2004-10-29

Re: RAID-6: help wanted

flat view

From: Neil Brown <hidden>
Date: 2004-10-29 00:43:50

On Thursday October 28, hpa@zytor.com wrote:
Jim Paris wrote:
quoted
Another issue:  If I create a 6-disk RAID-6 array ...

... with 2 missing, no resync happens.
... with 1 missing, no resync happens.  (???)
... with 0 missing, resync happens.
... with 2 missing, then add 1, recovery happens.
... with 0 missing, then fail 1, resync continues.

Shouldn't resync happen in the created-with-1-disk-missing case?
Nevermind, I guess it probably should, since there is still redundancy 
and therefore it can be inconsistent.

	-hpa
I have a patch to mdadm to make it resync when there is one failure,
but I'm no longer convinced that it is needed.
In fact, the initial resync isn't really needed for raid6 (or raid1)
at all.  The first write to any stripe will make the redundancy for
that stripe correct regardless of what it was, and before the first
write, the content of the array is meaningless anyway.

Note that this is different to raid5 which, if using a
read-modify-write cycle, depends on the parity block being correct.

There would be an issue once we start doing background scans of the
arrays as the first scan could find lots of errors.  But maybe that
isn't a problem....

I'll probably include the patch in the next mdadm release, and revisit
the whole idea when (if) I implement background array scans.

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help