Install the new storcli to manage (LSI/AVAGO/Broadcom) MegaRAID controller under CentOS 7

After the acquisition of LSI there was a major change with the management console utility for the MegaRAID controllers. The utility was renamed from MegaCli (MegaCli64, megacli) to

storcli (storcli64)

We have new controllers like AVAGO MegaRAID SAS-9361-4i and really old ones like LSI 2108 MegaRAID (in fact Supermicro AOC-USAS2LP-H8iR) and the two controllers could be manage with the new cli. even the old controller, which is on more than 8 years could be manage by the new cli.
Interesting fact is that the storcli output and argument syntax and is almost identical to the one really old cli – tw_cli – the 3Ware management utility. As you know LSI bought 3ware RAID adapter business in 2009.

STEP 1) Download the storcli from Broadcom site

The best way to install the latest version is by going to the broadcom site and download it. We used the download page for our AVAGO MegaRAID SAS-9361-4i – https://www.broadcom.com/products/storage/raid-controllers/megaraid-sas-9361-4i#downloads, but it is the same for all other controllers. There in section “Management Software and Tools” click on “Latest MegaRAID Storcli” hyperlink, which in our case is https://docs.broadcom.com/docs/007.0709.0000.0000_Unified_StorCLI.zip The link will open an additional window to accept the license and then to download the file. So this is not a direct link.

main menu
storcli download

STEP 2) Install the utility storcli

To unpack it you would need “unzip”

[root@srv ~]# yum install -y unzip

Then unpack the zip file and install the cli with yum.
You can see below what systems are supported at present.

[root@srv ~]# unzip 007.0709.0000.0000_Unified_StorCLI.zip 
Archive:  007.0709.0000.0000_Unified_StorCLI.zip
  inflating: 007.0709.0000.0000_Unified_StorCLI.txt  
  inflating: Unified_storcli_all_os.zip  
[root@srv ~]# unzip Unified_storcli_all_os.zip 
Archive:  Unified_storcli_all_os.zip
   creating: Unified_storcli_all_os/
   creating: Unified_storcli_all_os/EFI/
   creating: Unified_storcli_all_os/EFI/Debug/
  inflating: Unified_storcli_all_os/EFI/Debug/storcli.efi  
  inflating: Unified_storcli_all_os/EFI/storcli.efi  
   creating: Unified_storcli_all_os/FreeBSD/
  inflating: Unified_storcli_all_os/FreeBSD/FreeBSD_readme.txt  
  inflating: Unified_storcli_all_os/FreeBSD/license.txt  
  inflating: Unified_storcli_all_os/FreeBSD/storcli.tar  
  inflating: Unified_storcli_all_os/FreeBSD/storcli64.tar  
   creating: Unified_storcli_all_os/JSON-Schema/
  inflating: Unified_storcli_all_os/JSON-Schema/JSON-SCHEMA-FILES.zip  
  inflating: Unified_storcli_all_os/JSON-Schema/README.txt  
   creating: Unified_storcli_all_os/Linux-PPC/
   creating: Unified_storcli_all_os/Linux-PPC/BigEndian/
  inflating: Unified_storcli_all_os/Linux-PPC/BigEndian/license.txt  
  inflating: Unified_storcli_all_os/Linux-PPC/BigEndian/storcli64.zip  
   creating: Unified_storcli_all_os/Linux-PPC/LittleEndian/
  inflating: Unified_storcli_all_os/Linux-PPC/LittleEndian/license.txt  
  inflating: Unified_storcli_all_os/Linux-PPC/LittleEndian/Readme.txt  
  inflating: Unified_storcli_all_os/Linux-PPC/LittleEndian/storcli64.zip  
  inflating: Unified_storcli_all_os/Linux-PPC/LittleEndian/storcli64_007.0709.0000.0000_ppc64el.deb  
   creating: Unified_storcli_all_os/Linux/
  inflating: Unified_storcli_all_os/Linux/license.txt  
  inflating: Unified_storcli_all_os/Linux/LINUX_Readme.txt  
  inflating: Unified_storcli_all_os/Linux/splitpackage.sh  
  inflating: Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm  
   creating: Unified_storcli_all_os/Ubuntu/
  inflating: Unified_storcli_all_os/Ubuntu/read_me.txt  
  inflating: Unified_storcli_all_os/Ubuntu/storcli_007.0709.0000.0000_all.deb  
   creating: Unified_storcli_all_os/VMwareOP/
  inflating: Unified_storcli_all_os/VMwareOP/readme.txt  
  inflating: Unified_storcli_all_os/VMwareOP/vmware-storcli-007.0709.0000.0000.vib  
   creating: Unified_storcli_all_os/Windows/
  inflating: Unified_storcli_all_os/Windows/license.txt  
  inflating: Unified_storcli_all_os/Windows/storcli.exe  
  inflating: Unified_storcli_all_os/Windows/storcli64.exe  
  inflating: Unified_storcli_all_os/Windows/WIN_ReadMe.txt

