MegaCLI working examples cheat sheet

MegaCLI is a pain… a real pain. I’m not a fan of the syntax, it’s not easily readable, did I say it was a pain?

Well, our OCP Knox Units are connected via the LSI MEGARAID SAS 9286CV-8E (SGL) controller, so I’ve been using MegaCLI quite a bit lately. Here is a collection of my working examples:

List All Devices

Create raid 1 volume with disk 0 and 1

Create raid 5 volume with disk 0-14

Create individual raid 0 volumes on drives 2-14

List  all volumes

Create raid 50 volume

Bring physical drive 14 online

Show physical drive status

Enable JBOD support – this is necessary for vSphere vSAN technology

Set global hot spare

Delete all volumes

Clear foreign configs

List drive state

Enable drive location LED

The following two tabs change content below.

Eric Sarakaitis

Virtualization Engineer at CBTS
I'm Eric, I love to cook, sing, garden and enjoy cold beverages!

Author: Eric Sarakaitis

I'm Eric, I love to cook, sing, garden and enjoy cold beverages!