Checar raid com MegaCLI

De Wiki Hackstore

Instalação

CentOS

Instale o pacote RPM necessário (em CentOS)

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip


Debian

Converta o pacote RPM para DEB:

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
unzip 8-07-14_MegaCLI.zip
cd Linux ; alien MegaCli-8.07.14-1.noarch.rpm
dpkg -imegacli_8.07.14-2_all.deb


Checagem

Verifique o status de todos os volumes RAID

/opt/MegaRAID/MegaCli/MegaCli64 LDInfo -LAll -aAll


Verifique o status de um volume RAID específico

/opt/MegaRAID/MegaCli/MegaCli64 LDInfo -L0 -aALL | grep State | awk '{print $3}'


Checar o nível do RAID

/opt/MegaRAID/MegaCli/MegaCli64 LDInfo -LAll -AAll

na linha "RAID Level", verifique qual é o nível do RAID:

['Primary-0, Secondary-0, RAID Level Qualifier-0'] = RAID-0
['Primary-1, Secondary-0, RAID Level Qualifier-0'] = RAID-1
['Primary-5, Secondary-0, RAID Level Qualifier-3'] = RAID-5
['Primary-6, Secondary-0, RAID Level Qualifier-3'] = RAID-6
['Primary-1, Secondary-3, RAID Level Qualifier-0'] = RAID-10