All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: linux-raid@vger.kernel.org
Subject: Re: Is my RAID 5 array working OK?
Date: Mon, 05 Jul 2004 09:38:55 +1000	[thread overview]
Message-ID: <87wu1j7374.fsf@enki.rimspace.net> (raw)
In-Reply-To: 1483.192.168.1.2.1088970622.squirrel@192.168.1.2

On 5 Jul 2004, Robin Bowes wrote:

[...]

> # mdadm -v --create /dev/md5 --chunk=128 --level=raid5 --raid-devices=6
> 	--spare-devices=0 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sde2
> 	/dev/sdf2
>
> When I look at the array to see what's happening, this is what I see:
>
> # mdadm --detail /dev/md5
> /dev/md5:
> Version : 00.90.01
> Creation Time : Sun Jul  4 20:48:07 2004
> Raid Level : raid5
> Array Size : 1218208000 (1161.77 GiB 1247.44 GB)
> Device Size : 243641600 (232.35 GiB 249.49 GB)
> Raid Devices : 6
> Total Devices : 6
> Preferred Minor : 5
> Persistence : Superblock is persistent
>
> Update Time : Sun Jul  4 20:48:07 2004
> State : clean, no-errors
> Active Devices : 5
> Working Devices : 6
> Failed Devices : 0
> Spare Devices : 1
>
> Layout : left-symmetric
> Chunk Size : 128K
>
> Rebuild Status : 2% complete
>
> Number   Major   Minor   RaidDevice State
> 0       8        2        0      active sync   /dev/sda2
> 1       8       18        1      active sync   /dev/sdb2
> 2       8       34        2      active sync   /dev/sdc2
> 3       8       50        3      active sync   /dev/sdd2
> 4       8       66        4      active sync   /dev/sde2
> 5       0        0       -1      removed
> 6       8       82        5      spare   /dev/sdf2
> UUID : 2950b4e7:893db3f0:090135ec:f9ca1574
> Events : 0.177301
>
> Why do I appear to have 7 devices? Why is device number 6 marked as
> spare? Is this normal while the array is being built? Do I just need
> to leave it working away until it finishes, or is something wrong?

As you worked out, this is part of the creation process. The reason it
is done this way is that this will apparently resync faster than just
sticking all six disks in place.

I asked the same question the first time I used the RAID-5 system. :)

  Daniel
-- 
Keep a diary and one day it'll keep you.
        -- Mae West


      parent reply	other threads:[~2004-07-04 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04 19:50 Is my RAID 5 array working OK? Robin Bowes
2004-07-04 20:51 ` Robin Bowes
2004-07-04 22:26   ` maarten van den Berg
2004-07-04 23:38 ` Daniel Pittman [this message]

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=87wu1j7374.fsf@enki.rimspace.net \
    --to=daniel@rimspace.net \
    --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.