MegaCli 工具安装使用
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MegaCli 工具安装使用相关的知识,希望对你有一定的参考价值。
这个工具可以在博通公司网站下载https://www.broadcom.cn,解压后找到相应系统的安装包进行安装
https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
这个是针对此版本的发行说明,可以了解下,介绍了此工具所支持的raid控制器
https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/Linux-MegaCLI-8-07-10.txt
linux :
新版本的 MegaCli-8.07.10-1.noarch.rpm 会把程序安装在/opt/MegaRAID/MegaCli/MegaCli64,可以自定义安装目录,例如:
rpm --relocate /opt/=/usr/sbin/ -i MegaCli-8.07.10-1.noarch.rpm
常用查看raid信息命令
查看充电状态 # /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep "Charger Status" 显示BBU状态信息 # /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 查看充电进度百分比 # /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep "Relative State of Charge" 查询Raid阵列数 # /opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL |grep "Number of DISK GROUPS:" 显示Raid卡型号,Raid设置,Disk相关信息 # /opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply –aALL 显示所有物理信息 # /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 显示所有逻辑磁盘组信息 # /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL –aAll 查看物理磁盘重建进度(重要) # /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:2] -a0 Device(Encl-32 Slot-2)(32:2这个是表示Enclosure Device ID: 32和Slot Number:2) 查看适配器个数 # /opt/MegaRAID/MegaCli/MegaCli64 –adpCount 查看适配器时间 # /opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 显示所有适配器信息 # /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo –aAll 查看Cache 策略设置 # /opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL |grep Polic 查看log信息 # /opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL
本文出自 “chaichuan” 博客,请务必保留此出处http://chaichuan.blog.51cto.com/7164297/1980573
以上是关于MegaCli 工具安装使用的主要内容,如果未能解决你的问题,请参考以下文章