|
|
@ -139,11 +139,9 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
close CFGDSPLY; |
|
|
|
close CFGDSPLY; |
|
|
|
if ( $hba && $failgrouplist ) { |
|
|
|
|
|
|
|
# Controler is in HBA mode, skip it |
|
|
|
|
|
|
|
next ADAPTER; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# When controller is in HBA/JBOD mode, skip RAID volume checks |
|
|
|
|
|
|
|
unless ($hba && $failgrouplist) { |
|
|
|
LDISK: for ( my $ld = 0; $ld < $ldnum; $ld++ ) { |
|
|
|
LDISK: for ( my $ld = 0; $ld < $ldnum; $ld++ ) { |
|
|
|
# Get info on this particular logical drive |
|
|
|
# Get info on this particular logical drive |
|
|
|
open (LDINFO, "$megacli -LdInfo -L$ld -a$adp -NoLog |") |
|
|
|
open (LDINFO, "$megacli -LdInfo -L$ld -a$adp -NoLog |") |
|
|
@ -179,6 +177,7 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) { |
|
|
|
|
|
|
|
|
|
|
|
} #LDISK |
|
|
|
} #LDISK |
|
|
|
close LDINFO; |
|
|
|
close LDINFO; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Get info on physical disks for this adapter |
|
|
|
# Get info on physical disks for this adapter |
|
|
|
open (PDLIST, "$megacli -PdList -a$adp -NoLog |") |
|
|
|
open (PDLIST, "$megacli -PdList -a$adp -NoLog |") |
|
|
|