|
发表于 2006-1-4 15:27:44
|
显示全部楼层
看看这个连接:
http://wiki.archlinux.org/index.php/Initrd
其中我认为会对你有帮助的有:
[size=+1]Changes for RAID users
Now that we boot through an initrd, RAID users will need to do some extra configuration. First, the initrd needs to know which devices are in your root array. Previously, RAID support was built-in to the kernel, so we could take advantage of the autodetection magic that happens in there. But now that RAID is modular, the autodetection does not work. Hence this extra step.
1. Edit /etc/mkinitrd.conf and add the proper RAID settings for your root array. In this example, /dev/hda3 and /dev/hdc3 are part of the root array. (If you don't use RAID on your root array, skip this step)
- # If you use software RAID for your root device then list all the devices
- # that belong to your root array here. If your root RAID device is
- # something other than md0, then change the RAID_ROOT_ARRAY setting.
- # eg, RAID_ROOT_DEVICES="/dev/hda3 /dev/hdc3"
- RAID_ROOT_ARRAY="md0"
- RAID_ROOT_DEVICES="/dev/hda3 /dev/hdc3"
复制代码
2. Store your current RAID setup in /etc/mdadm.conf. This is quickly done with the following command:
- # mdadm -D --scan >>/etc/mdadm.conf
复制代码
You should probably look at /etc/mdadm.conf and make sure the proper ARRAY lines showed up at the bottom. Also make sure you have a line in there that says DEVICE partitions. This is crucial. It's also in Arch's default mdadm.conf, so most of you should have it.
3. Now regenerate the init ramdisk.
You're good to go!
去看看那个wiki吧,应该有用。 |
|