Updated for 16.04.
This guide will help you get up and running with HP’s command line Array Configuration Utility (ACU) on Ubuntu. This guide may will be especially useful if you have an HP Proliant server, or an HP P400 \ P410 RAID card or similar.
Install the HP Linux Repository
echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial/current non-free" >> /etc/apt/sources.list.d/hp.list
Install HP Linux Repository GPG Key
wget -qO - http://downloads.linux.hpe.com/SDR/downloads/MCP/GPG-KEY-mcp | sudo apt-key add -
Prepare For The Installation
sudo apt-get update
Install Packages
sudo apt-get install cpqacuxe hpacucli hpsmh
HP Array Configuration Utility Is Now Installed!
If you’ve never used the Array Configuration Utility before, here’s a cheat sheet for the commands you might want: http://binaryimpulse.com/2013/09/hp-array-configuration-utility-command-cheat-sheet/
I may do a write-up on some of the more useful commands at a later time. For now, here’s what you should try to see if everything’s working. (Along with sample output from my server.)
root@Server:~# hpacucli ctrl all show status Smart Array P410 in Slot 3 Controller Status: OK Cache Status: OK root@Server:~# hpacucli ctrl all show config Smart Array P410 in Slot 3 (sn: ############## ) array A (SATA, Unused Space: 0 MB) logicaldrive 1 (19.1 TB, RAID 5, OK) physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 3 TB, OK) physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 3 TB, OK) physicaldrive 1I:0:3 (port 1I:box 0:bay 3, SATA, 3 TB, OK) physicaldrive 1I:0:4 (port 1I:box 0:bay 4, SATA, 3 TB, OK) physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 3 TB, OK) physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 3 TB, OK) physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 3 TB, OK) physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 3 TB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: ##############) root@Server:~#
I may do some subsequent write-ups on the HP Array Configuration Utility. Please feel free to ask questions in the comments section, but please keep in mind that I’m still learning to use this tool as well.
Thanks. You can also use repos as write here – http://sysadmin.te.ua/linux/hpraid-monitoring.html
echo ‘deb http://hwraid.le-vert.net/ubuntu precise main’ > /etc/apt/sources.list.d/raid.list
This repo has almost all raid monitoring utils for all type of raids! Regards.
Thank you very much for this helpful writeup!
Glad to be of assistance! 🙂
Or this one – http://sysadm.pp.ua/linux/hpraid-monitoring.html
The new repo for ubuntu 16.04
deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial/current non-free
please not that root domain changed from hp.com to hpE.com
Thanks for the note, I updated the article.
Address has changed to http://downloads.linux.HPE.com/SDR/downloads/MCP/ubuntu
Or for Debian users as myself:
http://downloads.linux.hpe.com/SDR/downloads/MCP/Debian/
I updated the article, thanks!
Just to mention the new download link for the repository key has changed. Check the latest link from the HPE main page: https://downloads.linux.hpe.com/
Thank you for the post… Unfortunately, I get the error that the following packages: cpqacuxe , hpacucli, and hpsmh are not found in HP depository. We are running Ubunty 16.04 LTS.
Any advises on how to fix this issue.
I believe some of the packages aren’t maintained anymore for new distributions. I believe the replacement for hpacucli is hpssacli, but older cards like the P400 are no longer supported by this utility.
Hello just trying to follow your tutorial now.
i keep receiving this error “bash: /etc/apt/sources.list.d/hp.list: Permission denied”
Any idea how to move forward?
System uses B320i Raid controller
Can you provide some context for the error? It sounds like you are attempting to execute a sources.list file. That file won’t execute anyways so I suspect a command is being run incorrectly here.
can anybody help me i have ubuntu 20.04 and a hp proliant ml150 g6 with a hp smart array p410 raid controller but i cant get it to work if i try what you say and put in ctrl all show status i get = Error: no controllers detected if i put in config i get the same i can se the raid controller in the boot meny
please help me if you want i will give you my discord or mail 😀
Unfortunately I don’t use any HP RAID hardware anymore, but maybe someone from the community will reply with an answer. The P400 controllers I used to use are no longer supported in modern Linux distros, but I think the P410 remains supported still by the hpsa driver: https://manpages.ubuntu.com/manpages/focal/man4/hpsa.4.html
For this controller you might need the “hpssacli” tool instead of “hpacucli”. I found some information here for Ubuntu 18 which might help point you in the right direction: https://www.jimmdenton.com/hp-raid-tools-ubuntu/