MegaCli使用手册
Cat /proc/scsi/scsi查看raid卡型号
https://www.broadcom.com/support/download-search根据型号查找megacli软件 unzip8-07-10_MegaCLI_Linux.zip
rpm –ivhMegaCli-8.07.10-1.noarch.rpm 默认安装在 /opt/MegaRAID/MegaCli 进入目录后执行文件为MegaCli64
查看硬盘状态:/opt/MegaRAID/MegaCli/MegaCli64 -PDList–aALL |grep Firmware 正常状态应为 online
命令使用:
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL查raid级别 #/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL查raid卡信息 #/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL查看硬盘信息
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll查看电池信息
#/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL查看raid卡日志 #/opt/MegaRAID/MegaCli/MegaCli64 -adpCount【显示适配器个数】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime–aALL【显示适配器时间】 #/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll【显示所有适配器信息】
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll【显示所有逻辑磁盘组信息】 #/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll【显示所有的物理信息】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’【查看充电状态】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】 #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL【显示BBU设计参数】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL【显示当前BBU属性】
#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL【显示Raid卡型号,Raid设置,Disk相关信息】
3.磁带状态的变化,从拔盘,到插盘的过程中。 Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –>Unconfigured|Rebuild|Online 4.查看磁盘缓存策略
#/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -L0 -a0 or
#/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -L1 -a0 or
#/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -LALL -a0