1 |
I have four identical SATA disks and want to create a Software RAID 10 |
2 |
array for my new gentoo system. But I am quite a newbie for the RAID |
3 |
area. I googled but found nothing teach me how to setup a RAID10 on |
4 |
four disks -- all the tutorials, howto, etc. are talking about setup |
5 |
RAID1 or RAID0 or mix these two up on two disks. |
6 |
|
7 |
I fdisk all my four disks to the following: |
8 |
|
9 |
livecd ~ # sfdisk -d /dev/sda |
10 |
# partition table of /dev/sda |
11 |
unit: sectors |
12 |
|
13 |
/dev/sda1 : start= 63, size= 144522, Id=fd |
14 |
/dev/sda2 : start= 144585, size= 1975995, Id=82 |
15 |
/dev/sda3 : start= 2120580, size= 39086145, Id=fd |
16 |
/dev/sda4 : start= 41206725, size=115089660, Id=fd |
17 |
|
18 |
/dev/sdb, /dev/sdc and /dev/sdd are all fdisk'ed as the same as /dev/sda. |
19 |
|
20 |
As grub cannot be setup on RAID0 (neither RAID 1+0 nor RAID 0+1), I have |
21 |
to create a four-partion RAID1 with /dev/sd[abcd]1 and mount it as /boot. |
22 |
|
23 |
Then I want both my / and /var are RAID10. I use the following schema: |
24 |
|
25 |
/dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3 |
26 |
| | | | |
27 |
+--(RAID1)---+ +---(RAID1)--+ |
28 |
| | |
29 |
/dev/md3 /dev/md4 |
30 |
| | |
31 |
+---------(RAID0)----------+ |
32 |
| |
33 |
/dev/md5 |
34 |
|
35 |
and mount /dev/md5 as /. The same as /dev/sd[abcd]4 for a /dev/md8 as /var. |
36 |
|
37 |
After mkraid, I followed the Gentoo Handbook and installed system, build |
38 |
all RAID and driver mapping options into kernel. But after reboot, |
39 |
kernel panic! The error message says it can not mount / on /dev/md5 |
40 |
because it doesn't exist. |
41 |
|
42 |
>From the messages on the boot screen, it seems the kernel can assemble |
43 |
the two RAID1's and create /dev/md3 and /dev/md4, but it can not |
44 |
assemble /dev/md5. Maybe because /dev/md5 is based on two md devices? |
45 |
|
46 |
I tried RAID1 on two RAID0's but with no luck, either. |
47 |
|
48 |
How can I create a system which root partion is RAID10? |
49 |
|
50 |
-- |
51 |
Qiangning Hong |
52 |
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn) |
53 |
|
54 |
Registered Linux User #396996 |
55 |
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> |
56 |
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183> |
57 |
-- |
58 |
gentoo-user@g.o mailing list |