The Storage Command Line Tool (StorCLI) is the command line management software designed for the MegaRAID® product line. The StorCLI is a command line interface that is designed to be easy to use, consistent, and easy to script. Great tool to configure, monitor, and maintain the for MegaRAID products

The MegaCLI commands can be executed on the Storage Command Line (StorCLI) tool. A single binary is output for the StorCLI commands and its equivalent MegaCLI commands.

For more info about Storcli, read Storcli Reference Manual


In this article, I'll only show you some of Storcli command examples,

Download and Install the MegaCLI tool package

The most recent Storcli package can be downloaded from this link
https://docs.broadcom.com/docs/12351376
Agree the term then download starts
Unzip and install the rpm, then you are done

Display all Megaraid controller Configuration overview

This command shows Controller,and their overall info.

# storcli64 show  
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = fibrevillage.com
Operating System  = Linux3.10.0-514.21.2.el7.x86_64

System Overview :
===============

---------------------------------------------------------------------------------
Ctl Model                Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS  EHS ASOs Hlth
---------------------------------------------------------------------------------
  0 AVAGOMegaRAID9361-8i     8  45   4     0   4     0 Opt On  1&2 Y      3 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

With 'all' option, you get a bit more information

# storcli64 show all
...
ASO :
===

----------------------------------------------------
Ctl Cl SAS MD R6 WC R5 SS FP Re CR RF CO CW HA SSHA
----------------------------------------------------
  0 X  U   X  U  U  U  X  U  X  X  X  X  X  X  X    
----------------------------------------------------

Cl=Cluster|MD=Max Disks|WC=Wide Cache|SS=Safe Store|FP=Fast Path|Re=Recovery
CR=CacheCade(Read)|RF=Reduced Feature Set|CO=Cache Offload
CW=CacheCade(Read/Write)|X=Not Available/Not Installed|U=Unlimited|T=Trial
|HA=High Availability |SSHA=Single server High Availability

Display Controller properties

Specify a controller with show command, it displays the controller's all properties. In below example, the command displays the controller 0's properties, Topology, virtual disks, pd etc..

# storcli64 /c0 show 
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Product Name = AVAGO MegaRAID 9361-8i
Serial Number = SV61405967
SAS Address =  500605b00ba7a6c0
PCI Address = 00:06:00:00
System Time = 10/15/2017 23:42:13
Mfg. Date = 03/28/16
Controller Time = 10/15/2017 23:41:04
FW Package Build = 24.15.0-0016
BIOS Version = 6.31.03.0_4.17.08.00_0x06140200
FW Version = 4.650.00-6121
Driver Name = megaraid_sas
Driver Version = 06.811.02.00-rh1
Vendor Id = 0x1000
Device Id = 0x5D
SubVendor Id = 0x1000
SubDevice Id = 0x9361
Host Interface = PCI-E
Device Interface = SAS-12G
Bus Number = 6
Device Number = 0
Function Number = 0
Drive Groups = 4

TOPOLOGY :
========

----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT      Size PDC  PI SED DS3  FSpace TR
----------------------------------------------------------------------------
 0 -   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   0   54:0     58  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
...
 3 0   10  54:43    97  DRIVE Onln  N   7.276 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 = 4

VD LIST :
=======

----------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC      Size Name   
----------------------------------------------------------------
0/0   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk0
1/1   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk1
2/2   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk2
3/3   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk3
----------------------------------------------------------------

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=ConsistentR=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 = 45

PD LIST :
=======

---------------------------------------------------------------------------
EID:Slt DID State DG     Size Intf Med SED PI SeSz Model                Sp
---------------------------------------------------------------------------
54:0     58 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 U  
...
54:44    93 GHS    - 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 D  
---------------------------------------------------------------------------

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|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    Next Learn           
---------------------------------------------------------
CVPM02 Optimal 35C  -    2016/07/27 2017/10/19  07:46:24
---------------------------------------------------------

With 'all' option, you will get more property values of the controller

# storcli64 /c0 show all
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None


Basics :
======
Controller = 0
Model = AVAGO MegaRAID 9361-8i
Serial Number = SV61405967
Current Controller Date/Time = 10/15/2017, 23:44:54
Current System Date/time = 10/15/2017, 23:46:02
SAS Address = 500605b00ba7a6c0
PCI Address = 00:06:00:00
Mfg Date = 03/28/16
Rework Date = 00/00/00
Revision No = 002


Version :
=======
Firmware Package Build = 24.15.0-0016
Firmware Version = 4.650.00-6121
CPLD Version = 26515-01A
Bios Version = 6.31.03.0_4.17.08.00_0x06140200
Ctrl-R Version = 5.16-0300
Preboot CLI Version = 01.07-05:#%0000
NVDATA Version = 3.1602.00-0002
Boot Block Version = 3.07.00.00-0003
Driver Name = megaraid_sas
Driver Version = 06.811.02.00-rh1


