From: "Peter Sangas" <pete@wnsdev.com>
To: 'Wols Lists' <antlists@youngman.org.uk>, linux-raid@vger.kernel.org
Subject: RE: Linux raid wiki
Date: Fri, 23 Sep 2016 12:02:28 -0700 [thread overview]
Message-ID: <004e01d215cd$089e8090$19db81b0$@wnsdev.com> (raw)
In-Reply-To: <57E577BE.8080101@youngman.org.uk>
Interesting: What about for a RAID1 array?. My configuration is a 2 disk, 3 partition RAID1. After installation of Ubuntu 16.04 the role numbers are 0 and 1.
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4][raid10]
md2 : active raid1 sda3[0] sdb3[1]
634795008 blocks super 1.2 [2/2] [UU]
bitmap: 0/5 pages [0KB], 65536KB chunk
md1 : active raid1 sda2[0] sdb2[1]
126887936 blocks super 1.2 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md0 : active raid1 sda1[0] sdb1[1]
19514368 blocks super 1.2 [2/2] [UU]
But after I replace one of the drives (sdb) with a new drive and sync it the role number of md0,sdb1 changes from 1 to 2? Is that supposed to happen?
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4][raid10]
md2 : active raid1 sdb3[1] sda3[0]
634795008 blocks super 1.2 [2/2] [UU]
bitmap: 0/5 pages [0KB], 65536KB chunk
md1 : active raid1 sdb2[1] sda2[0]
126887936 blocks super 1.2 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md0 : active raid1 sdb1[2] sda1[0]
19514368 blocks super 1.2 [2/2] [UU]
Thank you.
Pete
-----Original Message-----
From: Wols Lists [mailto:antlists@youngman.org.uk]
Sent: Friday, September 23, 2016 11:43 AM
To: WNSDEV; linux-raid@vger.kernel.org
Subject: Re: Linux raid wiki
Thanks.
My understanding of role numbers is that they are the order of the disks in which stripes are written, so role 0 has the first stripe, role 1 the second, etc etc.
This is *normally* irrelevant, but should the array ever get trashed, the disks need to be listed *in* *that* *order* in a new --create statement.
Can someone - Neil? Phil? - please confirm I've understood that correctly before I update anything ...
(and I will be posting updates to the list - anything I'm not sure of I will be asking here to check I get it right :-)
Cheers,
Wol
On 23/09/16 18:35, WNSDEV wrote:
> Hi Wol,
>
> Thanks for your work on the wiki... I'm sending a virtual bouquet. I've been tracking down an issue regarding role numbers which I've posted to the list http://marc.info/?l=linux-raid&m=147439325405842&w=2. In that process I've come across other postings that say information in the wiki is incorrect so maybe this is an opportunity to update this part of the wiki.
>
> According to https://raid.wiki.kernel.org/index.php/Mdstat we find:
>
> "The raid role numbers [#] following each device indicate its role, or function, within the raid set. Any device with "n" or higher are spare disks. 0,1,..,n-1 are for the working array. Notice that there is no device 3."
>
> But according to the following two postings,
> http://www.spinics.net/lists/raid/msg44491.html and
> http://www.spinics.net/lists/raid/msg49766.html
> the information in the wiki about the numbers in brackets (role numbers ) is wrong.
>
> Thanks,
> Peter Sangas
>
next prev parent reply other threads:[~2016-09-23 19:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 23:31 Linux raid wiki Wols Lists
2016-09-23 17:35 ` WNSDEV
2016-09-23 18:43 ` Wols Lists
2016-09-23 19:02 ` Peter Sangas [this message]
2016-09-24 3:38 ` Phil Turmel
2016-09-24 13:18 ` Wols Lists
2016-09-26 14:01 ` Phil Turmel
2016-09-26 16:44 ` Wols Lists
2016-09-26 21:19 ` Phil Turmel
2016-09-26 21:37 ` Wols Lists
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='004e01d215cd$089e8090$19db81b0$@wnsdev.com' \
--to=pete@wnsdev.com \
--cc=antlists@youngman.org.uk \
--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.