cd /tmp yum install wget unzip -y wget http://dl.kvm.la/RAID/MegaCliLin.zip unzip MegaCliLin.zip rpm -Uvh *.rpm cp /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/MegaCli MegaCli -cfgdsply -aALL|grep "Firmware state"
使用LSI的megaraid可以对raid进行有效监控。别的厂商比如HP,IBM也有自己的raid API
查询控制器cache策略: MegaCli -cfgdsply -aALL |grep Policy
设置write back功能: MegaCli -LDSetProp WB -L0 -a0
设置即使电池坏了还是保持WB功能: MegaCli -LDSetProp CachedBadBBU -L0 -a0
设置BBU坏了就不开缓存:MegaCli -LDSetProp -NoCachedBadBBU -Lall -aALL
手动充电: MegaCli -AdpBbuCmd -BbuLearn a0
查看充电状态: MegaCli -AdpBbuCmd -GetBbuStatus -aALL |grep "Charging Status"
查看充电进度百分比: MegaCli -AdpBbuCmd -GetBbuStatus -aALL |grep "Relative State of Charge"
显示BBU(后备电池)状态信息: MegaCli -AdpBbuCmd -GetBbuStatus -aALL
显示BBU容量信息: MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aALL
显示BBU设计参数: MegaCli -AdpBbuCmd -GetBbuDesignInfo -aALL
显示当前BBU属性: MegaCli -AdpBbuCmd -GetBbuProperties -aALL
显示当前BBU信息: MegaCli -AdpBbuCmd -aALL
查询日志: MegaCli -FwTermLog -Dsply -aALL
显示适配器个数: MegaCli -adpCount
查看适配器时间: MegaCli -AdpGetTime –aALL
显示所有适配器信息: MegaCli -AdpAllInfo -aAll
显示所有逻辑磁盘组信息: MegaCli -LDInfo -LALL -aAll
显示所有的物理信息: MegaCli -PDList -aAll
显示RAID卡型号,RAID设置,Disk相关信息: MegaCli -cfgdsply -aALL
查看Cache 策略设置: MegaCli -cfgdsply -aALL |grep -i Policy
刷ROM固件: MegaCli -adpfwflash -f mr2208fw.rom -a0
各种设备和磁盘的不同状态:
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online
评论 (0)