I have OpenFiler storage server.
Without installing Windows and MSM, I want to create raid10 array from disks 2 to 21.
I have already successfully installed MegaCli to OpenFiler but I'm stuck in figuring out the correct command line for creating a raid 10 array.
The documentations says that the syntax for creating a raid 10 is:
MegaCli -CfgSpanAdd -r10 -Array0[E:S,E:S] -Array1[E:S,E:S] -aN
My enclosure ID is 25, so:
[root@linux-h5ut ~]# MegaCli -CfgSpanAdd -r10 -Array0[E25:S02,E25:S21] -Array1[E25:S02,E25:S21] WB Cached NoCachedBadBBU -a0
Invalid input at or near token E
I have googled high and low but there doesn't seem to be any example doing raid10 with megaraid (only the syntax).
Can anyone explain what is wrong?
Best Answer
Response a Create Raid 10 (not Raid 6)
First get the Adapter #
MegaCli or megacli depending distro *nix
In this case Adapter it's
Adapter #0
Get Device ID and Slot disk values:
ID in this case for all it's 252
According MegaCli command for create RAID 10 it's
MegaCli -CfgSpanAdd -r10 -Array0[E:S,E:S] -Array1[E:S,E:S] -aN
In this case, create a RAID 10, creating one array for Raid1 with disk 0 and 2, and other array for Raid1 with disks 1 and 3 and N = 0 (-a0)
Verify RAID
Or if
megasasctl
is unavailable: