linux使用 storcli 查询raid卡情况.

下载storcli

https://www.broadcom.com/products/storage/raid-controllers/megaraid-9560-8i

安装storcli

root@debian:~# dpkg -i storcli_007.3007.0000.0000_all.deb

root@debian:~# dpkg -l | grep -i storcli
ii  storcli                         007.3007.0000.0000             all          Storage Command Line Tool, manages storage controllers.

查看有哪些控制器

/opt/MegaRAID/storcli/storcli64 show all

CLI Version = 007.3007.0000.0000 May 16, 2024
Operating system = Linux 6.1.0-22-amd64
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = debian
Operating System  = Linux 6.1.0-22-amd64

System Overview :
===============

------------------------------------------------------------------------------------
Ctl Model                   Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS  EHS ASOs Hlth
------------------------------------------------------------------------------------
  0 AVAGOMegaRAIDSAS9361-8i     8  13   2     0   2     0 Opt On  1&2 Y      3 Opt
------------------------------------------------------------------------------------

Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=Array NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Spare Drive
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit/CV
Hlth=Health|Safe=Safe-mode boot|CertProv-Certificate Provision mode
Chrg=Charging | MsngCbl=Cable Failure
...

查看第一个控制器

/opt/MegaRAID/storcli/storcli64 /c0 show

一些使用storcli的例子

如何在新的 VxRack 节点上使用 Storcli 配置虚拟磁盘

Leave a comment

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

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