All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: "David C. Rankin" <drankinatty@suddenlinkmail.com>,
	mdraid <linux-raid@vger.kernel.org>
Subject: Re: raid role number off on one array?
Date: Fri, 11 Sep 2015 09:54:42 -0400	[thread overview]
Message-ID: <55F2DD22.3030406@turmel.org> (raw)
In-Reply-To: <55F249DB.5010908@suddenlinkmail.com>

Hi David,

On 09/10/2015 11:26 PM, David C. Rankin wrote:

[trim /]

> md1 : active raid1 sda7[2] sdb7[1]
> 
>   My concern is why is sda7 shown as being in role [2] and sdb7 shown in
> [1]? All other arrays are [0][1]. What concerns me is the information at:

/proc/mdstat doesn't show role numbers.  It shows slot numbers.  Slot
numbers are the indices into the role number tracking tables in the
superblock.  They happen to match role numbers on a freshly-created
array simply because the slots are allocated starting from zero, just
like the roles.  As you add and remove devices, the slot numbers and
role numbers may no longer match.

Phil


  reply	other threads:[~2015-09-11 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11  3:26 raid role number off on one array? David C. Rankin
2015-09-11 13:54 ` Phil Turmel [this message]
2015-09-11 15:21   ` David C. Rankin

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=55F2DD22.3030406@turmel.org \
    --to=philip@turmel.org \
    --cc=drankinatty@suddenlinkmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.