Wednesday, December 3, 2014

RAID level confusion (MegaCli vs megasasctl output)



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

Answer




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

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...