Howto: RAID status on HP servers


Here is how you can view the status of your RAID configuration and the status of your physical drives.
First we have to download and install the hpacucli tool.

CentOS:

# wget http://how2forge.info/files/hpacucli-8.60-8.0.noarch.rpm
# rpm -ivh hpacucli-8.60-8.0.noarch.rpm

Debian:

# wget http://how2forge.info/files/hpacucli_8.60-8.0_i386.deb
# dpkg -i hpacucli_8.60-8.0_i386.deb

Once the tool is installed, start it:

# hpacucli
HP Array Configuration Utility CLI 8.60-8.0
Detecting Controllers…Done.
Type “help” for a list of supported commands.
Type “exit” to close the console.

=>

Now we are in the CLI mode of the RAID controller.
We have to find out on which slot the RAID controller is connected to, in this case it is connected on slot 2:

=> ctrl all show

Smart Array P410 in Slot 2                (sn: PACCRID11081R39)

As we know that the RAID controller is connected on slot 2, we can continue.
To view/check the status of your RAID array, use the following command:

=> ctrl slot=2 ld all show

Smart Array P410 in Slot 2

   array A

      logicaldrive 1 (558.7 GB, RAID 1+0, OK)

It seems that the logicaldrive/RAID array is OK, but we also want to check the physical drives:

=> ctrl slot=2 pd all show

Smart Array P410 in Slot 2

   array A

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 300 GB, OK)

Should you have any further questions regarding hpacucli, just let me know by sending an e-mail.