Update so-raid-status for SM based appliances

This commit is contained in:
Mike Reeves
2024-01-05 09:28:04 -05:00
committed by GitHub
parent ef6eafeff1
commit b0447a9af5

View File

@@ -49,12 +49,19 @@ check_nsm_raid() {
check_boss_raid() { check_boss_raid() {
MVCLI=$(/usr/local/bin/mvcli info -o vd |grep status |grep functional) MVCLI=$(/usr/local/bin/mvcli info -o vd |grep status |grep functional)
MVTEST=$(/usr/local/bin/mvcli info -o vd | grep "No adapter")
# Check to see if this is a SM based system
if [[ -z $MVTEST ]]; then
if [[ -n $MVCLI ]]; then if [[ -n $MVCLI ]]; then
BOSSRAID=0 BOSSRAID=0
else else
BOSSRAID=1 BOSSRAID=1
fi fi
else
# This doesn't have boss raid so lets make it 0
BOSSRAID=0
fi
} }
check_software_raid() { check_software_raid() {