概述
storcli 是一款用于基于 LSI 的 HBA 和 RAID 控制器的控制器管理工具
说明:
1.输出结果含义参见DELL安装PERCCLI工具(ESXI)
2.StorCLI 命令与MegaCLI命令 对比如下:
| 功能分类 | MegaCLI 命令 (旧工具) | StorCLI 命令 (新工具) |
|---|---|---|
| 查看所有物理磁盘 | MegaCli -PDList -aALL | storcli /c0 /eall /sall show |
| 查看指定磁盘详情 | MegaCli -PDInfo -PhysDrv[E:S] -aALL | storcli /c0 /eE /sS show all |
| 查看Media Errors | MegaCli -PDList -aALL | grep -E "Media Error|Firmware state" | storcli /c0 /eall /sall show all | grep -E "Media Error|Firmware state" |
| 定位指定磁盘 | MegaCli -PdLocate -start -PhysDrv[E:S] -aALL | storcli /c0 /eE /sS start locate |
| 停止定位磁盘 | MegaCli -PdLocate -stop -PhysDrv[E:S] -aALL | storcli /c0 /eE /sS stop locate |
下载地址
Management Software and Tool
- Latest Storcli2 注意新版工具只适用于新RAID卡
- Latest Storcli for all OS 建议先尝试传统工具,当前版本7.37
- 如果是老CPU建议下载StorCLI v7.21
安装
- 安装要求重启系统
[root@localhost:/tmp]esxcli software vibinstall-v/tmp/BCM_bootbank_storcli_007.3703.0000.0000-01.vib --no-sig-check Installation Result Message: The update completed successfully, but the system needs to be rebootedforthe changes to be effective. VIBs Installed: BCM_bootbank_storcli_007.3703.0000.0000-01 VIBs Removed: VIBs Skipped: Reboot Required:trueDPU Results:卸载
- 查询
esxcli software vib list|grepstorcli storcli 007.3703.0000.0000-01 BCM VMwareAccepted2026-06-16host- 卸载
esxcli software vib remove-nstorcli使用
查询RAID信息
[root@localhost:/opt/storcli/bin]./storcli64 show<?xmlversion="1.0"?><output xmlns:esxcli="storcli"><listtype="string"><string>CLI Version=007.3703.0000.0000 Jan16,2026Operating system=VMkernel8.0.3 Status Code=0Status=Success Description=None Number of Controllers=1Host Name=localhost Operating System=VMkernel8.0.3 StoreLib IT Version=07.3703.0200.0000 StoreLib IR3 Version=16.16-0 System Overview:===============------------------------------------------------------------------- Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth -------------------------------------------------------------------0SAS3108882020Opt On - Y3Opt -------------------------------------------------------------------Ctl=Controller Index|DGs=Drivegroups|VDs=Virtual drives|Fld=FailedPDs=Physical drives|DNOpt=Array NotOptimal|VNOpt=VD NotOptimal|Opt=OptimalMsng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=UnknownsPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Spare DriveY=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit/CVHlth=Health|Safe=Safe-mode boot|CertProv-Certificate Provision modeChrg=Charging|MsngCbl=Cable Failure</string></list></output>查看 RAID 阵列(逻辑卷)信息
- 查看RAID信息
[root@localhost:/opt/storcli/bin]./storcli64 /c0/vall show all<?xmlversion="1.0"?><output xmlns:esxcli="storcli"><listtype="string"><string>CLI Version=007.3703.0000.0000 Jan16,2026Operating system=VMkernel8.0.3 Controller=0Status=Success Description=None /c0/v0:======--------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name ---------------------------------------------------------------0/0 RAID1 Optl RW Yes RWBD - ON278.464GB os ---------------------------------------------------------------VD=Virtual Drive|DG=Drive Group|Rec=RecoveryCac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=DegradedOptl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReadyB=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBackAWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency PDsforVD0:============------------------------------------------------------------------------------ EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type ------------------------------------------------------------------------------2:012Onln0278.464GB SAS HDD N Y 512B ST300MP0005 U -2:113Onln0278.464GB SAS HDD N Y 512B ST300MP0005 U - ------------------------------------------------------------------------------EID=Enclosure Device ID|Slt=Slot No|DID=Device ID|DG=DriveGroupDHS=Dedicated Hot Spare|UGood=Unconfigured Good|GHS=Global HotspareUBad=Unconfigured Bad|Sntze=Sanitize|Onln=Online|Offln=Offline|Intf=InterfaceMed=Media Type|SED=Self Encryptive Drive|PI=PI EligibleSeSz=Sector Size|Sp=Spun|U=Up|D=Down|T=Transition|F=ForeignUGUnsp=UGood Unsupported|UGShld=UGood shielded|HSPShld=Hotspare shieldedCFShld=Configured shielded|Cpybck=CopyBack|CBShld=Copyback ShieldedUBUnsp=UBad Unsupported|Rbld=Rebuild VD0 Properties:==============Strip Size=256KB Number of Blocks=583983104VD has Emulated PD=No Span Depth=1Number of Drives Per Span=2Write Cache(initial setting)=WriteBack Disk Cache Policy=Disk's Default Encryption=None Data Protection=Disabled Active Operations=None Exposed to OS=Yes OS Drive Name=N/A Creation Date=17-04-2026 Creation Time=07:38:10 AM Emulationtype=default Cachebypass size=Cachebypass-64k Cachebypass Mode=Cachebypass Intelligent Is LD ReadyforOS Requests=Yes SCSI NAA Id=630004295aa9381231749fe225f91908 Unmap Enabled=N/A /c0/v1:======------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name -------------------------------------------------------------1/1 RAID5 Optl RW Yes RWBD - ON2.179TB data -------------------------------------------------------------VD=Virtual Drive|DG=Drive Group|Rec=RecoveryCac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=DegradedOptl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReadyB=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBackAWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency PDsforVD1:============------------------------------------------------------------------------------ EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type ------------------------------------------------------------------------------2:39Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:410Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:58Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:66Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:75Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U - ------------------------------------------------------------------------------EID=Enclosure Device ID|Slt=Slot No|DID=Device ID|DG=DriveGroupDHS=Dedicated Hot Spare|UGood=Unconfigured Good|GHS=Global HotspareUBad=Unconfigured Bad|Sntze=Sanitize|Onln=Online|Offln=Offline|Intf=InterfaceMed=Media Type|SED=Self Encryptive Drive|PI=PI EligibleSeSz=Sector Size|Sp=Spun|U=Up|D=Down|T=Transition|F=ForeignUGUnsp=UGood Unsupported|UGShld=UGood shielded|HSPShld=Hotspare shieldedCFShld=Configured shielded|Cpybck=CopyBack|CBShld=Copyback ShieldedUBUnsp=UBad Unsupported|Rbld=Rebuild VD1 Properties:==============Strip Size=256KB Number of Blocks=4679680000VD has Emulated PD=No Span Depth=1Number of Drives Per Span=5Write Cache(initial setting)=WriteBack Disk Cache Policy=Disk's Default Encryption=None Data Protection=Disabled Active Operations=None Exposed to OS=Yes OS Drive Name=N/A Creation Date=17-04-2026 Creation Time=07:38:36 AM Emulationtype=default Cachebypass size=Cachebypass-64k Cachebypass Mode=Cachebypass Intelligent Is LD ReadyforOS Requests=Yes SCSI NAA Id=630004295aa9381231749ffc277be53e Unmap Enabled=N/A</string></list></output>- 单独查看
- 查看VD0
[root@localhost:/opt/storcli/bin]./storcli64 /c0 /v0 show<?xmlversion="1.0"?><output xmlns:esxcli="storcli"><listtype="string"><string>CLI Version=007.3703.0000.0000 Jan16,2026Operating system=VMkernel8.0.3 Controller=0Status=Success Description=None Virtual Drives:==============--------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name ---------------------------------------------------------------0/0 RAID1 Optl RW Yes RWBD - ON278.464GB os ---------------------------------------------------------------VD=Virtual Drive|DG=Drive Group|Rec=RecoveryCac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=DegradedOptl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReadyB=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBackAWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency</string></list></output>- 查看VD1
[root@localhost:/opt/storcli/bin]./storcli64 /c0 /v1 show<?xmlversion="1.0"?><output xmlns:esxcli="storcli"><listtype="string"><string>CLI Version=007.3703.0000.0000 Jan16,2026Operating system=VMkernel8.0.3 Controller=0Status=Success Description=None Virtual Drives:==============------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name -------------------------------------------------------------1/1 RAID5 Optl RW Yes RWBD - ON2.179TB data -------------------------------------------------------------VD=Virtual Drive|DG=Drive Group|Rec=RecoveryCac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=DegradedOptl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReadyB=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBackAWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency</string></list></output>查看物理硬盘信息与状态
[root@localhost:/opt/storcli/bin]./storcli64 /c0 /eall /sall show<?xmlversion="1.0"?><output xmlns:esxcli="storcli"><listtype="string"><string>CLI Version=007.3703.0000.0000 Jan16,2026Operating system=VMkernel8.0.3 Controller=0Status=Success Description=Show Drive Information Succeeded. Drive Information:=================------------------------------------------------------------------------------ EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type ------------------------------------------------------------------------------2:012Onln0278.464GB SAS HDD N Y 512B ST300MP0005 U -2:113Onln0278.464GB SAS HDD N Y 512B ST300MP0005 U -2:39Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:410Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:58Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:66Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:75Onln1557.861GB SAS HDD N N 512B HUC156060CSS200 U -2:87DHS1557.861GB SAS HDD N N 512B HUC156060CSS200 U - ------------------------------------------------------------------------------EID=Enclosure Device ID|Slt=Slot No|DID=Device ID|DG=DriveGroupDHS=Dedicated Hot Spare|UGood=Unconfigured Good|GHS=Global HotspareUBad=Unconfigured Bad|Sntze=Sanitize|Onln=Online|Offln=Offline|Intf=InterfaceMed=Media Type|SED=Self Encryptive Drive|PI=PI EligibleSeSz=Sector Size|Sp=Spun|U=Up|D=Down|T=Transition|F=ForeignUGUnsp=UGood Unsupported|UGShld=UGood shielded|HSPShld=Hotspare shieldedCFShld=Configured shielded|Cpybck=CopyBack|CBShld=Copyback ShieldedUBUnsp=UBad Unsupported|Rbld=Rebuild</string></list></output>查看硬盘错误信息
[root@localhost:/opt/storcli/bin]./storcli64 /c0/eall/sall show all|grep-E"Media Error|Predictive Failure|Firmware state"Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0Media Error Count=0Predictive Failure Count=0Last Predictive Failure Event Sequence Number=0