StorCLI commands

Learn about the StorCLI commands. They are for feature code EKAA using a PCIe adapter.

If the command is not installed, download the utility from http://avagotech.com. You can find the download by searching that site for storcli. Get their latest "MegaRAID Storcli" download; the file is at https://docs.broadcom.com/docs/STORCLI-v1-21-12-Linux.zip. To install, follow their documentation. Unzip the file; then for:
RHEL
  1. Navigate to the Linux folder.
  2. Install the package by running this command, where x.xx-x equals the version of the utility. :
    rpm -ivh <StorCLI-x.xx-x.noarch.rpm>
Ubuntu:
  1. Navigate to the Ubuntu folder.
  2. Install the debian file by using this command:
    dpkg -i storcli_x.xx-x._all.deb
If you need to make the storcli run, use the following command:
chmod +x /path/to/file/filename
You can check the permissions of the file to see if it is executable by using the following command:
ls -l /path/to/file/filename
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 show
To show a list of all controllers and drives that need attention:
storcli show all
To show information about the drives:
storcli /cx[/eall]/sall show
To locate a physical disk by turning on the identify LED:
storcli /cx[/ex]/sx start locate
To turn off the identify LED:
storcli /cx[/ex]/sx stop locate
To prepare a drive for removal:
storcli /cx[/ex]/sx spindown
To prepare a drive for use:
storcli /cx[/ex]/sx spinup



Last updated: Tue, November 17, 2020