I have four identical SATA disks and want to create a Software RAID 10
array for my new gentoo system.  But I am quite a newbie for the RAID
area.  I googled but found nothing teach me how to setup a RAID10 on
four disks -- all the tutorials, howto, etc. are talking about setup
RAID1 or RAID0 or mix these two up on two disks.

I fdisk all my four disks to the following:

livecd ~ # sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=   144522, Id=fd
/dev/sda2 : start=   144585, size=  1975995, Id=82
/dev/sda3 : start=  2120580, size= 39086145, Id=fd
/dev/sda4 : start= 41206725, size=115089660, Id=fd

/dev/sdb, /dev/sdc and /dev/sdd are all fdisk'ed as the same as /dev/sda.

As grub cannot be setup on RAID0 (neither RAID 1+0 nor RAID 0+1), I have
to create a four-partion RAID1 with /dev/sd[abcd]1 and mount it as /boot.

Then I want both my / and /var are RAID10.  I use the following schema:

/dev/sda3    /dev/sdb3    /dev/sdc3    /dev/sdd3
    |            |            |            |
    +--(RAID1)---+            +---(RAID1)--+
          |                          |
       /dev/md3                   /dev/md4
          |                          |
          +---------(RAID0)----------+
                       |
                    /dev/md5

and mount /dev/md5 as /.  The same as /dev/sd[abcd]4 for a /dev/md8 as /var.

After mkraid, I followed the Gentoo Handbook and installed system, build
all RAID and driver mapping options into kernel.  But after reboot,
kernel panic!  The error message says it can not mount / on /dev/md5
because it doesn't exist.

>From the messages on the boot screen, it seems the kernel can assemble
the two RAID1's and create /dev/md3 and /dev/md4, but it can not
assemble /dev/md5.  Maybe because /dev/md5 is based on two md devices?

I tried RAID1 on two RAID0's but with no luck, either.

How can I create a system which root partion is RAID10?

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list

Reply via email to