All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about raid 10 and raid 1+0 setup
@ 2011-11-21 20:20 Holger Kiehl
  2011-11-22  6:09 ` Holger Kiehl
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Kiehl @ 2011-11-21 20:20 UTC (permalink / raw)
  To: linux-raid

Hello,

I have a system with two separate controllers and each controller has
8 disk connected to it, so the disk are numbered as follows:

    controller 1   sd[abcdefgh]
    controller 2   sd[ijklmnop]

Now I would like to setup a raid 10 from 7 disk from each controller.
The first disk on each controller (sda and sdi) is used for some other
purpose. How does one set it up, so that if for example controller 1
fails, the array is still working? Does the following command achieve
what I want:

  mdadm -C /dev/md3 -l10 -n14 --metadata=1.1 --layout=n2 /dev/sd[bkcldmenfogphj]1

If yes, what happens for example if say disk sdc fails and is replaced
after one day? Will it keep the order so always one controller can
break.

I tried setting this up using Raid 1+0 as follows:

  First creating the Raid 1
    mdadm -C /dev/md3 -l1 -n2 --metadata=1.1 /dev/sd[bj]1
    mdadm -C /dev/md4 -l1 -n2 --metadata=1.1 /dev/sd[ck]1
    mdadm -C /dev/md5 -l1 -n2 --metadata=1.1 /dev/sd[dl]1
    mdadm -C /dev/md6 -l1 -n2 --metadata=1.1 /dev/sd[em]1
    mdadm -C /dev/md7 -l1 -n2 --metadata=1.1 /dev/sd[fn]1
    mdadm -C /dev/md8 -l1 -n2 --metadata=1.1 /dev/sd[go]1
    mdadm -C /dev/md9 -l1 -n2 --metadata=1.1 /dev/sd[hp]1

  Then comes the Raid 0
    mdadm -C /dev/md10 -l 0 -n 7 --metadata=1.1 /dev/md[3456789]

This works fine only that I do not manage to set this under
scientific linux 6.1 up so it comes up after a reboot. Only the
Raid 1's will be there after a reboot, not the Raid 0 on top.
Any idea what I am doing wrong?

Regards,
Holger

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question about raid 10 and raid 1+0 setup
  2011-11-21 20:20 Question about raid 10 and raid 1+0 setup Holger Kiehl
@ 2011-11-22  6:09 ` Holger Kiehl
  0 siblings, 0 replies; 2+ messages in thread
From: Holger Kiehl @ 2011-11-22  6:09 UTC (permalink / raw)
  To: linux-raid

On Mon, 21 Nov 2011, Holger Kiehl wrote:

> Hello,
>
> I have a system with two separate controllers and each controller has
> 8 disk connected to it, so the disk are numbered as follows:
>
>    controller 1   sd[abcdefgh]
>    controller 2   sd[ijklmnop]
>
> Now I would like to setup a raid 10 from 7 disk from each controller.
> The first disk on each controller (sda and sdi) is used for some other
> purpose. How does one set it up, so that if for example controller 1
> fails, the array is still working? Does the following command achieve
> what I want:
>
> mdadm -C /dev/md3 -l10 -n14 --metadata=1.1 --layout=n2 
> /dev/sd[bkcldmenfogphj]1
>
> If yes, what happens for example if say disk sdc fails and is replaced
> after one day? Will it keep the order so always one controller can
> break.
>
> I tried setting this up using Raid 1+0 as follows:
>
>  First creating the Raid 1
>    mdadm -C /dev/md3 -l1 -n2 --metadata=1.1 /dev/sd[bj]1
>    mdadm -C /dev/md4 -l1 -n2 --metadata=1.1 /dev/sd[ck]1
>    mdadm -C /dev/md5 -l1 -n2 --metadata=1.1 /dev/sd[dl]1
>    mdadm -C /dev/md6 -l1 -n2 --metadata=1.1 /dev/sd[em]1
>    mdadm -C /dev/md7 -l1 -n2 --metadata=1.1 /dev/sd[fn]1
>    mdadm -C /dev/md8 -l1 -n2 --metadata=1.1 /dev/sd[go]1
>    mdadm -C /dev/md9 -l1 -n2 --metadata=1.1 /dev/sd[hp]1
>
>  Then comes the Raid 0
>    mdadm -C /dev/md10 -l 0 -n 7 --metadata=1.1 /dev/md[3456789]
>
> This works fine only that I do not manage to set this under
> scientific linux 6.1 up so it comes up after a reboot. Only the
> Raid 1's will be there after a reboot, not the Raid 0 on top.
> Any idea what I am doing wrong?
>
Sorry, but I forgot to mention that scientific linux 6.1 uses mdadm 3.2.1
and kernel 2.6.32-131.17.1

Regards,
Holger

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-22  6:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 20:20 Question about raid 10 and raid 1+0 setup Holger Kiehl
2011-11-22  6:09 ` Holger Kiehl

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.