We have installation of debian-6 (amd64) on hardware raid1 with lsi controller 9260-4i. And we want to monitor raid staus with nagios..
In debian repositories is present package mpt-status, but it can't help in this situation. After installation mpt-status don't work properly.
The solution is to use MegaCli package from lsi.
But it is very hard to find and download this package// avaliable link to download MegaCli is http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.02.16_MegaCLI.zip .
Download it .
Unzip file. You will have rpm file. We use Debian, so we need to run (extrat file from rpm)
rpm2cpio MegaCli-8.02.16-1.i386.rpm | cpio -idmv
you will have both executable files: for 32 and 64 - architecture .
The binaries are statically compiled so actually run fine.
you can also need to install libsysfs2 , which is need for MegaCli. And if libsysfs version is difeerent you can create sym link to existing .
In this situation, it simply turned out my drives were setup as RAID 1 mirrors, which was easy to discern using:
./MegaCli64 -CfgDsply -aALL
Most useful command is:
#Physical Disk List
./MegaCli64 -PDList -aALL
#Physical Drive Info
./MegaCli64 -pdInfo -PhysDrv \[252:4\] -aALL |less
#Logical Disk Info
./MegaCli64 -LDInfo -LAll -aAll | less
# Config Display
./MegaCli64 -CfgDsply -aALL
# Config add Logical Drive
./MegaCli64 -CfgLdAdd -r0 \[252:4,252:5\] -a0
# Logical Drive Init
./MegaCli64 -LDInit -Start -L2 -a0
No comments:
Post a Comment