As you can see there are two files from the original file – one is text file with instructions and the second is a zip archive Unified_storcli_all_os.zip again. Unpack it, too then install the Linux rpm file “Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm“:

[root@srv ~]# yum install ./Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm 
Loaded plugins: fastestmirror
Examining ./Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm: storcli-007.0709.0000.0000-1.noarch
Marking ./Unified_storcli_all_os/Linux/storcli-007.0709.0000.0000-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package storcli.noarch 0:007.0709.0000.0000-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================
 Package                    Arch                      Version                                   Repository                                               Size
==============================================================================================================================================================
Installing:
 storcli                    noarch                    007.0709.0000.0000-1                      /storcli-007.0709.0000.0000-1.noarch                     12 M

Transaction Summary
==============================================================================================================================================================
Install  1 Package

Total size: 12 M
Installed size: 12 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : storcli-007.0709.0000.0000-1.noarch                                                                                                        1/1 
  Verifying  : storcli-007.0709.0000.0000-1.noarch                                                                                                        1/1 

Installed:
  storcli.noarch 0:007.0709.0000.0000-1                                                                                                                       

Complete!

And now the cli is installed in

/opt/MegaRAID/storcli/storcli64

Example output

Here is an example of all info for a controller with ID=0:

[root@srv ~]# /opt/MegaRAID/storcli/storcli64 /c0 show all
Generating detailed summary of the adapter, it may take a while to complete.

CLI Version = 007.0709.0000.0000 Aug 14, 2018
Operating system = Linux 3.10.0-957.1.3.el7.x86_64
Controller = 0
Status = Success
Description = None


Basics :
======
Controller = 0
Model = AVAGO 3108 MegaRAID
Serial Number = FW-111111111111
Current Controller Date/Time = 12/29/2018, 15:06:17
Current System Date/time = 12/29/2018, 15:06:27
SAS Address = 1111111111111111
PCI Address = 00:01:00:00
Mfg Date = 00/00/00
Rework Date = 00/00/00
Revision No = 


Version :
=======
Firmware Package Build = 24.21.0-0028
Firmware Version = 4.680.00-8290
CPLD Version = FFFFF-FFF
Bios Version = 6.36.00.2_4.19.08.00_0x06180202
HII Version = 03.25.05.04
Ctrl-R Version = 5.19-0601
Preboot CLI Version = 01.07-05:#%0000
NVDATA Version = 3.1705.00-0010
Boot Block Version = 3.07.00.00-0003
Driver Name = megaraid_sas
Driver Version = 07.705.02.00-rh1


Bus :
===
Vendor Id = 0x1000
Device Id = 0x5D
SubVendor Id = 0x15D9
SubDevice Id = 0x809
Host Interface = PCI-E
Device Interface = SAS-12G
Bus Number = 1
Device Number = 0
Function Number = 0


Pending Images in Flash :
=======================
Image name = No pending images


