megacli 命令的用法

最近买的一些server,自身的主板上都带有 LSI RAID card,我们可以使用megacli command 来检查一些参数的状态

首先我们必须安装LSI Logic 提供的megacli 工具

可以直接使用已编译好的源: http://hwraid.le-vert.net/

crontab:

可以直接使用这个crontab file 来自动检测LSI RAID 的状态: http://it.bmc.uu.se/andlov/docs/linux/raid/files/megacli.cron

这篇post 的主要目的是megacli 命令:

显示raid adapter 的所有信息:

megacli -AdpAllinfo -aALL

显示物理硬盘的信息:

megacli -PDList -aALL

显示逻辑硬盘的信息:

megacli -LDGetProp -LALL -aALL

检查 raid rebuild 的状态:

megacli -AdpAllinfo -aALL | grep -i rebuild

更多的信息参见这里: http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.