2

Installing RHEL 7 or CentOS 7 on older HP RAID controllers

 2 years ago
source link: https://wsgzao.github.io/post/cciss/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

针对老的硬件安装新的操作系统,无论是 Windows 还是 Linux 很多时候都会遇到无法识别磁盘阵列卡的情况,一般情况下通过 dd 加载官方或者老版本 ISO 中的驱动识别 RAID 阵列卡即可,但这次遇到的 HP DL580 比较特别,需要修改引导参数来解决,详细原因可以参考扩展阅读。本文主要以在 HP DL580 上部署 RHEL 7 为例,灵感来源于国外的一篇文章 Installing CentOS 7 on older HP ProLiants,在此表示由衷的感谢。

使用 hpsa.hpsa_allow_any=1 忽略控制器检测识别磁盘阵列


2015 年 12 月 31 日 - 更新细节描述
2015 年 12 月 03 日 - 初稿

阅读原文 - https://wsgzao.github.io/post/cciss/


Problem

A quick google brought up this StackOverflow article.

CentOS 7 x64 and HP Proliant DL360 G5 SCSI Controller compatibility - http://serverfault.com/questions/611182/centos-7-x64-and-hp-proliant-dl360-g5-scsi-controller-compatibility

PROBLEM: RHEL7 removes the the the CCSIS driver and you need to load the kernel component correctly before it can see any drives.

There are two parts to this install:

  1. Loading the kernel component for the installer (or rather allow HPSA to load any old driver)
  2. Altering the bootloader to ensure that on boot the kernel uses the same HPSA directives, otherwise after install it’ll boot and guess what… it won’t see your drives!

RHEL 7

第一次安装

  1. 加载 RHEL 7.1 的 ISO 镜像引导至安装画面
  2. 选择 Install Red Hat Enterprise Linux 7.1
  3. 按一下 Tab,在 quiet 后空格加入 hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1
  4. 按步骤一路执行,识别硬盘开始安装

安装重启修复引导

  1. 加载 RHEL 7.1 的 ISO 镜像引导至安装画面
  2. 选择 Trubleshooting→Rescue a Red Hat Enterprise Linux system
  3. 按一下 Tab,在 quiet 后空格加入 hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1
  4. 按步骤一路执行,识别硬盘挂载系统分区至 /mnt/sysimage
  5. 手动修改 /boot/grub2/grub.cfg,重启后进入系统
chroot /mnt/sysimage
cd /boot/grub2/
cp grub.cfg grub.cfg.bak

vi grub.cfg
# 在启动菜单处 quiet 空格加入参数,注意有两处请仔细甄别
quiet hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1

# 保存退出重启
:x
exit
init 6

# 重启后卡住
可以尝试第二个 rescue 启动项试试

CentOS 7

CentOS 7 and older HP RAID controllers - http://jordanappleson.co.uk/linux/2014/09/18/centos-7-and-hp-raid-drivers/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK