Linux Debian - HP Smart Array Raid Controller

Posted on Tuesday, 12 of June of 2018
1245by Octávio Gonçalveslinuxsetupsecuritycommand line

If you have the HP Smart Array Raid Controller as you will see in just a bit, this article is for you.
Take note, that you may have a different controller from this one by a different manufacturer, or it may require a different version of the software tool from HP, please check on the HP site linked below before continuing on.
There is a chance of serious data loss if you don’t follow common sense practices and MAKE BACKUPS.

We needed to do a few things:

  • find out which controller is it
  • find latest of control utility for it
  • install raid utility
  • check on the drives

Well, that isn't always easy ... sadly.

First we check who makes this system.

dmidecode | grep -A3 '^System Information'

Sample result:

System Information
Manufacturer: HP
Product Name: ProLiant DL180 G6 
Version:

Second we check lspci to see what controller we have installed.

lspci -k|grep -i -A2 raid

Sample result:

06:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01)
Subsystem: Hewlett-Packard Company Smart Array P410
Kernel driver in use: hpsa

Now we know we have a HP machine, Proliant DL180 G6 to be exact in this case, and the exact rev of the card itself.
We need to install the HP provided software for it.
The official HP software page for the information below is here.
However as its laid out, best of luck getting up and running quickly if you follow that page.

Get and install HP Keys.

curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -

Add the HP repo (be sure to change the stretch to whatever your release is).

echo -e "deb http://downloads.linux.hpe.com/SDR/repo/mcp/ stretch/current non-free" > /etc/apt/sources.list.d/hpe.list

Then update sources and install package.

apt-get update && apt-get install ssacli

Now you have the tools needed for the job! so run the utility.

ssacli

sample result:

HP Smart Storage Administrator CLI 3.10.3.0
    Detecting Controllers…Done.
    Type “help” for a list of supported commands.
    Type “exit” to close the console.
    =>

There are a few commands you can use on this CLI:

Show all config :

=> ctrl all show config
Smart Array P410 in Slot 1                (sn: PTCCRID92560K55)
   Port Name: 1I
   Port Name: 2I
   DL18xG6BP        at Port 1I, Box 1, OK
   Array A (SATA, Unused Space: 0  MB)
      logicaldrive 1 (5.5 TB, RAID 1+0, OK)
      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 3 TB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 3 TB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA HDD, 3 TB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA HDD, 3 TB, OK)
   Enclosure SEP (Vendor ID HP, Model DL18xG6BP) 248  (WWID: 5001438018357BC3, Port: 1I, Box: 1)
   Expander 250  (WWID: 5001438018357BB0, Port: 1I, Box: 1)
   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 249  (WWID: 500143801890BFDF)
=>

Show Status:

=> ctrl all show status
Smart Array P410 in Slot 4
Controller Status: OK
Cache Status: OK

Show all logical drives:

=> ctrl slot=1 ld all show
Smart Array P410 in Slot 1
Array A
logicaldrive 1 (5.5 TB, RAID 1+0, OK)

We have many other commands to explore.
So, if you want you can explore more possibilities, typing:

ssacli -help

Share or save this article

slashdot