Not very user friendly with documentation but I guess at least it runs!
$ unzip 1.01.39_Linux_Cli.zip
$ rpm -Uvh MegaCli-1.01.39-0.i386.rpm
$ /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -a0
Basic Monitor Script
echo -n “Checking RAID status on ”
hostname
for a in $CONT
do
NAME=`$MEGACLI -AdpAllInfo -$a |grep “Product Name” | cut -d: -f2`
echo “Controller $a: $NAME”
noonline=`$MEGACLI PDList -$a | grep Online | wc -l`
echo “No of Physical disks online : $noonline”
DEGRADED=`$MEGACLI -AdpAllInfo -a0 |grep “Degrade”`
echo $DEGRADED
NUM_DEGRADED=`echo $DEGRADED |cut -d” ” -f3`
[ “$NUM_DEGRADED” -ne 0 ] && STATUS=1
FAILED=`$MEGACLI -AdpAllInfo -a0 |grep “Failed Disks”`
echo $FAILED
NUM_FAILED=`echo $FAILED |cut -d” ” -f4`
[ “$NUM_FAILED” -ne 0 ] && STATUS=1
done
exit $STATUS
Sample Output
Checking RAID status on xxx Controller a0: MegaRAID SAS 8344ELP No of Physical disks online : 4 Degraded : 0 Failed Disks : 0
Upgrade Firmware
To determine the current firmware, run “MegaCli -AdpAllInfo -a0”
Product Name : MegaRAID SAS 8344ELP Serial No : P00253390X FW Package Build: 7.0.1-0064 Mfg. Data ================ Mfg. Date : 09/27/06 Rework Date : 00/00/00 Revision No : 8 Image Versions In Flash: ================ Boot Block Version : R.2.3.15 BIOS Version : MT33 MPT Version : MPTFW-01.18.79.00-IT FW Version : 1.12.220-0560 WebBIOS Version : 1.1-33g-e_11-Rel Ctrl-R Version : 1.04-019A
Check the LSi website for the current downloads, in this case:
http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sas/megaraid_sas_8344elp/index.html
- Download the firmware, unzip - Run "MegaCli -adpfwflash -f SAS1068_FW_Image.rom -a0"
Leave a Reply