HP Smart Array Controller: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
=ssacli= | =ssacli= | ||
=== Install the tool === | === Install the tool === | ||
< | <syntaxhighlight lang=bash> | ||
# 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 | # 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 - | # curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | sudo apt-key add - | ||
# apt update && apt install --yes ssacli | # apt update && apt install --yes ssacli | ||
</ | </syntaxhighlight> | ||
=== Revive formerly failed disk === | === Revive formerly failed disk === | ||
< | <syntaxhighlight lang=bash> | ||
# lsscsi | # lsscsi | ||
[0:0:0:0] storage HP P440ar 2.52 - | [0:0:0:0] storage HP P440ar 2.52 - | ||
Line 43: | Line 43: | ||
[0:1:0:4] disk HP LOGICAL VOLUME 2.52 /dev/sde | [0:1:0:4] disk HP LOGICAL VOLUME 2.52 /dev/sde | ||
[0:1:0:5] disk HP LOGICAL VOLUME 2.52 /dev/sdf | [0:1:0:5] disk HP LOGICAL VOLUME 2.52 /dev/sdf | ||
</ | </syntaxhighlight> | ||
=hpacucli= | =hpacucli= | ||
==reenable disk after replacement== | ==reenable disk after replacement== | ||
< | <syntaxhighlight lang=bash> | ||
[root@app02 ~]# hpacucli ctrl all show config | [root@app02 ~]# hpacucli ctrl all show config | ||
Line 87: | Line 87: | ||
SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380141236FF) | SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380141236FF) | ||
</ | </syntaxhighlight> |
Latest revision as of 03:21, 26 November 2021
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)