Sub topic 15
Hardware RAID Controllers vs Software RAID
This chapter compares the two ways a computer can run a RAID array: a dedicated hardware controller or software in the operating system. It assumes you already know striping, mirroring, parity, and the RAID 0, 1, 5, 6, and 10 levels from earlier chapters. You should also know the basics of SATA and M.2 drive connections.
Where the RAID work happens
A RAID array needs something to do the work. That something splits data into stripes, writes mirror copies, calculates parity, and rebuilds a failed drive. Two places can do this work.
- Hardware RAID uses a dedicated controller. The controller has its own processor and, usually, its own memory. The operating system sees the array as one ordinary disk.
- Software RAID uses the computer's main CPU and an operating system feature. The OS sees the individual drives and combines them itself.
A third option, often called firmware RAID or "fake RAID," sits between the two. It is covered later in this chapter, because the exam and real motherboards both use it.
Hardware RAID controllers
A hardware RAID controller comes in one of two forms:
- An expansion card that plugs into a PCIe slot. Drives connect to the card with cables.
- A chip on the motherboard or server backplane, which is common in servers.
What the controller provides
- Offloaded processing. The controller calculates parity, so the main CPU is free for applications. This matters most for RAID 5 and RAID 6, where every write needs parity math.
- Cache memory. Many controllers have onboard RAM that speeds up writes. The controller can report a write as finished once the data is in cache.
- Battery or flash backup. A battery backup unit (BBU) or flash module protects the cache. Without it, a power loss could lose data that was in cache but not yet on disk.
- Hot-swap and hot-spare support. Controllers handle drive replacement and automatic rebuilds with little operator effort.
- OS independence. The array exists before the operating system starts. You can boot from it, and the OS needs only a driver for the controller.
- A configuration utility. You usually enter it during startup, before the OS loads, by pressing a key shown on screen. There you create arrays, choose the RAID level, and set hot spares.
Drawbacks
- Cost. A good controller card costs much more than software RAID, which is free.
- A single point of failure. If the controller dies, the array may be unreadable until you install the same model or a compatible one. Different brands store array metadata in different formats.
- Driver and firmware upkeep. Controllers need up-to-date drivers and firmware.
Software RAID
Software RAID is built into the operating system. You need no extra hardware beyond the drives.
| Operating system | Software RAID feature |
|---|---|
| Windows | Storage Spaces, and dynamic disks in Disk Management |
| Linux | `mdadm` (the `md` driver), LVM mirroring |
| macOS | Disk Utility RAID sets |
Advantages
- Low cost. There is nothing extra to buy.
- Flexibility. You can often build an array from any drives the OS can see, including a mix of SATA and USB drives.
- No controller to fail. If the computer breaks, you can usually move the drives to another machine running the same OS and read the array.
Drawbacks
- CPU use. The main CPU does the parity math. On modern processors this cost is small for RAID 0, 1, and 10. It is more noticeable for RAID 5 and 6 under heavy write loads.
- OS dependence. The array exists only once the OS is running. Booting from some software arrays is difficult or impossible, depending on the OS and the level.
- Fewer features. Software RAID usually has no battery-protected cache.
Firmware RAID ("fake RAID")
Many consumer motherboards offer RAID options in the UEFI/BIOS setup, such as Intel Rapid Storage Technology. The motherboard chipset provides a configuration screen, but there is no dedicated RAID processor. The OS driver still does the work on the main CPU.
This is software RAID with a firmware front end. It has two practical effects:
- The array can be defined before boot, which makes booting from it easier.
- The array is tied to the chipset vendor's format. Moving the drives to a different brand of motherboard may make the array unreadable.
For the exam, treat motherboard RAID as a low-cost option that is not true hardware RAID.
Side-by-side comparison
| Feature | Hardware RAID | Software RAID |
|---|---|---|
| Who does the work | Dedicated controller processor | Main CPU and OS |
| Extra cost | Yes, card or server controller | None |
| Performance under parity levels | Better, with cache | Adequate on modern CPUs |
| Boot support | Strong | Limited |
| Cache protection (battery) | Often available | Not typical |
| Portability of drives | Needs a compatible controller | Often works on another machine with the same OS |
| Typical use | Servers, workstations, business systems | Home labs, small offices, budget builds |
Checking what your system uses
You can check which kind of storage setup a system has. On Windows, this PowerShell command lists physical disks. If a hardware RAID controller presents an array as one disk, you see one large virtual disk instead of the individual drives.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, BusType, SizeLook at the BusType column. A value of RAID suggests that a RAID controller is presenting the disk. A software array built with Storage Spaces shows the individual member drives, plus a separate virtual disk in the Storage Spaces tools.
On Linux, software RAID arrays appear in /proc/mdstat:
cat /proc/mdstatIf the file lists devices such as md0, the system is using Linux software RAID. If it is empty or missing, no md arrays are active.
Common mistakes
- Assuming motherboard RAID is hardware RAID. It runs on the main CPU. Only a dedicated controller with its own processor counts as hardware RAID.
- Skipping the controller's battery. A controller cache without battery or flash protection risks data loss on a power failure.
- Moving drives between different controllers. Metadata formats differ between vendors. Keep a record of the controller model, or plan for the same model as a spare.
- Treating any RAID as a backup. Both types still copy deletions, corruption, and malware to every drive. The next chapter-level topic, why RAID is not a backup, applies equally to both.
Choosing between them
Use these criteria when a scenario asks you to pick one.
- Is this a server or business-critical system that needs high availability? Choose hardware RAID, with hot-swap bays and a protected cache.
- Is the budget tight, and is the system a home or small-office machine? Choose software RAID. RAID 1 or RAID 10 is easy and cheap.
- Will the system do heavy RAID 5 or RAID 6 writes? A hardware controller with cache helps.
- Do you need to move drives between machines easily? Software RAID is more portable, if the OS is the same.
Exercise
A small office wants mirrored storage for a file server on a tight budget. The server has two identical SATA drives and a modern CPU. The owner asks whether to buy a $400 RAID controller card. What would you recommend, and what is one risk of your recommendation?
Show answer
Recommend software RAID 1, using the operating system's built-in feature (such as Storage Spaces on Windows or mdadm on Linux). Mirroring needs no parity math, so the CPU load is small, and the controller card would add cost with little benefit. One risk is that the array depends on the operating system, so it cannot easily be used to boot on some systems and has no battery-protected cache. The office must also still run regular backups, because RAID 1 does not protect against deletion or malware.
Exercise
A technician moves two drives from a failed server with a hardware RAID 1 controller into a different desktop. The desktop's operating system shows the drives as unreadable. Give the most likely reason and one way to avoid the problem.
Show answer
The array metadata was written in the format of the original controller, and the desktop's controller or OS cannot read it. To avoid the problem, install the same model of controller, or a compatible one, before moving the drives. Keeping a spare controller of the same model, or a current backup, also prevents the problem.