Status :
======
Controller Status = Optimal
Memory Correctable Errors = 0
Memory Uncorrectable Errors = 0
ECC Bucket Count = 0
Any Offline VD Cache Preserved = No
BBU Status = 0
PD Firmware Download in progress = No
Lock Key Assigned = No
Failed to get lock key on bootup = No
Lock key has not been backed up = No
Bios was not detected during boot = No
Controller must be rebooted to complete security operation = No
A rollback operation is in progress = No
At least one PFK exists in NVRAM = Yes
SSC Policy is WB = No
Controller has booted into safe mode = No
Current Personality = RAID-Mode 


Supported Adapter Operations :
============================
Rebuild Rate = Yes
CC Rate = Yes
BGI Rate  = Yes
Reconstruct Rate = Yes
Patrol Read Rate = Yes
Alarm Control = Yes
Cluster Support = No
BBU  = Yes
Spanning = Yes
Dedicated Hot Spare = Yes
Revertible Hot Spares = Yes
Foreign Config Import = Yes
Self Diagnostic = Yes
Allow Mixed Redundancy on Array = No
Global Hot Spares = Yes
Deny SCSI Passthrough = No
Deny SMP Passthrough = No
Deny STP Passthrough = No
Support more than 8 Phys = Yes
FW and Event Time in GMT = No
Support Enhanced Foreign Import = Yes
Support Enclosure Enumeration = Yes
Support Allowed Operations = Yes
Abort CC on Error = Yes
Support Multipath = Yes
Support Odd & Even Drive count in RAID1E = No
Support Security = No
Support Config Page Model = Yes
Support the OCE without adding drives = Yes
Support EKM = No
Snapshot Enabled = No
Support PFK = Yes
Support PI = Yes
Support LDPI Type1 = No
Support LDPI Type2 = No
Support LDPI Type3 = No
Support Ld BBM Info = No
Support Shield State = Yes
Block SSD Write Disk Cache Change = Yes
Support Suspend Resume BG ops = Yes
Support Emergency Spares = Yes
Support Set Link Speed = Yes
Support Boot Time PFK Change = No
Support JBOD = Yes
Disable Online PFK Change = No
Support Perf Tuning = Yes
Support SSD PatrolRead = Yes
Real Time Scheduler = Yes
Support Reset Now = Yes
Support Emulated Drives = Yes
Headless Mode = Yes
Dedicated HotSpares Limited = No
Point In Time Progress = Yes
Extended LD = Yes
Boot Volume Supported = No
Support Uneven span  = No
Support Config Auto Balance = No
Support Maintenance Mode = No
Support Diagnostic results = Yes
Support Ext Enclosure = Yes
Support Sesmonitoring = Yes
Support SecurityonJBOD = Yes
Support ForceFlash = Yes
Support DisableImmediateIO = Yes
Support LargeIOSupport = Yes
Support DrvActivityLEDSetting = Yes
Support FlushWriteVerify = Yes
Support CPLDUpdate = Yes
Support ForceTo512e = Yes
Support discardCacheDuringLDDelete = Yes
Support JBOD Write cache = No
Support Large QD Support = No
Support Ctrl Info Extended = No
Support IButton less = No
Support AES Encryption Algorithm = No
Support Encrypted MFC = No
Support Snapdump = No


Supported PD Operations :
=======================
Force Online = Yes
Force Offline = Yes
Force Rebuild = Yes
Deny Force Failed = No
Deny Force Good/Bad = No
Deny Missing Replace = No
Deny Clear = No
Deny Locate = No
Support Power State = Yes
Set Power State For Cfg = No
Support T10 Power State = No
Support Temperature = Yes
NCQ = Yes
Support Max Rate SATA = No
Support Degraded Media = No
Support Parallel FW Update = Yes
Support Drive Crypto Erase = Yes


