* Creating Raid10 with mdadm
@ 2002-10-10 16:50 Stephen Lee
2002-10-10 19:00 ` Derek Vadala
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Lee @ 2002-10-10 16:50 UTC (permalink / raw)
To: Raid
Hi,
Can anyone point me to an example of how to create a raid10 with 4 scsi
drives using mdadm? I have created raid1 and raid5 using mdadm so it's a
matter of getting the md device naming and grouping correct. This is for
a Redhat7.3 box.
Thanks,
Stephen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating Raid10 with mdadm
2002-10-10 16:50 Creating Raid10 with mdadm Stephen Lee
@ 2002-10-10 19:00 ` Derek Vadala
2002-10-12 16:29 ` Stephen Lee
0 siblings, 1 reply; 3+ messages in thread
From: Derek Vadala @ 2002-10-10 19:00 UTC (permalink / raw)
To: Stephen Lee; +Cc: Raid
On 10 Oct 2002, Stephen Lee wrote:
> Can anyone point me to an example of how to create a raid10 with 4 scsi
> drives using mdadm? I have created raid1 and raid5 using mdadm so it's a
> matter of getting the md device naming and grouping correct. This is for
> a Redhat7.3 box.
First create each of the mirrors:
(dont forget to susbstitute the proper SCSI devices for your system)
mdadm -Cv /dev/md0 -l1 -n2 /dev/sda1 /dev/sdb1
mdadm -Cv /dev/md1 -l1 -n2 /dev/sdc1 /dev/sdd1
Now create a RAID-0 that uses /dev/md0 and /dev/md1 as its component
disks:
mdadm -Cv /dev/md2 -l0 -n2 /dev/md0 /dev/md1
So your RAID-10 is at /dev/md2 and it contains the mirror member arrays
/dev/md0 and /dev/md1.
Don't forget that you need to start /dev/md0 and /dev/md1 before you can
start /dev/md2.
---
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating Raid10 with mdadm
2002-10-10 19:00 ` Derek Vadala
@ 2002-10-12 16:29 ` Stephen Lee
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Lee @ 2002-10-12 16:29 UTC (permalink / raw)
To: Derek Vadala; +Cc: Raid
On Thu, 2002-10-10 at 12:00, Derek Vadala wrote:
> On 10 Oct 2002, Stephen Lee wrote:
>
> > Can anyone point me to an example of how to create a raid10 with 4 scsi
> > drives using mdadm? I have created raid1 and raid5 using mdadm so it's a
> > matter of getting the md device naming and grouping correct. This is for
> > a Redhat7.3 box.
>
> First create each of the mirrors:
> (dont forget to susbstitute the proper SCSI devices for your system)
>
> mdadm -Cv /dev/md0 -l1 -n2 /dev/sda1 /dev/sdb1
> mdadm -Cv /dev/md1 -l1 -n2 /dev/sdc1 /dev/sdd1
>
> Now create a RAID-0 that uses /dev/md0 and /dev/md1 as its component
> disks:
>
> mdadm -Cv /dev/md2 -l0 -n2 /dev/md0 /dev/md1
>
> So your RAID-10 is at /dev/md2 and it contains the mirror member arrays
> /dev/md0 and /dev/md1.
>
> Don't forget that you need to start /dev/md0 and /dev/md1 before you can
> start /dev/md2.
>
Thanks Derek. Couple of questions.
First, do I specify the assembly of the devices in the kernel parameters
as follows (using Grub)?
kernel /vmlinuz ro md=0,/dev/sda1,/dev/sdb1 md=1,/dev/sdc1,/dev/sdd1 \
md=3,/dev/md0,/dev/md1 root=/dev/md3
Does the above line satisfy the requirement for md0 and md1 be started
before md3?
Second, could I do a non-raid install on /dev/sda first and then build
the raid10 array with /dev/sda failed and then adding it back in later?
I only have 4 drives.
Thanks again for your help,
Stephen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-12 16:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 16:50 Creating Raid10 with mdadm Stephen Lee
2002-10-10 19:00 ` Derek Vadala
2002-10-12 16:29 ` Stephen Lee
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).