Thread (21 messages) 21 messages, 3 authors, 2013-06-28

Re: [PATCH 0/6] raid6check fixes

From: Piergiorgio Sartor <hidden>
Date: 2013-06-27 20:49:00

On Thu, Jun 27, 2013 at 02:27:19PM +1000, NeilBrown wrote:
[...]
I've just had a little look at raid6test - because some of the selftests were
failing.

The default output is rather verbose.  Verbose output can be good, but not as
the default I think.

However, more importantly, it pays too much heed to the chunksize.

If the start of one chunk on drive X is bad, and the end of a corresponding
chunk on drive Y is bad, then it will complain that it cannot figure out the
problem.
It shouldn't do that.  It shouldn't even look at whole chunks at a time.

It should look at blocks.  Maybe 512bytes or 1K or 4K any of those would do.
Then for each block it should figure out if there is a problem, and maybe
auto-fix it.
Hi Neil,

thanks for the feedback.

I checked "mdadm" man page and it states that the chunk
size is always a multiple of 4K (and a power of 2).
I assume this is correct, so I would suggest 4K as
block size. Also because of SSD and many HDD which
are already 4K.

What do you think?

Does it seem reasonable to you?

"raid6check" is processing and collecting statistics
"per byte", I assume it should not need a big architectural
change in order to fit 4K.

About the verbosity, I know, this was already discussed.
My idea was to reduce it, once the other code stabilize.

Thanks,

bye,

pg
Having two blocks on different drives being bad might be cause for extra
warnings, but it doesn't make any difference if they are in the same stripe
or in different stripes.

i.e. the chunksize should be used only as part of the calculation to work out
the layout at any particular place in the array.  It should not be used as a
unit for reading and writing data.

In anyone feels like addressing that issue, I would be very receptive to
patches :-)

NeilBrown


-- 

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