Sub topic 15
Hardware RAID Controllers vs Software RAID
This chapter assumes you know what striping, mirroring, and parity are, and that you can describe RAID 0, 1, 5, 6, and 10. Here you compare the two ways a system can build those arrays: with a dedicated controller or with the operating system.
Where the RAID work happens
Every RAID array needs something to split data across drives, calculate parity, and rebuild failed drives. That job can run in two places.
- Hardware RAID uses a dedicated controller. This is either a RAID card in an expansion slot or a RAID chip built into a server motherboard. The controller has its own processor, and often its own cache memory.
- Software RAID uses the operating system. The OS and the main CPU do the work. Windows calls this feature Storage Spaces (and Disk Management's mirrored and striped volumes). Linux uses
mdadm.
Comparing the two
| Feature | Hardware RAID | Software RAID |
|---|---|---|
| Cost | Higher, because you buy a controller | Low, since it is built into the OS |
| CPU load | Low, the controller does the work | Higher, the host CPU does the work |
| Performance | Often better, especially with cache | Good on modern CPUs for simple levels |
| OS dependence | Array is presented to the OS as one disk | Array is tied to the OS that created it |
| Setup | Configured in the controller's firmware utility before the OS loads | Configured inside the OS |
| Typical use | Servers and workstations | Home PCs and small systems |
Key exam points
- A hardware controller shows the array to the OS as a single physical disk. You partition and format it like any other drive.
- Many controllers include a cache. A battery backup unit (BBU) or flash-backed cache protects data in that cache during a power loss.
- Many controllers support hot-swappable drives and hot spares. Software RAID can support them too, but it depends on the OS and the drive bays.
- Motherboard RAID, often called "fake RAID" or firmware RAID, is a middle case. You configure it in UEFI or BIOS, but the CPU still does most of the work, and it is usually tied to that chipset.
Checking what a system uses
On Linux, software RAID arrays appear in /proc/mdstat. If the file lists arrays such as md0, the OS is managing them.
cat /proc/mdstatIf a server shows one large disk but physical inspection shows several drives, a hardware controller is probably presenting them as a single volume. Check the controller's management utility to confirm.
Choosing between them
Pick hardware RAID when you need the best performance, protected cache, or a server with many drives. Pick software RAID when cost matters and the workload is light. In both cases, remember that RAID is not a backup.
Exercise
A technician builds a RAID 5 array on a small office PC with no RAID card, using only the operating system's tools. Is this hardware or software RAID, and which resource carries the extra load?
Show answer
This is software RAID. The host CPU carries the parity calculations, which a hardware controller would handle with its own processor.
Exercise
After a motherboard failure, a technician plugs the drives of a hardware RAID array into a controller from a different vendor. The array is not recognized. Why?
Show answer
Each vendor stores array configuration metadata in its own format, so a different brand of controller usually cannot read it. A controller of the same family is the safer replacement.