для утилиты ssacli команды идентичные, замените hpssacli на ssacli при наборе команд
Для того чтобы сконфигурировать RAID HP smart array через утилиту hpssacli необходимо проделать следующие шаги:
wget http://downloads.linux.hpe.com/SDR/repo/mcp/debian/pool/non-free/hpssacli-2.10-14.0_amd64.deb
dpkg -i hpssacli-2.10-14.0_amd64.deb
[mcp] name=Management Component Pack baseurl=http://downloads.linux.hpe.com/repo/mcp/CentOS/7.9/x86_64/current/ enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp
yum -y update yum -y install hpssacli
ssacli ctrl all show status Smart Array P400i in Slot 0 (sn: XXXXXXXXXXXXXX) Smart Array P700m in Slot 3 (sn: XXXXXXXXXXXXXX)
ssacli ctrl slot=3 pd all show Smart Array P700m in Slot 3 unassigned physicaldrive 75:1:29 (port 75:box 1:bay 29, SAS, 1000.2 GB, OK) physicaldrive 75:1:30 (port 75:box 1:bay 30, SAS, 1000.2 GB, OK) physicaldrive 75:1:31 (port 75:box 1:bay 31, SAS, 1000.2 GB, OK) physicaldrive 75:1:32 (port 75:box 1:bay 32, SAS, 1000.2 GB, OK) physicaldrive 75:1:33 (port 75:box 1:bay 33, SAS, 1000.2 GB, OK) physicaldrive 75:1:34 (port 75:box 1:bay 34, SAS, 1000.2 GB, OK)
ssacli ctrl slot=3 create type=ld drives=75:1:29,75:1:30,75:1:31,75:1:32,75:1:33,75:1:34 raid=1+0 stripesize=128
ssacli ctrl slot=3 ld all show Smart Array P700m in Slot 3 array A logicaldrive 1 (2.7 TB, RAID 1+0, OK)
ssacli ctrl slot=3 ld all delete
ssacli ctrl all show config detail | grep -E "(Controller Status|Battery/Capacitor Status)"
ssacli ctrl slot=3 array A add spares=allunassigned
Проверяем, что spare добавился
ssacli ctrl slot=3 pd all show Smart Array P700m in Slot 3 array A physicaldrive 75:1:29 (port 75:box 1:bay 29, SAS, 1000.2 GB, OK) physicaldrive 75:1:30 (port 75:box 1:bay 30, SAS, 1000.2 GB, OK) physicaldrive 75:1:31 (port 75:box 1:bay 31, SAS, 1000.2 GB, OK) physicaldrive 75:1:32 (port 75:box 1:bay 32, SAS, 1000.2 GB, OK) physicaldrive 75:1:33 (port 75:box 1:bay 33, SAS, 1000.2 GB, OK) physicaldrive 75:1:34 (port 75:box 1:bay 34, SAS, 1000.2 GB, OK) physicaldrive 75:1:35 (port 75:box 1:bay 35, SAS, 1000.2 GB, OK, spare)
Проверяем настройки контроллера
ssacli ctrl all show config detail
Меняем размер страйпа (stripe)
ssacli ctrl slot=3 logicaldrive 1 modify stripesize=512
ssacli ctrl slot=3 modify cacheratio=100/0
ssacli ctrl slot=1 pd 1I:1:1 modify led=on
ssacli ctrl slot=1 pd 1I:1:1 modify led=off
ssacli ctrl slot=2 array A modify ssdsmartpath=disable ssacli ctrl slot=2 logicaldrive 1 modify arrayaccelerator=enable
ssacli ctrl slot=0 modify hbamode=off