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

In this article, I'll show you Storcli drive group commands examples.

Storcli Drive Group command help

# storcli64 /c0/dall help
     Storage Command Line Tool  Ver 1.18.11 Feb 09, 2016

     (c)Copyright 2015, AVAGO Corporation, All Rights Reserved.

storcli /cx/dall show cachecade
storcli /cx/dall show mirror
storcli /cx/dall split mirror
storcli /cx/dall add mirror src=<val> [force]

Drive Group Show

This command shows the topology information of the drive group.

# storcli64 /c0/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  Y   7.276 TB dflt N  N   dflt -      N  
 ...
 1 -   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 1 0   -   -        -   RAID6 Optl  N  65.491 TB dflt N  N   dflt N      N  
 1 0   0   54:11    87  DRIVE Onln  Y   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

Drive Group Show all

With 'all' option,Stocli drive group command shows all available configurations in the controller which includes topology information, virtual drive information, physical drive information, free space, and free slot information.

Show all cachecade

This command shows all CacheCade virtual drive information.

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

Couldn't find any cachecade configuration

In the system I'm using, no cachecade configed.

Drive Group add mirror

storcli /cx/dall add mirror src=<val> [force] 

Drive Group split mirror

storcli /cx/dall split mirror