linux – 在CentOS 6.4中安装软件RAID 1的正确方法是什么?

我将在HP ProLiant ML310e Gen8服务器上安装CentOS 6.4.这个服务器有fakeraid控制器所以我决定使用软件raid.问题是我不知道如何使用软件RAID 1正确安装GRUB和/或引导扇区,以便在一个硬盘发生故障的情况下成功启动系统. CentOS wiki有2个关于这个问题的主题

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的正确方法是什么?我希望系统在其中一个磁盘发生故障时启动.

解决方法

您应该尝试其中一个(如果您的RAID 1中有/ dev / sda和/ dev / sdb):

# grub-install /dev/sda
# grub-install /dev/sdb

要么

# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)

在此之后,您可以尝试在测试目的中仅使用一个驱动器加载系统.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...