|
发表于 2007-2-16 19:23:02
|
显示全部楼层
ArchWiki有编Configuring mkinitcpio讲到software raid,不知道对你有没有帮助
Using raid
First add the raid hook to the HOOKS list in /etc/mkinitcpio.conf
Kernel Parameters: Specify your md arrays with: md= parameter: (see below). Note that only adding the raid array you're booting from is enough.
Example: md=0,/dev/sda3,/dev/sda4 md=1,/dev/hda1,/dev/hdb1
Then add the following to the kernel line in grub/menu.lst:
Example: md=0,/dev/sda3,/dev/sda4 md=1,/dev/hda1,/dev/hdb1
So that it looks like:
kernel /vmlinuz26beyond root=/dev/md0 ro md=0,/dev/sda1,/dev/sdb1
This will setup 2 md arrays with persistent superblocks
Setup:
- for old raid arrays without persistent superblocks:
md=<md device no.>,<raid level>,<chunk size factor>,<fault level>,dev0,dev1
- for raid arrays with persistent superblocks:
md=<md device no.>,dev0,dev1,...,devn
- for, to assemble a partitionable array:
md=d<md device no.>,dev0,dev1,...,devn
Parameters:
- <md device no.> = the number of the md device:
0 means md0, 1 means md1, ...
- <raid level> = -1 linear mode, 0 striped mode
other modes are only supported with persistent super block
- <chunk size factor> = (raid-0 and raid-1 only):
Set the chunk size as 4k << n.
- <fault level> = totally ignored
- <dev0-devn>: e.g. /dev/hda1,/dev/hdc1,/dev/sda1,/dev/sdb1
我也刚编译了这篇wiki文章,但有些部分,如raid之类的,因为没用过,没有那个硬件条件,所以没有翻译。 |
|