Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Brian Candler <B.Candler@pobox.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Interpreting mdstat output
Date: Tue, 05 Feb 2013 08:54:55 -0500	[thread overview]
Message-ID: <51110F2F.1080504@turmel.org> (raw)
In-Reply-To: <20130205134907.GA622@nsrc.org>

On 02/05/2013 08:49 AM, Brian Candler wrote:
> On Tue, Feb 05, 2013 at 01:40:14PM +0000, Brian Candler wrote:
>> On Tue, Feb 05, 2013 at 01:02:37PM +0000, Robin Hill wrote:
>>>> 1. The UUUU_ and [22/21] suggests that one disk is bad, but is that true?
>>>> And if so which one?
>>>>
>>> No, that's normal. A RAID5 (or RAID6) array is created in a degraded
>>> form, then the last disk(s) are recovered (it's the quickest way of
>>> getting the array ready for use).
>>
>> Ah I see. Thank you.
> 
> The odd thing is, if I make a RAID6 I get [UUUUU] with no underscores?
> 
> # cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
> md127 : active raid6 sdy[23](S) sdx[22] sdw[21] sdv[20] sdu[19] sdt[18] sds[17] sdr[16] sdq[15] sdp[14] sdo[13] sdn[12] sdm[11] sdl[10] sdk[9] sdj[8] sdi[7] sdh[6] sdg[5] sdf[4] sde[3] sdd[2] sdc[1] sdb[0]
>       61532835840 blocks super 1.2 level 6, 512k chunk, algorithm 2 [23/23] [UUUUUUUUUUUUUUUUUUUUUUU]
>       [>....................]  resync =  0.0% (850232/2930135040) finish=1607.7min speed=30365K/sec
>       bitmap: 22/22 pages [88KB], 65536KB chunk

Raid6 resyncs to get started where raid5 rebuilds to get started.

Regular parity is computationally identical to create from the data and
to compute one data from the parity and the rest.  So reading linearly
from all drives but one, and writing linearly to just one is the fastest
way to start raid5.

The Q syndrome in raid6 is not symmetrical.  It is more expensive to
compute data from Q, so raid6 doesn't try to do that on creation.

Phil


  reply	other threads:[~2013-02-05 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-05 12:20 Interpreting mdstat output Brian Candler
2013-02-05 12:30 ` Roy Sigurd Karlsbakk
2013-02-05 12:34   ` Brian Candler
2013-02-05 12:41     ` Roy Sigurd Karlsbakk
2013-02-05 22:43   ` Hans-Peter Jansen
2013-02-05 13:02 ` Robin Hill
2013-02-05 13:40   ` Brian Candler
2013-02-05 13:49     ` Brian Candler
2013-02-05 13:54       ` Phil Turmel [this message]
2013-02-05 13:59       ` Robin Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51110F2F.1080504@turmel.org \
    --to=philip@turmel.org \
    --cc=B.Candler@pobox.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox