linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid-6 Rebuild question
@ 2005-11-13  9:05 Brad Campbell
  2005-11-13  9:13 ` Brad Campbell
  2005-11-13 10:05 ` Neil Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Brad Campbell @ 2005-11-13  9:05 UTC (permalink / raw)
  To: RAID Linux

G'day all,

Here is an interesting question( well I think so in any case ). I just replaced a failed disk in my 
15 drive Raid-6.

Simply mdadm --add /dev/md0 /dev/sdl

Why, when there is no other activity on the array at all, is it writing to every disk during the 
recovery? I would have assumed it just read from the others and write to sdl.

This is an iostat -k 5 on that machine while rebuilding

avg-cpu:  %user   %nice    %sys %iowait   %idle
            0.00    0.00  100.00    0.00    0.00

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda             121.08     14187.95       925.30      23552       1536
sdb             127.71     14187.95      1002.41      23552       1664
sdc             125.30     14187.95      1002.41      23552       1664
sdd             122.29     14187.95      1002.41      23552       1664
sde             125.30     14187.95      1002.41      23552       1664
sdf             127.71     14187.95      1002.41      23552       1664
sdg             125.90     14187.95       925.30      23552       1536
sdh             125.30     14187.95       925.30      23552       1536
sdi             134.34     14187.95       925.30      23552       1536
sdj             137.95     14187.95       925.30      23552       1536
sdk             140.36     14187.95      1850.60      23552       3072
sdl              79.52         0.00     14265.06          0      23680
sdm             133.13     14187.95       925.30      23552       1536
sdn             134.34     14187.95       925.30      23552       1536
sdo             133.73     14187.95       925.30      23552       1536
md0               0.00         0.00         0.00          0          0

storage1:/home/brad# cat /proc/mdstat
Personalities : [raid6]
md0 : active raid6 sdl[15] sdg[6] sda[0] sdo[14] sdn[13] sdm[12] sdk[10] sdj[9] sdi[8] sdh[7] sdf[5] 
sde[4] sdd[3] sdc[2] sdb[1]
       3186525056 blocks level 6, 128k chunk, algorithm 2 [15/14] [UUUUUUUUUUU_UUU]
       [>....................]  recovery =  1.8% (4518144/245117312) finish=838.3min speed=4782K/sec
unused devices: <none>

Regards,
Brad
-- 
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Raid-6 Rebuild question
  2005-11-13  9:05 Raid-6 Rebuild question Brad Campbell
@ 2005-11-13  9:13 ` Brad Campbell
  2005-11-13 10:05 ` Neil Brown
  1 sibling, 0 replies; 6+ messages in thread
From: Brad Campbell @ 2005-11-13  9:13 UTC (permalink / raw)
  To: RAID Linux

Brad Campbell wrote:
> G'day all,
> 
> Here is an interesting question( well I think so in any case ). I just 
> replaced a failed disk in my 15 drive Raid-6.

Forgot the most important detail (as usual)

bklaptop:~>ssh storage1 uname -a
Linux storage1 2.6.11.7 #4 Fri Oct 7 20:00:25 GST 2005 i686 GNU/Linux

Regards,
Brad
-- 
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Raid-6 Rebuild question
  2005-11-13  9:05 Raid-6 Rebuild question Brad Campbell
  2005-11-13  9:13 ` Brad Campbell
@ 2005-11-13 10:05 ` Neil Brown
  2005-11-16 17:54   ` RAID-6 Bill Davidsen
  1 sibling, 1 reply; 6+ messages in thread
From: Neil Brown @ 2005-11-13 10:05 UTC (permalink / raw)
  To: Brad Campbell; +Cc: RAID Linux

On Sunday November 13, brad@wasp.net.au wrote:
> G'day all,
> 
> Here is an interesting question( well I think so in any case ). I just replaced a failed disk in my 
> 15 drive Raid-6.
> 
> Simply mdadm --add /dev/md0 /dev/sdl
> 
> Why, when there is no other activity on the array at all, is it writing to every disk during the 
> recovery? I would have assumed it just read from the others and
> write to sdl.

The raid6 recovery code always writes out the P and Q blocks for every
stripe.  This is un-necessary and there is in fact a comment in the
code saying:
	/**** FIX: Should we really do both of these unconditionally? ****/

I recently reviewed and cleaned up this code, though I haven't tested
the new version yet.  I'll make sure the new code doesn't do
un-necessary writes (it may already not).  So there is a good chance
that 2.6.16 will do a better job here.  

Thanks for the report,
NeilBrown

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RAID-6
  2005-11-13 10:05 ` Neil Brown
