How to setup Megaraid Volume in Petitboot using Storcli

If this is your first time bringing up a OpenPOWER server and you wanted a to setup a megaRAID volume before you do an install: You should be reading this.

In order to  do this

  1. Power on the server and wait for Petitboot menu to show on your VGA or Out of Band console. This should take 4-5 mins .
  2. When should get to Petitboot menu and then press “Exit to Shell” option as show below:

Screen Shot 2016-06-09 at 11.31.40 AM

3. Once in petitboot shell, you can access a plugged in thumb drive with storcli64 binary or scp / wget the same binary from Petitboot shell. I am providing the binary corresponding to latest here:

4.  change ‘storcli64’ permissions :   “chmod 777 storcli64”

5.  Now you can use this storcli64 binary to create a VD that you can subsequently install. Here is a dictionary of Storcli commands you can use for doing the same:

Show all physical drives:

./storcli64 /c0 /eall /sall show

Show existing VD

 ./storcli64 /c0 /vall show

Delete ALL Existing VD

./storcli64 /c0 /vall del force

Configure: Add everything to RAID 0 ( Based on number of drives you have, command changes, in my case it was 14 drives)

 ./storcli64 /c0 add vd type=r0 drives=0:0-14

Show new VD

 ./storcli64 /c0 /vall show


 ./storcli64 /c0 /vall start init

Check if everything is online:

./storcli64 /c0 /eall /sall show


How to setup Megaraid Volume in Petitboot using Storcli

5 thoughts on “How to setup Megaraid Volume in Petitboot using Storcli

  1. Cameron says:

    I see the issue now… When I checked the binary on RHEL6, the information wasn’t very concise. I checked it on a much more modern dist/release and it’s clearly a PPC64 binary.

    Will these PPC64 MegaRAID utilities be released formally? I’d imagine so. Having just this binary is a good start, but I would expect the full suite has prebuilt tools for notifying you of drive errors, etc. For now, I can write my own scripts around this tool so this is fine. Thank you for providing this binary!


    1. adigangidi says:

      Hi Cameron, These binaries are also official released in a deb / rpm package. I provided the final binary in my blog post mainly to help people get started quickly. Would you like a link to the official version ?


      1. Cameron says:

        Yes, please! Thank you for your help!

        In my research to find a fully functioning RAID controller for OpenPOWER, I’ve been unable to find any userspace management utilities except for your blog. I’ve specifically looked for such utilities for LSI MegaRAID, as well as Microsemi Adaptec. All the controllers I’ve checked are listed on the OpenPOWER foundation site too.

        I don’t have an OpenPOWER box just yet, but I have a POWER9 system pre-ordered.


      2. Cameron says:

        I see now. You can just get storcli, but not the full suite of reporting tools, etc.

        Here’s some info:

        The download link in the above article is bad, so you can find it in this list under management tools:,+Controllers,+and+ICs&pf=RAID+Controller+Cards&pn=MegaRAID+SAS+9361-8i&po=&pa=Management+Software+and+Tools&dk=

        While it’s unfortunate we don’t get the full suite, I strongly suspect if you’re in a position to run Linux on POWER and need a RAID controller, scripting around storcli for alerts regarding issues (such as disk failures) won’t be a problem for you anyway.

        The storcli zip file has a deb package for ppc64 little endian, and a tar file for ppc64 big endian. I suspect you could extract the storcli command from the deb and run it from RHEL, etc without issue.

        The text file provided in the storcli zip file has a fairly long list of supported controllers too.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s