HP Smart Array Controller

From Lolly's Wiki
Revision as of 20:27, 25 November 2021 by Lollypop (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
Jump to navigationJump to search

ssacli

Install the tool

<syntaxhighlight lang=bash>

  1. 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
  2. curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | sudo apt-key add -
  3. apt update && apt install --yes ssacli

</source>

Revive formerly failed disk

<syntaxhighlight lang=bash>

  1. 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

  1. 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
  1. ssacli ctrl slot=0 ld 5 modify reenable forced
  2. 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
  1. 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 </source>

hpacucli

reenable disk after replacement

<syntaxhighlight lang=bash> [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)

</source>