Top «Prev(2005-12-02) Latest Next(2005-12-08)» Edit

pterjan's diary


2005-12-07

  megaraid monitoring

When you look for a way to monitor the hard drives inside your RAID, all the websites refer to old Dell utilities or patches for kernel 2.2 adding a monitor entry in /proc ...

After some time looking for information, I noticed that in current version /proc/megaraid/hba0/diskdrives-ch0 contains the state of my 4 drives !

Channel: 0 Id: 0 State: Online.
  Vendor: HP        Model: 18.2GB C 80-8C42  Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
Channel: 0 Id: 1 State: Online.
  Vendor: HP        Model: 18.2GB C 80-8C42  Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
Channel: 0 Id: 2 State: Online.
  Vendor: HP 18.2G  Model: ST318406LC        Rev: HP04
  Type:   Direct-Access                      ANSI SCSI revision: 02
Channel: 0 Id: 3 State: Online.
  Vendor: HP 18.2G  Model: ST318406LC        Rev: HP04
  Type:   Direct-Access                      ANSI SCSI revision: 02

So, here is the simple line I added in the crontab : */10 * * * * if diff /proc/megaraid/hba0/diskdrives-ch0 /var/lib/raid-state; then cp -f /proc/megaraid/hba0/diskdrives-ch0 /var/lib/raid-state; fi

Now if someday one disk changes state, I'll receive an email within 10 minutes listing the change :-) I think some people might be interested in adapting this to their system.

Today's TSUKKOMI(Total: 4) [Add a TSUKKOMI]
  Dark_Schneider (2005-12-07 16:25)

That's fine indeed, however having a common framework for this would be a plus.<br>See OpenBSD and its Raid management framework : http://kerneltrap.org/node/5649

  pterjan (2005-12-07 16:44)

Yes would be nice.<br>At home I use SMART tools to monitor my harddrives inside 3ware sata raid, but having something standard would be so better...

  UnixGuy (2005-12-08 04:19)

This is nice, but I just wanted to let you know the Dell(repackaged LSI) utilities include megamon which is great if you set up SNMP Trap handlers as this will generate SNMP messages. We have it set up with OpenNMS and we get incredible detail of what broke and how. You can also monitor the weekly consistency check with SNMP. It is definitely worthwhile to set it up, especially if you monitor a large number of systems.

  pterjan (2005-12-08 07:58)

Forgot to mention : I tested the utilities but they did not find my adapter (HP NetRAID 8086 1960 103c 10cc).


2004|06|07|08|09|11|
2005|01|02|05|06|07|08|09|10|11|12|
2006|01|02|03|06|08|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|12|
2011|02|04|06|
2012|01|05|11|
2013|01|02|04|06|
2014|02|
2015|06|
2017|05|07|12|