linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Darcy <kernel-lists@projecthugo.co.uk>
To: linux-raid@vger.kernel.org
Subject: mdadm --spare options
Date: Thu, 22 Dec 2005 15:12:50 +0000	[thread overview]
Message-ID: <43AAC272.6070903@projecthugo.co.uk> (raw)

Hi all,

I'm looking for some one to clear up a missunderstanding on my part.

I have 7 sata disks, /dev/sdc - /dev/sdi

They all have 1 partition on them.

I am trying to make a raid5 array out of the 7 disks including 1 spare.

Sounds simple enough.

I wasn't sure if the the ---raid-devices included the --spare-devices 
option, I assumed not due to the --spare-devices, being marked as "extra."

I've issued the following command to do this

mdadm  --create /dev/md6 --level=5 --raid-devices=6 --spare-devices=1 
/dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1

Which starting making the array no problem.

A quick check on the raid progress and I see this

md6 : active raid5 sdh1[7] sdi1[6](S) sdg1[4] sdf1[3] sde1[2] sdd1[1] 
sdc1[0]
      1225558080 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUUU_]
      [==========>..........]  recovery = 54.3% (133157472/245111616) 
finish=154.9min speed=12041K/sec


which to me reads as sc1 disk 0 sdd disk1 sde disk 2 etc etc.
The questions are

1.) what happened to the disk order - shy is sdi (the spare) disk 6 
before sdh disk 7
2.) is there a way I can specifcy which disk I want to use as the 
"spare" - thats not critical, but would be handy.
3.) the UUUUU_ suggests that 5 disks are in use and will go to UUUUUU 
when all 6 disks are synced, is there a marker for the spare, or should 
there be a marker for the spare ? again I assume not bet I've not used 
the "spare" option on the software level before.
4.) I've accepted the default, right to left striping, I'm curious to 
the pros and cons of using left to right and symentic or even asymetric. 
I can think of uses for asymetric, but the other parity layouts I'd be 
interested in hearing peoples thoughts.

Many thanks,

Matt










                 reply	other threads:[~2005-12-22 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=43AAC272.6070903@projecthugo.co.uk \
    --to=kernel-lists@projecthugo.co.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).