TechSomething

HP Smartarray P212 and Debian 6

How to manage your fantastic RAID controller under Debian?

I was interested mainly in having the volumes and disks status to avoid data loss, you can use 2 tools:

cciss_vol_status

to install it under Debian simply do:

apt-get install cciss-vol-status

the tool monitors the status of the controller, like:

user@debian:~$ sudo cciss_vol_status /dev/cciss/c*d0
/dev/cciss/c0d0: (Smart Array P212) RAID 5 Volume 0 status: OK.

which is quite useful to see the status, possible statuses are:

  "OK." (0) - The logical drive is in good working order.

  "FAILED." (1) - The logical drive has failed,  and  no  i/o  to	it  is
  poosible.
    Additionally, failed drives will be identified by connector, box
    and bay, as well as vendor, model, serial number,  and  firmware
    revision.

  "Using interim recovery mode." (3) - One or more drives has failed,
    but  not	so  many that the logical drive can no longer operate.
    The failed drives should be replaced as soon as possible.

  "Ready for recovery operation." (4) -  Failed drive(s) have been
    replaced, and the controller is about to begin rebuilding redun
    dant parity data.

  "Currently recovering." (5) - Failed drive(s) have been replaced,
    and  the	controller  is	currently  rebuilding redundant parity
    information.

you can find the al the statutes and everything on the command here: http://cciss.sourceforge.net/cciss_vol_status.8.html
where I found all these useful informations? on this site: http://hwraid.le-vert.net/wiki/SmartArray
HP AcuCli
the other method is using HP’ ACU CLI for Debian (Array Controller Utility Command Line Interface),
you can find the last version fo ACUCLI for Debian on this HP’s FTP mirror: http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/debian/pool/non-free/
the last 64bit one is: hpacucli_8.70-8.0.2-2_amd64.deb, so you can download it to your server using wget:
wget http://downloads.linux.hp.com/SDR/repo/mcp/Debian/pool/non-free/hpacucli_9.40.1-1._amd64.deb
you can install the package following these steps (info found on this SITE), install dependencies:
#apt-get install lib32gcc1 lib32stdc++6
install your acucli .deb package
#dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb
well done, now you can use the acucli to retrieve the system status or even configure and manage the controller,
to display the volumes and it’s status on the controller:
user@debian:~$ sudo hpacucli ctrl slot=1 logicaldrive all show status
logicaldrive 1 (5.5 TB, RAID 5): OK

to display the status of the disks:

user@debian:~$ sudo hpacucli ctrl slot=1 pd all show status

physicaldrive 1I:0:1 (port 1I:box 0:bay 1, 2 TB): OK
physicaldrive 1I:0:2 (port 1I:box 0:bay 2, 2 TB): OK
physicaldrive 1I:0:3 (port 1I:box 0:bay 3, 2 TB): OK
physicaldrive 1I:0:4 (port 1I:box 0:bay 4, 2 TB): OK

Where I found all these useful informations?

http://hwraid.le-vert.net/wiki/SmartArray
http://www.ganesh.me/337-install-hpacucli-on-ubuntu-debian.html
http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm
HP REPOSITORY FOR LINUX: http://downloads.linux.hp.com/SDR/repo/mcp/Debian/pool/non-free/