HP Smart Array Controller
From Lolly's Wiki
ssacli
Install the tool
# echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu $(lsb_release --short --codename)/current non-free" >> /etc/apt/sources.list.d/hp.list
# curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | sudo apt-key add -
# apt update && apt install --yes ssacli
Revive formerly failed disk
# lsscsi
[0:0:0:0] storage HP P440ar 2.52 -
[0:1:0:0] disk HP LOGICAL VOLUME 2.52 /dev/sda
[0:1:0:1] disk HP LOGICAL VOLUME 2.52 /dev/sdb
[0:1:0:2] disk HP LOGICAL VOLUME 2.52 /dev/sdc
[0:1:0:3] disk HP LOGICAL VOLUME 2.52 /dev/sdd
[0:1:0:5] disk HP LOGICAL VOLUME 2.52 /dev/sdf
# ssacli ctrl slot=0 ld all show status
logicaldrive 1 (279.37 GB, RAID 0): OK
logicaldrive 2 (931.48 GB, RAID 0): OK
logicaldrive 3 (279.37 GB, RAID 0): OK
logicaldrive 4 (931.48 GB, RAID 0): OK
logicaldrive 5 (279.37 GB, RAID 0): Failed
logicaldrive 6 (931.48 GB, RAID 0): OK
# ssacli ctrl slot=0 ld 5 modify reenable forced
# ssacli ctrl slot=0 ld all show status
logicaldrive 1 (279.37 GB, RAID 0): OK
logicaldrive 2 (931.48 GB, RAID 0): OK
logicaldrive 3 (279.37 GB, RAID 0): OK
logicaldrive 4 (931.48 GB, RAID 0): OK
logicaldrive 5 (279.37 GB, RAID 0): OK
logicaldrive 6 (931.48 GB, RAID 0): OK
# lsscsi
[0:0:0:0] storage HP P440ar 2.52 -
[0:1:0:0] disk HP LOGICAL VOLUME 2.52 /dev/sda
[0:1:0:1] disk HP LOGICAL VOLUME 2.52 /dev/sdb
[0:1:0:2] disk HP LOGICAL VOLUME 2.52 /dev/sdc
[0:1:0:3] disk HP LOGICAL VOLUME 2.52 /dev/sdd
[0:1:0:4] disk HP LOGICAL VOLUME 2.52 /dev/sde
[0:1:0:5] disk HP LOGICAL VOLUME 2.52 /dev/sdf
hpacucli
reenable disk after replacement
[root@app02 ~]# hpacucli ctrl all show config
Smart Array P410i in Slot 0 (Embedded) (sn: 50014380141236F0)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (279.4 GB, RAID 0, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
array B (SAS, Unused Space: 0 MB)
logicaldrive 2 (279.4 GB, RAID 0, Failed)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380141236FF)
[root@app02 ~]# hpacucli controller slot=0 logicaldrive 2 modify reenable forced
[root@app02 ~]# hpacucli ctrl all show config
Smart Array P410i in Slot 0 (Embedded) (sn: 50014380141236F0)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (279.4 GB, RAID 0, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
array B (SAS, Unused Space: 0 MB)
logicaldrive 2 (279.4 GB, RAID 0, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380141236FF)