linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Software RAID 0+1 with mdadm.
@ 2005-01-25 22:28 Brad Dameron
  2005-01-25 23:04 ` Guy
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Brad Dameron @ 2005-01-25 22:28 UTC (permalink / raw)
  To: linux-raid

Been trying for days to get a software RAID 0+1 setup. This is on SuSe
9.2 with kernel 2.6.8-24.11-smp x86_64.

I am trying to setup a RAID 0+1 with 4 250gb SATA drives. I do the
following:

mdadm --create /dev/md1 --level=0 --chunk=4 --raid-devices=2 /dev/sdb1
/dev/sdc1
mdadm --create /dev/md2 --level=0 --chunk=4 --raid-devices=2 /dev/sdd1
/dev/sde1
mdadm --create /dev/md0 --level=1 --chunk=4 --raid-devices=2 /dev/md1
/dev/md2

This all works fine and I can mkreiserfs /dev/md0 and mount it. If I am
then to reboot /dev/md1 and /dev/md2 will show up in the /proc/mdstat
but not /dev/md0. So I create a /etc/mdadm.conf like so to see if this
will work:

DEVICE partitions
DEVICE /dev/md*
ARRAY /dev/md2 level=raid0 num-devices=2
UUID=5e6efe7d:6f5de80b:82ef7843:148cd518
   devices=/dev/sdd1,/dev/sde1
ARRAY /dev/md1 level=raid0 num-devices=2
UUID=e81e74f9:1cf84f87:7747c1c9:b3f08a81
   devices=/dev/sdb1,/dev/sdc1
ARRAY /dev/md0 level=raid1 num-devices=2  devices=/dev/md2,/dev/md1


Everything seems ok after boot. But again no /dev/md0 in /proc/mdstat.
But then if I do a mdadm --assemble --scan it will then load /dev/md0. 

Also do I need to create partitions? Or can I setup the whole drives as
the array?

I have since upgraded to mdadm 1.8 and setup a RAID10. However I need
something that is production worthy. Is a RAID10 something I could rely
on as well? Also under a RAID10 how do you tell it which drives you want
mirrored?

Any help appreciated. 

Thank you,
Brad Dameron
SeaTab Software
www.seatab.com


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Software RAID 0+1 with mdadm.
@ 2005-02-08 14:32 linux
  0 siblings, 0 replies; 19+ messages in thread
From: linux @ 2005-02-08 14:32 UTC (permalink / raw)
  To: brad, linux-raid

The only issue is that the md code only auto-scans non-MD partitions when
assembling a RAID array.  You can use mdadm at boot time to put them
together as other people have shown, or you can add an option to the kernel
command line (LILO append="..." option; other boot loaders have something
similar) to help it out.

Since I have my root partition on RAID1+0, I have "md=4,/dev/md2,/dev/md3"
on the kernel command line.  This gets /dev/md4 (which is a RAID-0
made of two RAID-1s) going.

Oh, regarding data placement: I also have the RAID-1 split across
controllers.  Also, I have half the mirror in removable drive trays
for emergency insta-backup (fire or other natural disaster) uses.

There are uses for such things.

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

end of thread, other threads:[~2005-02-08 14:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 22:28 Software RAID 0+1 with mdadm Brad Dameron
2005-01-25 23:04 ` Guy
2005-01-26 20:32   ` Brad Dameron
2005-01-27  5:02     ` Guy
2005-01-26 15:17 ` Luca Berra
2005-01-26 22:14   ` J. Ryan Earl
2005-01-27  5:24     ` Neil Brown
2005-01-27 16:01       ` Luca Berra
2005-01-27 17:02     ` Brad Dameron
2005-01-27  5:30 ` Neil Brown
2005-01-27  8:13   ` Holger Kiehl
2005-01-27 15:50     ` Guy
2005-01-27 16:19       ` RAID-10 with odd number of disks (was Re: Software RAID 0+1 with mdadm.) Andy Smith
2005-01-27 17:16         ` Guy
2005-01-27 17:27           ` Andy Smith
2005-01-27 17:42             ` Andy Smith
2005-01-27 18:30               ` Guy
2005-01-27 22:31           ` berk walker
  -- strict thread matches above, loose matches on Subject: below --
2005-02-08 14:32 Software RAID 0+1 with mdadm linux

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).