Bus :
===
Vendor Id = 0x1000
Device Id = 0x5D
SubVendor Id = 0x1000
SubDevice Id = 0x9361
Host Interface = PCI-E
Device Interface = SAS-12G
Bus Number = 6
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
Support PD Firmware Download = 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


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


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


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 = No
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


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

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

Safe ID =  SVRLTW8MIPG8U73TUQVEW7MF8V6JFD22SL94UGRZ

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 = 1024MB
CacheVault Flash Size = 4.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) = 818
ROC temperature(Degree Celsius) = 56


Policies :
========

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

------------------------------------------------
Policy                          Current Default
------------------------------------------------
Predictive Fail Poll Interval   300 sec         
Interrupt Throttle Active Count 16              
Interrupt Throttle Completion   50 us           
Rebuild Rate                    80 %    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 = Off
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 = Off
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 = 256kB
Write Policy = WB
Read Policy = Adaptive
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 = No
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, RAID5, RAID6, RAID00, RAID10, RAID50,
RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported,
PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
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 VDs = 0
Min Strip Size = 64 KB
Max Strip Size = 1.0 MB


Scheduled Tasks :
===============
Consistency Check Reoccurrence = 168 hrs
Next Consistency check launch = 10/19/2017, 16:00:00
Patrol Read Reoccurrence = 168 hrs
Next Patrol Read launch = 10/19/2017, 16:00:00
Battery learn Reoccurrence = 670 hrs
Next Battery Learn = 10/19/2017, 07:00:00
OEMID = LSI

Drive Groups = 4

Get Number of Adapter

# storcli64 show 
...
Number of Controllers = 1
...

List all physical disks

Option 'all' displays all controller, all pdisk info

#storcli64 /call/dall show

If you just want to get physical disks info connected to controller 0, then run

# storcli64 /c0/dall show

In the example below, it only show physical disk number, location, size and disk properties.

# storcli64 /call/dall show
Controller = 0
Status = Success
Description = Show Diskgroup Succeeded


TOPOLOGY :
========

----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT      Size PDC  PI SED DS3  FSpace TR
----------------------------------------------------------------------------
 0 -   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   0   54:0     58  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
...
 0 0   5   54:5     64  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 0 0   6   54:6     62  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 0 0   7   54:7     68  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 0 0   8   54:8     55  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
...
 2 0   3   54:25    90  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 2 0   4   54:26    89  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
...
 3 0   6   54:39    94  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 3 0   7   54:40    76  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 3 0   8   54:41    92  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 3 0   9   54:42    98  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 3 0   10  54:43    97  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 - -   -   54:44    93  DRIVE GHS   -   7.276 TB -    -  -   -    -      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

With option 'all', you see more info

# storcli64 /call/dall show all

List a physical disk detail info

This command displays not just disk 0's property, it also displays the physical disks that related to it.

# storcli64 /c0/d0 show all
Controller = 0
Status = Success
Description = Show Diskgroup Succeeded


TOPOLOGY :
========

----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT      Size PDC  PI SED DS3  FSpace TR
----------------------------------------------------------------------------
 0 -   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 0 0   0   54:0     58  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
...
 0 0   10  54:10    57  DRIVE Onln  N   7.276 TB dflt N  N   dflt -      N  
 - -   -   54:44    93  DRIVE GHS   -   7.276 TB -    -  -   -    -      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


VD LIST :
=======

----------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC      Size Name   
----------------------------------------------------------------
0/0   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk0
----------------------------------------------------------------

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=ConsistentR=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

Total VD Count = 1

DG Drive LIST :
=============

---------------------------------------------------------------------------
EID:Slt DID State DG     Size Intf Med SED PI SeSz Model                Sp
---------------------------------------------------------------------------
54:0     58 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 U  
...
54:10    57 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 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|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded

Total Drive Count = 11

Create a Virtual Drive

Create a Logical Drive

#storcli64 /cx add vd each r6 name=vdisk0 drives=e54:1|e:s-x

List Virtual Drive info

The -L specifies the LD ID, -a specifies Adapter ID, same as the example above.

# storcli64 /c0/vall show  
Controller = 0
Status = Success
Description = None

Virtual Drives :
==============

----------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC      Size Name   
----------------------------------------------------------------
0/0   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk0
1/1   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk1
2/2   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk2
3/3   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk3
----------------------------------------------------------------

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=ConsistentR=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

In the case above,  4 Virtual drives were listed, with detail info such as raid level, size etc..

With 'all' option, show command dispays all virtual detail info

Display one virtual drive detail info:

Here you go, just specify controller number and virtual drive number, use show command with all option. It displays the virtual drive's raid level, size, stripe size etc..

# storcli64 /c0/v0 show all
Controller = 0
Status = Success
Description = None


/c0/v0 :
======

