StorCLI ist ein Kommandozeilen-Werkzeug zur Administration von MegaRAID Controllern und der Nachfolger der MegaCLI. Einen Überblick über gängige Kommando-Aufrufe finden Sie im Artikel StorCLI. Für VMware steht das StorCLI als VSphere Installation Bundle zur Verfügung.
Wir haben die Installation von StorCLI unter folgenden ESXi Versionen getestet:
esxcli software vib install -v=/lokaler_pfad/vmware-storcli-XXX.XXXX.XXXX.XXXX.vibNach der erfolgreichen Installation steht storcli als Befehl zur Verfügung:
[root@localhost:/opt/lsi/storcli] ./storcli -V
StorCli SAS Customization Utility Ver 007.0606.0000.0000 Mar 20, 2018
(c)Copyright 2018, AVAGO Technologies, All Rights Reserved.
Exit Code: 0x00
Obwohl das Acceptance Level des ESXi und StorCLI übereinstimmt, lässt sich StorCLI unter ESXi 5.5 und 6.X, auch bei ESXi 6.7, nicht wie bei 5.1.0 installieren:
Name Version Vendor Acceptance Level Install Date ----------------------------- ------------------------------------ ------ ---------------- ------------ ... vmware-esx-storcli-1.07.07 1.07.07-01 LSI PartnerSupported 2014-05-02 ...
~ # esxcli software acceptance get PartnerSupported
Die Installation unter ESXi 6.7 schlägt initial ebenso fehl.
[root@localhost:~] esxcli software vib install -v=/vmware-storcli-007.0606.0000.0000.vib
[InstallationError]
('LSI_bootbank_vmware-storcli-007.0606.0000.0000_007.0606.0000.0000-01', 'Could not find a trusted signer.')
vibs = LSI_bootbank_vmware-storcli-007.0606.0000.0000_007.0606.0000.0000-01
Please refer to the log file for more details.
Es muss die Signaturüberprüfung deaktiviert werden. Somit lässt sich StorCLI installieren.
[root@localhost:~] esxcli software vib install -v=/vmware-storcli-007.0606.0000.0000.vib --no-sig-check Installation Result Message: Operation finished successfully. Reboot Required: false VIBs Installed: LSI_bootbank_vmware-storcli-007.0606.0000.0000_007.0606.0000.0000-01 VIBs Removed: VIBs Skipped:
Für den Aufruf von StorCLI wechseln Sie zuerst in das Verzeichnis /opt/lsi/storcli (da ansonsten libstorelib.so nicht gefunden wird). Die Ausgabe erfolgte anhand der StorCLI Version 007.0606.0000.0000 unter ESXi 6.7:
[root@localhost:/opt/lsi/storcli] ./storcli show
CLI Version = 007.0606.0000.0000 Mar 20, 2018 Operating system = VMkernel 6.7.0 Status Code = 0 Status = Success Description = None Number of Controllers = 1 Host Name = localhost.tdz.thomas-krenn.com Operating System = VMkernel 6.7.0 StoreLib IT Version = 07.0603.0200.0000 StoreLib IR3 Version = 15.53-0 System Overview : =============== ----------------------------------------------------------------------------------- Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth ----------------------------------------------------------------------------------- 0 LSIMegaRAIDSAS9341-4i 4 2 0 0 0 0 Msng On 1&2 Y 2 Opt ----------------------------------------------------------------------------------- Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit Hlth=Health|Safe=Safe-mode boot
In den Versionen ESXi 7 und 8 kann die Anwendung StorCLI mit dem Befehl esxcli software component apply -d <Name des Zip-Archivs mit der Vib-Datei und dem Pfad dazu> installiert werden.
Nachdem man das Archiv mit StorCLI von der Broadcom Support-Seite heruntergeladen hat, muss man die, für die verwendete ESXi-Version, passende ZIP-Datei auf den ESXi-Host kopieren (z. B. mit scp), in unserem Beispiel nach /tmp.

Nachfolgend finden Sie Screenshots und Ausgaben von der Installation in ESXi 7 und 8.
StorCLI wird in den Versionen ESXi 7 und 8 in verschiedenen Unterverzeichnissen unter /opt/.... installiert – siehe Screenshot der entsprechenden ESXi-Version.
Ausgabe und Screenshot der Installation von StorCLI in vSphere 7.
[root@localhost:/tmp] esxcli software component apply -d /tmp/BCM-vmware-storcli64_007.3305.0000.0000-01_24520957.zip
Installation Result Components Installed: BCM-vmware-storcli64_007.3305.0000.0000-01 Components Removed: Components Skipped: Message: Operation finished successfully. Reboot Required: false [root@localhost:/tmp] cd /opt/lsi/storcli64/ [root@localhost:/opt/lsi/storcli64] ls libstorelib.so storcli64 [root@localhost:/opt/lsi/storcli64] ./storcli64 show all CLI Version = 007.3305.0000.0000 Jan 23, 2025 Operating system = VMkernel 7.0.3 Status Code = 0 Status = Success Description = None Number of Controllers = 2 Host Name = localhost Operating System = VMkernel 7.0.3 StoreLib IT Version = 07.3303.0200.0000 StoreLib IR3 Version = 16.16-0 IT System Overview : ================== --------------------------------------------------------------------------- Ctl Model AdapterType VendId DevId SubVendId SubDevId PCI Address --------------------------------------------------------------------------- 0 HBA 9500-16i SAS3816(A0) 0x1000 0xE6 0x1000 0x4050 00:81:00:00 1 LSI3008-IR SAS3008(C0) 0x1000 0x97 0x15D9 0x808 00:41:00:00 --------------------------------------------------------------------------- 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

Ausgabe und Screenshots der Installation von StorCLI in vSphere 8.
[root@localhost:/tmp] esxcli software component apply -d /tmp/BCM-storcli_007.3305.0000.0000-01_24529440.zip
Installation Result Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective. Components Installed: BCM-storcli_007.3305.0000.0000-01 Components Removed: Components Skipped: Reboot Required: true DPU Results: [root@localhost:/tmp] reboot [root@localhost:~] cd /opt/storcli/bin/ [root@localhost:/opt/storcli/bin] ls storcli64 [root@localhost:/opt/storcli/bin] ./storcli64 show all <?xml version="1.0"?><output xmlns:esxcli="storcli"> <list type="string"> <string> CLI Version = 007.3305.0000.0000 Jan 23, 2025 Operating system = VMkernel 8.0.3 Status Code = 0 Status = Success Description = None Number of Controllers = 2 Host Name = localhost Operating System = VMkernel 8.0.3 StoreLib IT Version = 07.3303.0200.0000 StoreLib IR3 Version = 16.16-0 IT System Overview : ================== --------------------------------------------------------------------------- Ctl Model AdapterType VendId DevId SubVendId SubDevId PCI Address --------------------------------------------------------------------------- 0 HBA 9500-16i SAS3816(A0) 0x1000 0xE6 0x1000 0x4050 00:81:00:00 1 LSI3008-IR SAS3008(C0) 0x1000 0x97 0x15D9 0x808 00:41:00:00 --------------------------------------------------------------------------- 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


Sie können das storcli von einem beliebigen Pfad aus aufrufen, wenn Sie dazu mit folgenden Kommandos das Shell-Script /sbin/storcli erstellen:
cat > /sbin/storcli << '__EOF' #!/bin/sh cd /opt/lsi/storcli ./storcli "$@" __EOF chmod +x /sbin/storcli
Damit diese Änderung permanent bleibt, muss diese via rc.local durchgeführt werden.[1] Alternativ können Sie auch ein eigenes VIB erstellen und dieses dann installieren.
|
Autor: Thomas Niedermeier Thomas Niedermeier arbeitet im Product Management Team von Thomas-Krenn. Er absolvierte an der Hochschule Deggendorf sein Studium zum Bachelor Wirtschaftsinformatik. Seit 2013 ist Thomas bei Thomas-Krenn beschäftigt und kümmert sich unter anderem um OPNsense Firewalls, das Thomas-Krenn-Wiki und Firmware Sicherheitsupdates.
|