前言
針對老的硬件安裝新的操作系統(tǒng),無論是Windows還是Linux很多時候都會遇到無法識別磁盤陣列卡的情況,一般情況下通過dd加載官方或者老版本ISO中的驅(qū)動識別RAID陣列卡即可,但這次遇到的HP DL580比較特別,需要修改引導(dǎo)參數(shù)來解決,詳細原因可以參考擴展閱讀。本文主要以在HP DL580上部署RHEL 7為例,靈感來源于國外的一篇文章Installing CentOS 7 on older HP ProLiants,在此表示由衷的感謝。
使用hpsa.hpsa_allow_any=1忽略控制器檢測識別磁盤陣列
更新記錄
2015年12月03日 - 初稿
閱讀原文 - http://wsgzao.github.io/post/cciss/
擴展閱讀
- HP Smart Array CCISS driver - http://cciss.sourceforge.net/
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:
- Loading the kernel component for the installer (or rather allow HPSA to load any old driver)
- 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
第一次安裝
- 加載RHEL 7.1的ISO鏡像引導(dǎo)至安裝畫面
- 選擇
Install Red Hat Enterprise Linux 7.1 - 按一下
Tab,在quiet后空格加入quiet hpsa.hpsa_allow_any=1 - 按步驟一路執(zhí)行,識別硬盤開始安裝
安裝重啟修復(fù)引導(dǎo)
- 加載RHEL 7.1的ISO鏡像引導(dǎo)至安裝畫面
- 選擇
Trubleshooting→Rescue a Red Hat Enterprise Linux system - 按一下
Tab,在quiet后空格加入quiet hpsa.hpsa_allow_any=1 - 按步驟一路執(zhí)行,識別硬盤掛載系統(tǒng)分區(qū)至
/mnt/sysimage - 手動修改
/boot/grub2/grub.cfg,重啟后進入系統(tǒng)
chroot /mnt/sysimage
cd /boot/grub2/grub.cfg
cp grub.cfg grub.cfg.bak
vi grub.cfg
#在啟動菜單處quiet空格加入?yún)?shù)
quiet hpsa.hpsa_allow_any=1
#保存退出重啟
:x
exit
init 6
CentOS 7
CentOS 7 and older HP RAID controllers - http://jordanappleson.co.uk/linux/2014/09/18/centos-7-and-hp-raid-drivers/