@ 2005-11-16 17:54   ` Bill Davidsen
  2005-11-16 20:39     ` RAID-6 Dan Stromberg
  0 siblings, 1 reply; 6+ messages in thread
From: Bill Davidsen @ 2005-11-16 17:54 UTC (permalink / raw)
  To: Neil Brown; +Cc: RAID Linux

Based on some google searching on RAID-6, I find that it seems to be 
used to describe two different things. One is very similar to RAID-5, 
but with two redundancy blocks per stripe, one XOR and one CRC (or at 
any rate two methods are employed). The other sources define RAID-6 as 
RAID-5 with a distributed hot spare, AKA RAID-5E, which spreads head 
motion to all drives for performance.

Any clarification on this?

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RAID-6
  2005-11-16 17:54   ` RAID-6 Bill Davidsen
@ 2005-11-16 20:39     ` Dan Stromberg
  2005-12-29 18:29       ` RAID-6 H. Peter Anvin
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Stromberg @ 2005-11-16 20:39 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: Neil Brown, RAID Linux, strombrg


My understanding is that RAID 5 -always- stripes parity.  If it didn't,
I believe it would be RAID 4.

You may find http://linux.cudeso.be/raid.php of interest.

I don't think RAID level 6 was in the original RAID paper, so vendors
may have decided on their own that it should mean what they're
selling.  :)

On Wed, 2005-11-16 at 12:54 -0500, Bill Davidsen wrote:
> Based on some google searching on RAID-6, I find that it seems to be 
> used to describe two different things. One is very similar to RAID-5, 
> but with two redundancy blocks per stripe, one XOR and one CRC (or at 
> any rate two methods are employed). The other sources define RAID-6 as 
> RAID-5 with a distributed hot spare, AKA RAID-5E, which spreads head 
> motion to all drives for performance.
> 
> Any clarification on this?
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: RAID-6
  2005-11-16 20:39     ` RAID-6 Dan Stromberg
@ 2005-12-29 18:29       ` H. Peter Anvin
  0 siblings, 0 replies; 6+ messages in thread
From: H. Peter Anvin @ 2005-12-29 18:29 UTC (permalink / raw)
  To: linux-raid

Followup to:  <1132173592.23464.459.camel@seki.nac.uci.edu>
By author:    Dan Stromberg <strombrg@dcs.nac.uci.edu>
In newsgroup: linux.dev.raid
>
> 
> My understanding is that RAID 5 -always- stripes parity.  If it didn't,
> I believe it would be RAID 4.
> 
> You may find http://linux.cudeso.be/raid.php of interest.
> 
> I don't think RAID level 6 was in the original RAID paper, so vendors
> may have decided on their own that it should mean what they're
> selling.  :)
> 

RAID-6 wasn't in the original RAID paper, but the term RAID-6 with the
P+Q parity defintion is by far the dominant use of the term, and I
believe it is/was recognized by the RAID Advisory Board, which is as
close as you can get to an official statement.  The RAB seems to have
gotten defunct, with a standard squatter page on their previous web
address.

	-hpa




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-29 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13  9:05 Raid-6 Rebuild question Brad Campbell
2005-11-13  9:13 ` Brad Campbell
2005-11-13 10:05 ` Neil Brown
2005-11-16 17:54   ` RAID-6 Bill Davidsen
2005-11-16 20:39     ` RAID-6 Dan Stromberg
2005-12-29 18:29       ` RAID-6 H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).