All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tor Arne Vestbø" <torarnv@gmail.com>
To: linux-raid@vger.kernel.org
Subject: Re: Creating RAID5 with four devices and end up with 5 (one removed and one spare). Why?
Date: Mon, 3 Mar 2008 10:29:58 +0100	[thread overview]
Message-ID: <47CBC516.5050904@gmail.com> (raw)
In-Reply-To: <20080303091952.GA1125@cthulhu.home.robinhill.me.uk>

Thanks for your reply Robin!

Robin Hill wrote:
>> So what i don't get is:
>>
>> 1. Why is mdadm --examine listing "3     3       0        0        3   
>> faulty removed" and telling me I have a failed device?
>> 2. Why is one of the actual disks (sdf) used as a spare, even though I 
>> didn't ask for it?
>>
>> Thanks for any tips or insights which may put me on the right track :)
>>
> This is perfectly normal (and explained in the manual page) - the RAID5
> array is created in an initially degraded state, then rebuilt.  This
> means the array can be available for use immediately, with the rebuild
> taking place in the background.  You'll need to run 'mdadm -w /dev/md0'
> to force the array into read-write mode (it's currently started in
> auto-read-only mode) and the resync will then begin.

I had a suspicion this was the case for question number two -- why one 
of the disks initially are marked as spares. Good to have that cleared up!

But does that explain why mdadm believes I have another disk, a fifth 
disk, that has been removed? The ID numbers of the real disks are 
0,1,2,4 but I would expect 0,1,2,3:

        Number   Major   Minor   RaidDevice State
this      1       8       49        1      active sync   /dev/sdd1

     0     0       8       33        0      active sync   /dev/sdc1
     1     1       8       49        1      active sync   /dev/sdd1
     2     2       8       65        2      active sync   /dev/sde1
     3     3       0        0        3      faulty removed <-- What's up?
     4     4       8       81        4      spare   /dev/sdf1

Thanks!

Tor Arne


  reply	other threads:[~2008-03-03  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03  8:55 Creating RAID5 with four devices and end up with 5 (one removed and one spare). Why? Tor Arne Vestbø
2008-03-03  9:19 ` Robin Hill
2008-03-03  9:29   ` Tor Arne Vestbø [this message]
2008-03-03  9:55     ` Mario 'BitKoenig' Holbe
2008-03-03 10:01       ` Tor Arne Vestbø
2008-03-04  9:47       ` Tor Arne Vestbø

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=47CBC516.5050904@gmail.com \
    --to=torarnv@gmail.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.