Evgeni Golov: monitoring Adaptec RAID controllers in Debian
So I got my hands on that new machine, somewhere, somehow, and I had to make myself comfortable on it. The biggest difference in that machine and the ones I used before is the RAID controller, an Adaptec 5405, instead of the 3ware ones I used to have before. That means getting used to new tools, messages and all these things which I ll try to document here.Step 1: does vendor deliver?Well, yes, mostly. There is (mainline) kernel support for the controller, Squeeze s kernel will boot up just fine and I just throw my junk into /dev/sda and it will handle the whole raidy thingy itself. But what is when I want to check the health of the disks, to add a spare or modify the caching? Ask the mighty vendor and it will answer Yes, you can! .So I downloaded that asm_debian_x86_x64_v6_50_18570.tgz, unpacked and faced two debs, one i368 and one amd64. Yes, you could have saved half of the bandwidth if someone would have asked for the arch before, but who cares for some additional 60MiB today? So let s see what it does. Oh no, wait, there is a 1. Make sure to be in root level access. 2. Install the ASM storman .deb package. For example, if the package is storman_6.50-18570_i386.deb, then install it using the following command dpkg -i storman_6.50-18570_i386.deb 3. Adaptec Storage Manager will get installed at /usr/StorMan 4. Add the line /usr/StorMan to /etc/ld.so.conf. Then run "ldconfig". This is needed for the arcconf utility to find the path of the libstdc++.so.5 libraryWell, 1 is obvious, so is 2.
For 3: hum, /usr/StorMan? Ever heard of FHS? Don t think so.
For 4: WTF?! I prefer to get libstdc++5 from my local Debian mirror instead.But at least they provide a .deb, right? Uhm, no, it s an RPM converted via alien :( And don t dare to look at preinst, postinst and postrm (it extracts an own copy of Sun JRE 1.6u16, chmods around wildly on install and does rm -rf something on uninstall, did I see that some days ago on the webs?). Let s get rid of that package as soon as possible, I decided, and just keep arcconf (which will be described later), esp because StorMan itself seems to include some call-home functionality which I d like not to have:
cp -a /usr/StorMan/arcconf /usr/local/sbin/ apt-get remove --purge stormanStep 2: does community deliver?You can, by the way, get (better) packages at http://hwraid.le-vert.net/wiki/DebianPackages from Adam C cile (Le_Vert). I didn t test those much, but I currently use the arcconf package from there, which seems to be exactly what I need: proper dependencies and just the arcconf binary, no Java sh*t.Step 3: monitor the controllerAs this post is about monitoring, not ranting, let s continue. As mentioned before, I only have arcconf installed, which is just a cli to do stuff with the controller. If I understood the docs right, the actual StorMan is able to send notification mails when a disk dies or the controller gets eaten by aliens, but as I don t have StorMan, I have to do things myself.Adam has a aacraid-status package in his repository, which includes some minimalistic shell-daemon to monitor the output of arcconf. It didn t perfectly fit my needs (and had some hickups with my disks which refuse to report a vendor, whyever), so I decided to write something myself (slightly based on what Adam has done in aacraid-status, though).The result is on GitHub: https://github.com/evgeni/aacraidAs you can see the code contains (at the time of writing) exactly ZERO comments and there is no README either, but it s actually quite usable already.
- aacraid.py is the main magic inspired by Adam s aacraid-status, basically just parsing arcconf output
- aacraid-status prints all useful info about all controllers, arrays and disks (the output is pretty much like Adam s)
- aacraidd is a small daemon which will monitor all controllers every (per default) 5 minutes and mail you in case of status-change
/dev/twa0 -d 3ware,0 -a -s L/../../2/01 -m root /dev/twa0 -d 3ware,1 -a -s L/../../2/03This is possible with Adaptect controllers too (not through /dev/twaX obviously). You have to have the
sg module loaded, which will result in /dev/sg[012] on my machine, with sg0 being the controller itself and sg1/sg2 the both disks attached to it. Having sg loaded, one can now use smartd with:/dev/sg1 -d sat -a -s L/../../7/01 -m root /dev/sg2 -d sat -a -s L/../../7/02 -m root(
-d sat is the important option here!)Thanks to Thomas Krenn Wiki: Smartmontools mit Adaptec RAID Controller for the basic info and ostlogd.spenneberg.net: Adaptec-Raid-Controller S.M.A.R.T.-Healthstatus monitoren for the pointer to the sg module!Step 5: relaxYupp, 4 steps are enough, go relax until the next disk dies (you will be doing something REALLY important that moment according to Murphy).
Second speaker at today'sseminar,Vladimir Mojica. He is talking about th legal backing for DRM and TPM as well as laws against circumvention. He quotes USA's DMCA as one of the most complete, advanced and forward-minded laws,inviting the audience to push for such a law here.
I hope he gets to my (written)question, as today is a very important day in this regard: The Senate has requested the presidency to reject signing the ACTA treaty!
I've been getting
As most of the
I uploaded a new upstream version of the ttf-oldstandard font. The new
version is a real 2.2 while the former was numbered 2.02 by upstream
but got accidentally numbered 2.2 by us, packagers.. The occasion was
good and I renamed the source package to follow the
"yes-yes-yes-soon-to-be-published" fonts packaging policy for
naming. The new package is "fonts-oldstandard".
A new upstream version of samba was released and I packaged it just
after the last 3.5.8 package entered testing. Samba
is now 3.5.9 in unstable. I should work on backporting (for
backport.debian.org) what's entered
in testing, by the way.
I sent l10n NMU proposals for unattended-upgrades, memtest86+, cacti.
I also NMUed memtest86 (still in DELAYED).
After my
Another month, another Games Team IRC Meeting happening. This time it was decided to have it again on Sunday, the time was set to 10 am UTC. To find out the time in your localtime, issue