Re: [PATCH 0/6] raid6check fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Jun 2013 18:46:28 +0200 Piergiorgio Sartor
<piergiorgio.sartor@xxxxxxxx> wrote:

> On Tue, Jun 25, 2013 at 09:54:22AM +1000, NeilBrown wrote:
> [...]
> > I don't remember holding back on any raid6check patches, but then I tend to
> > forget such things - usually after I've replied with why, but sometimes
> > before.
> > 
> > If there are patches that you (or anyone else) think should be in but aren't,
> > please point them out to me.  I'll either apply them or explain why I don't
> > want to.
> 
> Hi Neil,
> 
> no, you did not seem to have forgot anything.
> I quickly checked mdadm-3.3-rc1 source and it
> seems raid6check.c is up to date.
> 
> > > > Do you mean when will it be included by distros?  That is really up to them.
> > > > I could get "make install" to install it I guess.
> > > > I haven't really thought about what would be required for that.
> > > > 
> > > > I'll add it to my list of things to think about.
> > > 
> > > Well, that could be some thinking for 3.3, couldn't it? :-)
> > 
> > It could indeed.
> 
> Well, do not forget... :-)
> 

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.

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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux