LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to check a hardware level raid with PERC H710 raid controller? (https://www.linuxquestions.org/questions/debian-26/how-to-check-a-hardware-level-raid-with-perc-h710-raid-controller-4175530871/)

abelosorio 01-13-2015 06:01 AM

How to check a hardware level raid with PERC H710 raid controller?
 
Hi!

I have a hardware level raid (5) by using PERC H710 controller card.

I want to check periodically raid state and send an email if a problem is found.

I need something like cciss_vol_status HP's utility.


Thanks of advance!

Update:

I used the utility MegaCli, as smalpond said. Here's the command:

megacli -LDInfo -Lall -aALL

My checkRaid script (a plugin for Nagios):

megacli="sudo /usr/sbin/megacli"

state="$( $megacli -LDInfo -Lall -aALL | \
sed -ne 's/^[[:space:]]*State[[:space:]]\+:[[:space:]]\+\(.\+\)$/\1/p' )"

if [ "$state" == "Optimal" ] ; then
echo "RAID state: active/clean"
exit 0
fi

echo "RAID state: $state"
exit 2


That's all!!

Thank you smallpond!

Cheers!

smallpond 01-13-2015 09:57 AM

LSI RAID has MegaCli.

http://tools.rapidsoft.de/perc/perc-cheat-sheet.html


All times are GMT -5. The time now is 09:24 PM.