Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm utterly new to working with LSI MegaRAID controllers and I'm confused as to what RAID level I am actually running. My server is equipped with 4 disks, 4TB each and I would like to have them running in RAID-10. Searching around for some hints I've found this thread and followed the link in one of the answers.

Now, what confuses me is the output of megacli and megasasctl:

# megacli -LDInfo -Lall -aALL | grep RAID
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0

According to the table this should mean I am currently running RAID-1. However according to this I am running RAID-10:

# megasasctl
a0       LSI MegaRAID SAS 9260-4i encl:1 ldrv:1  batt:FAULT, module missing, pack missing, charge failed
a0d0      7451GiB RAID 10  2x2  optimal
a0e252s0   3726GiB  a0d0  online  
a0e252s1   3726GiB  a0d0  online  
a0e252s2   3726GiB  a0d0  online  
a0e252s3   3726GiB  a0d0  online  

My confusion on this probably couldn't be worse.What am I missing here and which output is the one to be believed?

EDIT (in reply to CharlesH's request)

The output is as follows:

# megacli -LDInfo -Lall -aall

Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 7.276 TB
Sector Size         : 512
Is VD emulated      : Yes
Mirror Data         : 7.276 TB
State               : Optimal
Strip Size          : 256 KB
Number Of Drives per span:2
Span Depth          : 2
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk's Default
Encryption Type     : None
Bad Blocks Exist: No
Is VD Cached: No

Exit Code: 0x00
share|improve this question

4 Answers 4

up vote 5 down vote accepted

I think the table is wrong.

Because RAID 10 is a stripe (RAID-0) of a Mirror (RAID-1)
Primary -> RAID-1
Secondary -> RAID-0

RAID 0 -> RAID 1 -> DISK
                 -> DISK
       -> RAID 1 -> DISK
                 -> DISK
share|improve this answer

They seem to be both indicating a RAID 10 to me. Please have a look at http://www.snia.org/sites/default/files/SNIA_DDF_Technical_Position_v2.0.pdf from page 13 for a nice description of what you got as output from megacli.

share|improve this answer

Whats the output of megacli -LDInfo -L0 -a0 (of course L being your logical drive and a your adapter)?

Do you have megaclisas? to run megaclisas-status if you can post this back to give some more information.

However I do agree with MichelZ it looks like 10 to me.

share|improve this answer
The output is way too long to post in a comment so I've added that to the question. –  Erathiel May 14 at 13:14
Looks perfect for RAID 10 to me.. Size : 7.276 TB (around 50% space loss from the 4 drives is correct) Number Of Drives per span:2 (as in per RAID 0 and then two set in RAID 1 so RAID 1+0 10) Span Depth : 2 –  CharlesH May 14 at 13:28
Well, it looked like a RAID-10 to me as well, as far as I could tell from the available size and other things but this RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 thing and the reference at the blog got me terribly confused, given my next to zero experience with advanced RAID controllers. Thank you for your clarification! –  Erathiel May 14 at 14:40

First of all, thank you all for your collective help in trying to get accurate information. I am disappointed with LSI's documentation on megacli - the impetus for creating the reference page for myself in the first place. In regards to the section showing the raid levels and megaCLI's outputs, it took me a while to find re-discover the source of my information on that. I found it today. It was taken from the rapidsoft.de site (I'll add attribution on my page seeing that it is getting external attention which I was not thinking about when I posted it) :

I agree with those folks who believe that the output for RAID1 is not what one would expect from the DDF standards - I don't believe that RAID1 should not show a secondary level. However, the most relevant information to put on a webpage is, IMHO, what megacli DOES show, not what should be shown. I think what I have shown is correct, (but will happily update if/when I get better info).

Since this comment is already long, I will add my ideas about the question of Erathiel's situation on my blog. In short, without more data, it does look like RAID10 (first mirror then stripe) I wonder if he did it in several steps and megacli just recorded the final step of mirroring.

share|improve this answer
Welcome to Server Fault. Please note that answers should be complete and self-contained. It's OK to link to external sites, but it should not be necessary to visit one to get the answer. With that in mind, your answer is too short, not too long. –  Michael Hampton May 28 at 1:09
@Adam I actually did nothing with the controller, it came preconfigured like this. No tampering on my side was involved. –  Erathiel May 28 at 6:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.