Supported VD Operations :
=======================
Read Policy = Yes
Write Policy = Yes
IO Policy = Yes
Access Policy = Yes
Disk Cache Policy = Yes
Reconstruction = Yes
Deny Locate = No
Deny CC = No
Allow Ctrl Encryption = No
Enable LDBBM = Yes
Support FastPath = Yes
Performance Metrics = Yes
Power Savings = No
Support Powersave Max With Cache = No
Support Breakmirror = Yes
Support SSC WriteBack = No
Support SSC Association = No
Support VD Hide = Yes
Support VD Cachebypass = Yes
Support VD discardCacheDuringLDDelete = Yes
Support VD Scsi Unmap = No


Advanced Software Option :
========================

----------------------------------------
Adv S/W Opt        Time Remaining  Mode 
----------------------------------------
MegaRAID FastPath  Unlimited       -    
MegaRAID RAID6     Unlimited       -    
MegaRAID RAID5     Unlimited       -    
----------------------------------------

Safe ID =  111111111111111111111111111111111111

HwCfg :
=====
ChipRevision =  C0
BatteryFRU = N/A
Front End Port Count = 0
Backend Port Count = 8
BBU = Present
Alarm = On
Serial Debugger = Present
NVRAM Size = 32KB
Flash Size = 16MB
On Board Memory Size = 2048MB
CacheVault Flash Size = 8.0 GB
TPM = Absent
Upgrade Key = Absent
On Board Expander = Absent
Temperature Sensor for ROC = Present
Temperature Sensor for Controller = Absent
Upgradable CPLD = Present
Current Size of CacheCade (GB) = 0
Current Size of FW Cache (MB) = 1715
ROC temperature(Degree Celsius) = 68


Policies :
========

Policies Table :
==============

------------------------------------------------
Policy                          Current Default 
------------------------------------------------
Predictive Fail Poll Interval   300 sec         
Interrupt Throttle Active Count 16              
Interrupt Throttle Completion   50 us           
Rebuild Rate                    30 %    30%     
PR Rate                         30 %    30%     
BGI Rate                        30 %    30%     
Check Consistency Rate          30 %    30%     
Reconstruction Rate             30 %    30%     
Cache Flush Interval            4s              
------------------------------------------------

Flush Time(Default) = 4s
Drive Coercion Mode = none
Auto Rebuild = On
Battery Warning = On
ECC Bucket Size = 15
ECC Bucket Leak Rate (hrs) = 24
Restore HotSpare on Insertion = Off
Expose Enclosure Devices = On
Maintain PD Fail History = On
Reorder Host Requests = On
Auto detect BackPlane = SGPIO/i2c SEP
Load Balance Mode = Auto
Security Key Assigned = Off
Disable Online Controller Reset = Off
Use drive activity for locate = Off


Boot :
====
BIOS Enumerate VDs = 1
Stop BIOS on Error = On
Delay during POST = 0
Spin Down Mode = None
Enable Ctrl-R = Yes
Enable Web BIOS = No
Enable PreBoot CLI = No
Enable BIOS = Yes
Max Drives to Spinup at One Time = 2
Maximum number of direct attached drives to spin up in 1 min = 10
Delay Among Spinup Groups (sec) = 12
Allow Boot with Preserved Cache = Off


High Availability :
=================
Topology Type = None
Cluster Permitted = No
Cluster Active = No


Defaults :
========
Phy Polarity = 0
Phy PolaritySplit = 0
Strip Size = 256 KB
Write Policy = WB
Read Policy = RA
Cache When BBU Bad = Off
Cached IO = Off
VD PowerSave Policy = Controller Defined
Default spin down time (mins) = 30
Coercion Mode = None
ZCR Config = Unknown
Max Chained Enclosures = 16
Direct PD Mapping = No
Restore Hot Spare on Insertion = No
Expose Enclosure Devices = Yes
Maintain PD Fail History = Yes
Zero Based Enclosure Enumeration = No
Disable Puncturing = No
EnableLDBBM = Yes
DisableHII = No
Un-Certified Hard Disk Drives = Allow
SMART Mode = Mode 6
Enable LED Header = Yes
LED Show Drive Activity = Yes
Dirty LED Shows Drive Activity = No
EnableCrashDump = Yes
Disable Online Controller Reset = No
Treat Single span R1E as R10 = No
Power Saving option = Enabled
TTY Log In Flash = No
Auto Enhanced Import = No
BreakMirror RAID Support = Yes
Disable Join Mirror = Yes
Enable Shield State = Yes
Time taken to detect CME = 60 sec


