| « TDC Huawei E180 tiny hack | Firmware upgrade Perc6/e on unsupported Linux » |
RAID monitoring on Sun servers
Very brief blog post (but > 140 characters...)
After buying Sun server and realizing that they are NOT using LSI RAID controllers and MegaCli will not work, do not despair.
Yes it is Adaptec. Or a Sun-ified Adaptec called Storagetek, whatever.
Do what you would otherwise never do: Look on the CD that came with the server. (Or download from Sun's download page http://www.sun.com/servers/x64/x4450/downloads.jsp, but these non-understanding people requires you to register and I can never remember what password I used. Geek appeal -1).
You are looking for something called Storman. The package on the cd is called asm_linux_x64_v5_30_17509.rpm (or x86 if that stuff still exists
and it can be alien'ed to debian with no hacks necessary at all:
alien asm_linux_x64_v5_30_17509.rpm
The package storman_5.30-17510_amd64.deb comes out of it and can be installed with
dpkg -i storman_5.30-17510_amd64.deb.
apt-get install libstdc++5.
chmod u+x /usr/StorMan/arcconf.
Now try the following commands:
/usr/StorMan/arcconf GETCONFIG 1 AL
/usr/StorMan/arcconf GETCONFIG 1 Ad
If you have more than one RAID controller I assume the next one has number 2.
The rest is easy. My little RAID monitoring cron entry:
10 * * * * /usr/StorMan/arcconf GETCONFIG 1 Ad |grep "Controller Status" |grep Optimal >>/dev/null || /usr/StorMan/arcconf GETCONFIG 1 AL | /usr/bin/mail myemailaddress@example.com -s "Servername RAID problem!!!"
This has been tried on a Sun Fire X4170 and a Sun Fire X4450 running Debian Lenny.