0

I have 4 500GB hard drives.

I set up a RAID 10 in BIOS, much like shown here: http://www.supermicro.com/manuals/other/RAID_SATA_ESB2.pdf

Then I followed these instructions: http://www.unrest.ca/Knowledge-Base/configuring-mdadm-raid10-for-ubuntu-910

Basically I cannot get it to work. I go through the instructions when I get to the "partition" section of the install, creating 4 RAID 1's (2 partitions on each drive, one for primary and one for swap space), then combining to make a RAID 10. Unfortunately it still shows 2 partitions, one 500 GB and another being 36GB for some reason. Any ideas?

I think best would be if anyone had found good instructions (step by step) for how to do this...I've been googling for hours and haven't found anything...

lollercoaster
  • 3,425
  • 5
  • 17
  • 10
  • 2
    Ther are some of us which know what "Hardware Raid" is and do take offense by people calling motherboard cheapo driver based RAID "Hardware Raid". You do NOT have a RAID controller there, just some drivers doing RAID, so whatever you do - it is all software based anyway. – TomTom Jul 23 '12 at 10:51
  • At least with software RAID you know what you're getting. Which is why these particular setups are disparagingly called [fake RAID](http://serverfault.com/q/9244/126632). – Michael Hampton Feb 28 '13 at 04:10

4 Answers4

2

Your motherboard does not have an hardware RAID controller, but rather a SoftRAID one. That's basically a standard SATA controller + custom BIOS and drivers to work in raid mode. There's no cache, prefetch, parity (RAID5, RAID6), etc... it's best described as a software raid with BIOS support.

Performance wise there is no (hardware) difference between the two solutions, which one performs better only depends on their respective software implementations (md and dmraid drivers, both in linux kernel). The low level disk access will be through linux SATA drivers in both cases (ie. the kernel will see and work with the individual disks under the hood).

Whether to prefer using that or native linux software (mdadm) is another (long) story, but basically:

  • if you want to use your motherboard's soft raid you must not use mdadm but dmraid. Bonus point here is being able to boot from a RAID0 array or a degraded RAID1/RAID10 array. Could be tricky to get access to your data if the motherboard dies and you need to move to a different one.
  • if you want to use Linux software raid you must configure your motherboard controller as a standard SATA one and then use mdadm. Bonus point here is using standard and proven linux tools (md driver and mdadm utility) and being hardware-independent. You cannot boot from RAID0/10/5/6/otherfancystuff arrays, you can boot from RAID1 arrays if you do your homework right.

If you follow the motherboard's softraid way, you have to find how to create a RAID10 setup before actually installing/booting linux, as described in the manual. But keep in mind you have no true hardware raid.

Luke404
  • 5,708
  • 3
  • 44
  • 58
0

Firstly you don't want to use mdadm because that is for software RAID. Secondly Why are you creating 4 RAID 1's? What you want to do is create 2 RAID 1's and then use them to create a RAID O. Example Use Drive 1+2 to create a RAID 1 (lets call it R1). Similarly use drive 3+4 to create RAID 1 (R2). Then use R1+R2 to create a RAID 0

Once you setup up RAID in your BIOS you want to install ubuntu normally because a hardware RAID is transparent to the OS.

Sameer
  • 4,070
  • 2
  • 16
  • 11
  • right. but once I create the two RAID 1's (R1 and R2) the BIOS does not let me create a RAID 0 ... – lollercoaster Jun 19 '11 at 04:19
  • there is an option to select RAID 10 (and I cannot select drives to use). but when I do this and try to install ubuntu, it does not recognize the RAID array as a single drive (it shows it as 2 drives)...so its not transparent to the OS as you mentioned it should be – lollercoaster Jun 19 '11 at 04:20
  • @lollercoaster: Maybe it's not the true hardware RAID but software RAID and it needs software drivers in the operating system to work correctly. I would turn off RAID controller in BIOS and use Ubuntu native RAID creator. – 0xFF Dec 27 '12 at 09:17
  • @0xFF: It is definitely a softraid, no maybe about it, he sees the drives individually and I checked the chip specs. Like you I would do the same. Turn it off in the BIOS and do it in Linux under software. –  Feb 28 '13 at 04:13
0

Sameer is correct that you don't need to worry about mdadm at all because that is for software RAID and as your motherboard has hardware RAID that is preferred over software even on the worst day. Sameer is slightly incorrect in the inner workings of how a RAID10 array is configured but that is not germane to the question at hand. RAID10 involves the stripping (concatenating) of 2 pairs of drives (RAID0). These 2 striped arrays are then mirrored (RAID1).

The PDF you linked actually gives you the instructions to configured RAID10 on page 6. You would need to perform this before you attempt to install Ubuntu. Once the RAID10 volume is created when you install Ubuntu it should be seen as a 1TB SCSI device (most likely /dev/sda) to the OS.

Jeremy Bouse
  • 11,241
  • 2
  • 27
  • 40
  • Jeremy, FYI there is a difference of risk involved in RAID 10 vs RAID 01. It is higher when setting up striping and then mirroring. http://decipherinfosys.wordpress.com/2008/01/15/difference-between-raid-01-vs-raid-10/ – Sameer Jun 19 '11 at 06:14
  • right but it's not a 1TB SCSI device....that's why I'm wondering what is going on... – lollercoaster Jun 21 '11 at 18:55
  • what are you seeing then when the OS boot install media tries to detect the harddrive? – Jeremy Bouse Jun 23 '11 at 14:28
  • The controller chip is a softraid, not a hardware raid (check the specs). Additionally he is seeing the individual drives in Linux and not a single drive, which proves the controller is not a 'smart' hardware raid controller. Windows detects it and pretends it's a single drive automatically, Linux won't. –  Feb 28 '13 at 04:07
  • Intel fakeraid devices show up as `/dev/mapper/isw_#########_VolumeName`, rather than `/dev/sd#`. – Michael Hampton Feb 28 '13 at 04:09
0

First you do not have hardware raid. I've checked the stats on Intel's website. What you have is software raid (softraid) AKA "fakeraid".

http://ark.intel.com/products/codename/26738

In this, the operating system handles the raid in software, with assistance from the BIOS. Windows includes a driver for it that makes it look like a hardware raid, but it is not. They way to test it, is to see how many hard drives Linux sees it as: If you see the individual drives (as you do) that's a softraid. A hardware RAID would (a) cost about 300 dollars for the controller, and (b) have an all-in-1 drive controller that made all the drives appear as 1 to Linux.

Check the ubuntu documenation for softraid, they explain the difference between hardware raid and softraid and how to set it up. I used mdadm for mine. Raid on linux is a pain.

https://help.ubuntu.com/community/FakeRaidHowto

https://help.ubuntu.com/community/Installation/SoftwareRAID

EDIT: I have to say Luke04's answer is good.