2018-01-12 10:17:57 +00:00
|
|
|
# MegaCli introduced by LSI as a command line administration of LSI MegaRaid controllers.
|
2020-02-22 02:47:54 +00:00
|
|
|
# With megacli we can create physical raids, gather info about raids and monitor raids.
|
2018-01-12 10:17:57 +00:00
|
|
|
|
|
|
|
# Install MegaCLI
|
|
|
|
yum install MegaCli # CentOS
|
|
|
|
apt-get install megacli # Ubuntu
|
|
|
|
|
|
|
|
# Controller information
|
|
|
|
MegaCli -AdpAllInfo -aALL
|
|
|
|
MegaCli -CfgDsply -aALL
|
|
|
|
|
|
|
|
# Enclosure information
|
|
|
|
MegaCli -EncInfo -aALL
|
|
|
|
|
|
|
|
# Virtual drive information
|
|
|
|
MegaCli -LDInfo -Lall -aALL
|
|
|
|
|
|
|
|
# Physical drive information
|
|
|
|
MegaCli -PDList -aALL
|
|
|
|
MegaCli -PDInfo -PhysDrv [E:S] -aALL
|
|
|
|
|
|
|
|
# Battery backup information
|
|
|
|
MegaCli -AdpBbuCmd -aALL
|
|
|
|
|