Goal: To have the ability to monitor the RAID status without rebooting.
The setup:
- HP Z400 workstation
- P410 HP Smart Array
- ICY 6-bay cage
- 6 SATA disks
I found that there was a supported utility for the Z400 machine, hpacucli1)http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm. The hpacucli is available for linux or as a vib2)https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_0838c22ed1c345968031a22ba0. Hope that HP link still works. I was unsuccessful in getting this to show anything on vmware 6.5u2.
Install:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
cd /tmp wget http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add - wget http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add – wget http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add – wget http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add – #!/bin/bash # download the GPG key of the repository: wget http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp -O /tmp/hpe.gpg # add downloaded key to apt apt-key add /tmp/hpe.gpg # create apt moo sources file for HP repo echo -e "deb http://downloads.linux.hpe.com/SDR/repo/mcp/ wheezy/current non-free" > /etc/apt/sources.list.d/proliant.sources.list # update apt & install hpacucli package apt-get update && apt-get install hpacucli |
Once you have hpacucli installed you should be able to launch it:
1 2 3 4 5 6 7 |
root@moo:~# hpacucli HP Array Configuration Utility CLI 9.40.12.0 Detecting Controllers...Done. Type "help" for a list of supported commands. Type "exit" to close the console. Checking the RAID status: |
To show the configuration of the controller:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
=> ctrl all show config Smart Array P410 in Slot 1 (sn: PABAQIM00100VBF) array A (SATA, Unused Space: 0 MB) logicaldrive 1 (1.4 TB, RAID 5, OK) physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK) physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK) physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, OK) physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK) array B (SATA, Unused Space: 0 MB) logicaldrive 2 (465.7 GB, RAID 1, OK) physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK) physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: M0014M008021D543CF) |
I purposely broke the array to simulate a drive failure:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
=> ctrl all show config Smart Array P410 in Slot 1 (sn: PABAQIM00100VBF) array A (SATA, Unused Space: 0 MB) logicaldrive 1 (1.4 TB, RAID 5, Interim Recovery Mode) physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK) physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK) physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, Failed) physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK) array B (SATA, Unused Space: 0 MB) logicaldrive 2 (465.7 GB, RAID 1, OK) physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK) physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: M0014M008021D543CF) |
Inserted random spare drive from an old PC:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
=> ctrl all show config Smart Array P410 in Slot 1 (sn: PABAQIM00100VBF) array A (SATA, Unused Space: 0 MB) logicaldrive 1 (1.4 TB, RAID 5, Recovering, 0% complete) physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK) physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK) physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, Rebuilding) physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK) array B (SATA, Unused Space: 0 MB) logicaldrive 2 (465.7 GB, RAID 1, OK) physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK) physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: M0014M008021D543CF) |
Latest posts by Mr-Moo (see all)
- Installing ssacli – view raid ESXI 6.5 - December 6, 2017
- Installing hpacucli on Proxmox - December 5, 2017
- Finding your node name Graylog 2.2.x - May 22, 2017
Notes & References
1. | ↑ | http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm |
2. | ↑ | https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_0838c22ed1c345968031a22ba0 |