目录:
LSI阵列卡工具storcli64、PMC阵列卡工具arrconf
一、LSI阵列卡工具storcli64
1、 组建阵列
#1 首先查询硬盘的ID号
storcli64 /c0 show all
2 创建raid0-raid5
2.1创建raid10
_storcli64 /c0 add vd r10 size=all drive=252,4,5,6,7 pdperarray=2_
3 查看raid
storcli64 /c0/vall show
lsblk #查看盘符
4 删除raid
storcli64 /c0/v239 del
2、清除硬盘的foreign状态
storcli64 /c0 /fall del
清除前
清除后
2、 升级硬盘固件
1 查询硬盘信息
storcli64 /c0/e250/$stor_ID show all | grep -i revision
2 升级固件
storcli64 /c0/e250/s14 download src= /root/FW/3836N/UNCIA3836_SX00008C.bin
#·····························································································由此节点断开
二、PMC阵列卡工具arrconf
1 查询硬盘信息
arcconf getconfig 1 pd
也可应通过简易小脚本查询
#bin/bash
for disk in {0..20}
do
echo $disk
arcconf getconfig 1 pd 0 $disk | grep -E "Firmware |Model |Total"
done
运行结果:
2 创建阵列
1 创建
raid0-10
arcconf create 1 logicaldrive max 0 0 1
2 查看
arcconf getconfig 1 ld
3 删除
arcconf delete 1 logicaldrive all
2、 升级硬盘固件
查询id号:
arcconf getconfig 1 pd
脚本执行:
#!/bin/bash
for disk in {0..8}
do
echo $disk
arcconf getconfig 1 pd 0 $disk | grep -E "Firmware |Model |Total"
done
升级固件:
echo -e 'y\n' | arcconf imageupdate 1 device 0 $disk 32768 $SAM_fw1
升级后查询固件
arcconf getconfig 1 pd 0 $disk | grep -E 'Firmware |Model |Total Size '
脚本执行:
#!/bin/bash
#固件名称
declare -a fw="UNCIA3836_SX00008C.bin"
function arc {
#i为盘符
for i in 4 ;
do
echo "[root@localhost Desktop]# arcconf imageupdate 1 device 0 $i 32768 7JXTC604Q.bin"
echo -e 'y\n'| arcconf imageupdate 1 device 0 $i 32768 $fw
#升级后查询固件
arcconf getconfig 1 pd 0 $i | grep -E 'Firmware |Model |Total Size '
#echo "$i"
done
}
arc