Capabilities :
============
Supported Drives = SAS, SATA
Boot Volume Supported = NO
RAID Level Supported = RAID0, RAID1(2 or more drives), RAID5, RAID6, RAID00, RAID10(2 or more drives per span), RAID50, RAID60
Enable JBOD = No
Mix in Enclosure = Allowed
Mix of SAS/SATA of HDD type in VD = Allowed
Mix of SAS/SATA of SSD type in VD = Not Allowed
Mix of SSD/HDD in VD = Not Allowed
SAS Disable = No
Max Arms Per VD = 32
Max Spans Per VD = 8
Max Arrays = 128
Max VD per array = 16
Max Number of VDs = 64
Max Parallel Commands = 928
Max SGE Count = 60
Max Data Transfer Size = 8192 sectors
Max Strips PerIO = 128
Max Configurable CacheCade Size(GB) = 0
Max Transportable DGs = 0
Enable Snapdump = No
FDE Drive Mix Support = No
Min Strip Size = 64 KB
Max Strip Size = 1.0 MB


Scheduled Tasks :
===============
Consistency Check Reoccurrence = 168 hrs
Next Consistency check launch = 12/28/2018, 20:00:00
Patrol Read Reoccurrence = 168 hrs
Next Patrol Read launch = 12/28/2018, 20:00:00
Battery learn Reoccurrence = 670 hrs
Next Battery Learn = 01/11/2019, 01:00:00
OEMID = AVAGO

Drive Groups = 2

TOPOLOGY :
========

----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT      Size PDC  PI SED DS3  FSpace TR 
----------------------------------------------------------------------------
 0 -   -   -        -   RAID6 Optl  Y  43.654 TB dflt N  N   dflt N      N  
 0 0   -   -        -   RAID6 Optl  Y  43.654 TB dflt N  N   dflt N      N  
 0 0   0   8:0      9   DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 0 0   1   8:1      13  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 0 0   2   8:2      10  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 0 0   3   8:3      17  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 0 0   4   8:4      11  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 0 0   5   8:5      16  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 -   -   -        -   RAID6 Optl  Y  43.654 TB dflt N  N   dflt N      N  
 1 0   -   -        -   RAID6 Optl  Y  43.654 TB dflt N  N   dflt N      N  
 1 0   0   8:6      20  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 0   1   8:7      19  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 0   2   8:8      18  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 0   3   8:9      15  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 0   4   8:10     12  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
 1 0   5   8:11     14  DRIVE Onln  Y  10.913 TB dflt N  N   dflt -      N  
----------------------------------------------------------------------------

DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present
TR=Transport Ready

Virtual Drives = 2

VD LIST :
=======

------------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC      Size Name     
------------------------------------------------------------------
0/0   RAID6 Optl  RW     Yes     RAWBD -   ON  43.654 TB driveA 
1/1   RAID6 Optl  RW     Yes     RAWBD -   ON  43.654 TB driveB 
------------------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|B=Blocked|
Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

Physical Drives = 12

PD LIST :
=======

---------------------------------------------------------------------------------
EID:Slt DID State DG      Size Intf Med SED PI SeSz Model                Sp Type 
---------------------------------------------------------------------------------
8:0       9 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:1      13 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:2      10 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:3      17 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:4      11 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:5      16 Onln   0 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:6      20 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:7      19 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:8      18 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:9      15 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:10     12 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
8:11     14 Onln   1 10.913 TB SATA HDD N   N  512B ST12000NM0007-2A1101 U  -    
---------------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded


Cachevault_Info :
===============

------------------------------------
Model  State   Temp Mode MfgDate    
------------------------------------
CVPM02 Optimal 31C  -    2018/01/11 
------------------------------------

Leave a Reply

Your email address will not be published. Required fields are marked *