1)http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5
本主题介绍在两个HDD上手动安装GRUB,据我所知这是最常用的解决方案,但本主题有这样的警告:
This article addresses an approach for setting up of software (mdraid) RAID1 at install time on systems without a true hardware RAID* controller. It is NOT supported by the CentOS project; it is NOT a recommended approach for non-hobby users
2)http://wiki.centos.org/HowTos/Install_On_Partitionable_RAID1
If you are installing a system on a partitionable RAID you can use the whole hard drive as a RAID component device,and since RAID1 is a mirror,you will be able to boot your system from any of the drives in case of failure without any additional tricks required to preserve bootloader configuration,etc.
看起来就像我需要的那样,但我搜索了有关可分区RAID的互联网,发现它有很多错误.我甚至发现上游不支持这种方式的信息(找不到我看到的).
那么在软件RAID 1上安装CentOS 6.4的正确方法是什么?我希望系统在其中一个磁盘发生故障时启动.
解决方法
# grub-install /dev/sda
# grub-install /dev/sdb
要么
# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
在此之后,您可以尝试在测试目的中仅使用一个驱动器加载系统.