微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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)

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

原文地址:https://www.jb51.cc/linux/397562.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