On 2005-08-02 20:05 Brad Dameron wrote:
On Tue, 2005-08-02 at 19:43 +0200, Anders Norrbring wrote:
Does anyone have the slightest clue on how to monitor a LSI MegaRAID SCSI 320-1 adapter in a Linux environent? I've stared myself blind on LSI's website trying to find a way. Preferably a monitoring system that can send alerts via e-mail or to a monitoring client on a WinXP system.
--
Anders Norrbring Norrbring Consulting
First off get this package from LSI. http://www.lsilogic.com/downloads/license.do?id=2000&did=7776&pid=2411
It is the driver package for SuSe 9.1. In that drive packagte is a directory called Utilities then MegaMON. In MegaMON is a file named lsi_v35.tgz. do a tar -xzvf lsi_v35.tgz. This is the monitor app you will need.
Then do a ./install -Suse. This will install the binaries and install the startup script of raidmon in /etc/init.d and set itself to start on the runlevels.
I have modified my raidmon file to include some other items. Below is mine:
------------------------------------------------------------
#!/bin/sh # # chkconfig: 2345 20 80 # description: RAIDMon is a daemon that monitors the RAID subsystem # And generates e-mail to root # processname: MegaServ.
# source function library . /lib/lsb/init-functions
case "$1" in start) megadevice="megadev0" rm -f /dev/$megadevice 2>/dev/null megamajor=`cat /proc/devices|gawk '/megadev/{print$1}' ` mknod /dev/$megadevice c $megamajor 0 2>/dev/null # New check: 10-31-01: Does node exist if [ ! -c /dev/$megadevice ] then echo " Character Device Node /dev/$megadevice does not exist. Raid Monitor could not be started " exit 1 fi
echo -n 'Starting RAID Monitor:' startproc /usr/sbin/MegaCtrl -start > /dev/null sleep 1 ; MegaCtrl -disMail touch /var/lock/subsys/raidmon MegaCtrl -enChkCon # check consistency on a Saturday at 01:00 very 4 weeks MegaCtrl -cons -h01 -w4 -d6 echo ;; stop) echo -n 'Stopping RAID Monitor:' startproc /usr/sbin/MegaCtrl -stop megadevice="megadev0" rm -f /dev/$megadevice 2>/dev/null rm -f /var/lock/subsys/raidmon 2>/dev/null echo ;; restart|reload) $0 stop $0 start ;; *) echo "RAID Monitor is not Started/Stopped" echo "Usage: raidmon {start|stop|restart}" exit 1 esac
exit 0
-----------------------------------------------------------------------
Then just start the raidmon. The above changes tell my system to to a consistency check once a month at 1:00am. This make sure my RAID5 is working like it should.
Also note there will be a log file of /var/log/megaserv.log.
I use this setup on about a dozen production machines. It works perfectly. This will work on 32bit and 64bit machines.
Brad Dameron SeaTab Software www.seatab.com
Thanks Brad! I'll give it a try... I can't find any documentation on the MegaServ application though, any tips on where I can find it? -- Anders Norrbring Norrbring Consulting