日常运维中,未配置带外管理,在移交系统时确认raid级别,需要重启服务器,到bios中查看,非常麻烦。
但实际发现,可以通过在系统中执行命令查看,需要安装辅助工具:MegaCli64/MegaCli,具体用法如下:
1、下载最新的rpm包安装:rpm -ivh Lib_Utils-1.00-09.noarch.rpm MegaCli-8.04.07-1.noarch.rpm
默认安装在/opt下
2、查询:
dmidecode -s system-product-name 查看服务器型号
查看服务器硬件RAID:/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL|grep "RAID Level"|tail -1|awk -F: '{print $1" :"$2}'
RAID型号对应表信息如下:
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0" #代表Raid 1
RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0" #代表Raid 0
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3" #代表Raid 5
RAID Level : Primary-1, Secondary-3, RAID Level Qualifier-0" #代表Raid10