VMware ESXi 安装 StorCLI / MegaCLI 与常用命令

ESXi 安装 MegaCLI / StorCLI 与常用命令

esxcli software vib install -v /tmp/vmware-esx-MegaCLI-8-07-07.vib --maintenance-mode --no-sig-check
esxcli software vib install -v /tmp/vmware-esx-MegaCLI-8-07-07.vib
esxcli software vib list | grep -i lsi
### Enclosure information

/opt/lsi/MegaCLI/MegaCli -EncInfo -aALL

### Virtual drive information

/opt/lsi/MegaCLI/MegaCli -LDInfo -Lall -aALL

### Physical drive information

/opt/lsi/MegaCLI/MegaCli -PDList -aALL

### Silence active alarm

/opt/lsi/MegaCLI/MegaCli -AdpSetProp AlarmSilence -aALL

### Disable alarm

/opt/lsi/MegaCLI/MegaCli -AdpSetProp AlarmDsbl -aALL

### Enable alarm

/opt/lsi/MegaCLI/MegaCli -AdpSetProp AlarmEnbl -aALL

### Prepare for removal

/opt/lsi/MegaCLI/MegaCli -PdPrpRmv -PhysDrv [E:S] -aN

### Unconfigured Bad to good

/opt/lsi/MegaCLI/MegaCli -PDMakeGood -PhysDrv[E:S] -aN

430 / 930 系列阵列卡需使用新版 StorCLI

ESXi 6安装和使用storcli 说明
一.为了在ESXi 系统上可以查询raid卡信息以及实现其他对raid的操作,需要在ESXi系统下安装和使用storcli,storcli是专门用来在系统下管理联想对应的阵列卡的,只能实现命令行的操作和管理。
基本环境:3650 M5服务器,MT:5462

VMware ESXi U2

vmware-storcli-007.0209.0000.0000.vib 联想官方网站下载的版本:http://driverdl.lenovo.com.cn/lenovo/mig/2017/09/26/17652/lsi-lnvgy_utl_sraidmr_storcli-7.0209.0000.0000_vmwesx_x86-64.tgz

二.安装过程

1.把文件上传到对应的ESXi 主机上,建议使用sftp上传到/tmp下。

此操作默认存放在/tmp目录下。

2.SSH登录ESXi主机并安装storcli vib文件。
esxcli software vib install -v /tmp/vmware-storcli-007.0209.0000.0000.vib --no-sig-check

3.验证vib 文件安装完成。

  esxcli software vib list grep | storcli

可以看到storcli的说明

三.使用storcli获取raid 卡信息

1.SSH登录ESXi主机。

2.cd到/opt/lsi/sotcli下。

3.运行以下命令获取当前服务器的阵列卡信息。

./storcli storcli show all

你们的服务器配置有两张raid卡,一般都是c0和c1,你可以和输出结果对照以下。

4.获取c0阵列卡的所有信息。

./storcli /c0 show all

建议使用终端文本保存功能,把输出存为文本文件的。

5. 获取c1阵列卡的所有信息

./storcli /c1 show all

ESXi 安装 StorCLI 步骤

安装步骤

1. 用FTP上传到esxi服务器系统里面,放到tmp目录下面

2. 然后在exsi系统里执行安装命令

esxcli software vib install -v /tmp/vmware-esx-storcli-1.14.12.vib --no-sig-check

安装完以后会显示Successfully ,代表安装成功

3. 然后执行检查的命令

/opt/lsi/storcli/storcli /c0/vall show all
/opt/lsi/storcli/storcli /c0/eall/sall show all

命令参考

安装命令

esxcli software vib install -v /tmp/vmware-esx-storcli-1.14.12.vib --no-sig-check

安装到目录

/opt/lsi/storcli/

检查命令

/opt/lsi/storcli/storcli /c0/eall/sall show all
/opt/lsi/storcli/storcli /c0/vall show all
2 次浏览 更新于 2026-11-04

同组文章阵列卡命令行工具

查看本组全部 11 篇

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。