Megaraid: Logical Drives at different RAID levels

lsimegaraidraid

I am currently using a SuperMicro machine that has an on-board LSI 2208 controller (MegaRAID class).

I want to create a single array from two drives and then carve that up into:

  • one RAID1 100GB logical drive
  • one RAID0 logical drive taking up the rest of the array

Can I do this with the LSI2208?

If not, is there a different LSI controller that supports this?

Best Answer

By partitions, do you mean that you want to create a single RAID array and then create more than one logical drive on that array?

# Clear the RAID config
megacli cfgclr -a0

# Create a RAID10 array from 4 drives with two logical drives,
# one 100GB and one comprised of the rest of the space
megacli cfgldadd -r1 "[?:0,?:1,?:2,?:3]" WB ADRA NoCachedBadBBU -sz100000 -sz0 -a0

Unfortunately, all logical drives created from a single array must be at the same RAID level.

I would suggest putting the disks into JBOD mode and doing the RAID in software:

megacli pdmakejbod -physdrv "[?:0,?:1]" -a0