----------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC      Size Name   
----------------------------------------------------------------
0/0   RAID6 Optl  RW     Yes     RWTD  -   ON  65.491 TB vdisk0
----------------------------------------------------------------

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=ConsistentR=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency


PDs for VD 0 :
============

---------------------------------------------------------------------------
EID:Slt DID State DG     Size Intf Med SED PI SeSz Model                Sp
---------------------------------------------------------------------------
54:0     58 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 U  
54:1     66 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 U  
...
54:9     65 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 U  
54:10    57 Onln   0 7.276 TB SATA HDD N   N  512B HGST HUH728080ALE604 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|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded


VD0 Properties :
==============
Strip Size = 256 KB
Number of Blocks = 140642942976
VD has Emulated PD = Yes
Span Depth = 1
Number of Drives Per Span = 11
Write Cache(initial setting) = WriteThrough
Disk Cache Policy = Disk's Default
Encryption = None
Data Protection = Disabled
Active Operations = None
Exposed to OS = Yes
Creation Date = 04-07-2017
Creation Time = 08:54:48 PM
Emulation type = default
Cachebypass size = Cachebypass-64k
Cachebypass Mode = Cachebypass Intelligent
Is LD Ready for OS Requests = Yes
SCSI NAA Id = 600605b00ba7a6c020eebd18d7734837

View information about the battery backup-up unit state

# storcli64 /c0/cv show all
Controller = 0
Status = Success
Description = None


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

--------------------
Property    Value   
--------------------
Type        CVPM02  
Temperature 35 C    
State       Optimal
--------------------


Firmware_Status :
===============

---------------------------------------
Property                         Value
---------------------------------------
Replacement required             No    
No space to cache offload        No    
Module microcode update required No    
---------------------------------------


GasGaugeStatus :
==============

------------------------------
Property                Value
------------------------------
Pack Energy             244 J
Capacitance             100 %
Remaining Reserve Space 0     
------------------------------


Design_Info :
===========

------------------------------------
Property                 Value      
------------------------------------
Date of Manufacture      27/07/2016
Serial Number            9262       
Manufacture Name         LSI        
Design Capacity          288 J      
Device Name              CVPM02     
tmmFru                   N/A        
CacheVault Flash Size    4.0 GB     
tmmBatversionNo          0x07       
tmmSerialNo              0xa143     
tmm Date of Manufacture  17/03/2016
tmmPcbAssmNo             022544411A
tmmPCBversionNo          0x03       
tmmBatPackAssmNo         49571-15C  
scapBatversionNo         0x00       
scapSerialNo             0x242e     
scap Date of Manufacture 27/07/2016
scapPcbAssmNo            1700154483
scapPCBversionNo         0x E       
scapBatPackAssmNo        49571-15C  
Module Version           6071-04A   
------------------------------------


Properties :
==========

--------------------------------------------------------------
Property             Value                                    
--------------------------------------------------------------
Auto Learn Period    27d (2412000 seconds)                    
Next Learn time      2017/10/19  07:46:24 (561714384 seconds)
Learn Delay Interval 0 hour(s)                                
Auto-Learn Mode      Transparent                              
--------------------------------------------------------------

Configure write-cache to be disabled when battery is broken or controller has no battery

#storcli64 /c0/v4 set wrcache=wt

View reconstruction progress

When reconstructing a RAID array, you can check its progress with this command, in this case, Controller 0 Enclosure 54 Drive 1

# storcli64 /c0/e54/s1 show
or
#storcli64 /c0/e54/s1 show rebuild

Patrol Read

Patrol read is a feature which tries to discover disk error before it is too late and data is lost. By default it is done automatically (with a delay of 168 hours between different patrol reads) and will take up to 30% of IO resources.

You can find more detail in megaraid patrol read and consistent check and MeagRAID Patrol Read Detail

To see information about the patrol read state and the delay between patrol read runs:

#storcli64 /cx show patrolRead

storcli64 /c0 show patrolread
Controller = 0
Status = Success
Description = None


Controller Properties :
=====================

---------------------------------------------
Ctrl_Prop               Value                
---------------------------------------------
PR Mode                 Auto                 
PR Execution Delay      168 hours            
PR iterations completed 14                   
PR Next Start time      10/19/2017, 16:00:00
PR on SSD               Disabled             
PR Current State        Stopped              
--------------------------------------------

 

To reduce patrol read max concurrent physical disks:

#storcli /cx set patrolread maxconcurrentpd =<value>

To disable automatic patrol read:

#storcli /cx set patrolread on mode=off

To enable automatic patrol read:

#storcli /cx set patrolread on mode=auto

To start a manual patrol read scan:

#storcli /cx set patrolread on mode=manual
#storcli /cx start patrolread

To stop a patrol read scan:

#storcli /cx start patrolread

Note: Use the above commands to run patrol read in off-peak times.


Check  MegaRAID Patrol Read  and MegaRAID Consistency Check for more details