Monday 19 March 2012

Monitor Intel RAID under Linux(Incl. XenServer)

To monitor Intel RAID devices running under Linux(XenServer)

Download the Intel Linux RAID Tool - CMDTool2
http://downloadcenter.intel.com/Detail_Desc.aspx?lang=eng&DownloadType=undefined&OSFullname=%0A&DwnldID=18444

Unzip and run the following to install
rpm -ivh Lib_Utils-1.00-01.noarch.rpm
rpm -ivh CmdTool2-5.00.14-1.i386.rpm

Run the following to test installation
/opt/MegaRAID/CmdTool2/CmdTool2 -v

Get number of controllers
/opt/MegaRAID/CmdTool2/CmdTool2 -adpCount

Get adapter information
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpAllInfo -a0

Get Events
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpEventLog -GetEvents -a0

Get Array configuration and status
/opt/MegaRAID/CmdTool2/CmdTool2 -CfgDsply -a0

Get BBU status
/opt/MegaRAID/CmdTool2/CmdTool2 -AdpBbuCmd -GetBbuStatus -a0

3 comments:

  1. Great information! I'm a Linux newbie and was having a hard time finding info on CmdTool2.

    Quick question: what parameter would I use to just check the status of a 2-disk logical drive (RAID1)? The parameter "-LDInfo -L0 -a0" seems to be the simplest but it still contains more info than what I care about. All I really want to know is what the "State" of the logical drive is (Optimal/Degraded/Failed/etc). Thanks in advance and I hope to hear back from you soon.

    -Lazarus

    ReplyDelete
    Replies
    1. Hi Lazarus,

      The command reference for the CmdTool2 is located here: http://download.intel.com/support/motherboards/server/sb/e36092004_intelraidcontrollercommandlinetool2_user.pdf

      Judging by your post you have done some investigation of the available options. I don't think there is a simpler output from the command. Unless we can get the source code, I think we're stuck with that....

      Another solution is to pipe the output to a Perl script that can parse and generate the output you need.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete