StorCLI commands
Learn about the StorCLI commands. They are for use with the PCIe adapter feature codes EKAA and EKEA.
If the command is not installed, download the utility from Broadcom https://www.broadcom.com/. You can find the utility by searching that site for
storcli. Get their latest
MegaRAID Storclidownload file. To install, follow their documentation. Unzip the file; then for:
- RHEL
-
- Navigate to the linux-ppc folder then to the Little Endian folder.
- Install the package by running this command, where
x.xx-xequals the version of the utility:rpm -ivh <StorCLI-x.xx-x.noarch.rpm>
- Ubuntu:
-
- Navigate to the Ubuntu folder.
- Install the debian file by using this command:
dpkg -i storcli_x.xx-x._all.deb
- Preboot / petitboot:
-
- From the petitboot menu, exit to a shell.
- Download the storcli64 binary file into the petitboot environment wget " ftp://ftp.supermicro.com/wdl/Firmware/Openpower/P9DSU-C/Storage/Broadcom/AOC-9361-8i (AOC-K-9361-8Is-IB001)/007.0606.0000.0000_Unified_StorCLI.zip".
- Unzip the following files:
- 007.0606.0000.0000_Unified_StorCLI.zip
- MR_SAS_Unified_StorCLI_7.6-007.0606.0000.0000-SCGCQ01639776\ \(1\).zip
- Type the following command.
cd versionChangeSet/univ_viva_cli_rel/ - Unzip the Unified_storcli_all_os.zip file.
- Type the following command.
cd Unified_storcli_all_os/Linux-PPC/LittleEndian - Unzip the storcli64.zip file.
- The storcli64 file can now be invoked by specifying the current directory: ./storcli64 -h
For details on managing RAID arrays, see Chapter 6 in the MegaRAID SAS Software User Guide.
Helpful StorCLI commands
To upgrade the StorCLI RPM,
run:
rpm -Uvh <StorCLI-x.xx-x.noarch.rpm>To show a summary of the drive and controller status:
storcli showTo show a list of all controllers and drives that need
attention:
storcli show allTo show information about the drives:
storcli /cx[/eall]/sall showTo locate a physical disk by turning on the identify
LED:
storcli /cx[/ex]/sx start locateTo turn off the identify LED:
storcli /cx[/ex]/sx stop locateTo prepare a drive for removal:
storcli /cx[/ex]/sx spindownTo view the adapter settings:
storcli64 /c0 show personalityTo change the adapter
settings:
storcli64 /c0 set personality=JBOD|RAIDTo change the settings of the adapter to support the self-encrypting drive (SED)
function:
storcli64 /c0 set personality behavior securesed=off/onTo check the firmware level of the MegaRAID
adapter:
storcli64 /c0 show all|egrep "Bios Version|Firmware Package|Firmware Version"To update the firmware level of the MegaRAID
adapter:
storcli64 /cx download file=mrxxxxfw.rom