1.下载RAID工具hpacucli
2.安装hpacucli
rpm -ivh hpacucli-9.30-15.0.x86_64.rpm
3.hpacucli命令集
【查看】
hpacucli ctrl all show //所有外插阵列卡
hpacucli ctrl all show config detail //所有RAID配置信息
hpacucli ctrl slot=2 show config detail //slot2 详细RAID配置信息
hpacucli ctrl slot=2 pd all show //slot2 阵列卡连接的物理磁盘(slot2即PCI 2槽位)
hpacucli ctrl slot=2 ld all show //slot2 阵列卡配置的逻辑盘
【创建】
Hpacucli ctrl slot=2 create type=ld drives=2I:1:1-2I:1:11 raid=5 stripesize=1024 size=5120 //11块磁盘创建RAID5
详解:
Slot=2 外插PCI 2槽位的阵列卡
Type=ld 创建的阵列类型为逻辑卷
Stripesize=1024 设置块大小为1M(默认单位为KB)
Drives=2I:1:1-2I:1:11 选择从bay1至bay11磁盘(此处为磁盘编号