Hardware RAID or plain HBA mode
Video 061 of 140 in Virtualization Foundations, in the unit “Server hardware and out-of-band management”. 4:06, with English and Hindi audio.
A server's disks plug into a controller card, and the controller's mode decides what the operating system gets to see. A RAID controller combines disks into volumes, so the system sees only those volumes. An HBA passes each disk through as it is. This article explains both modes, how a mirror survives one failed disk, when plain HBA mode fits, and the risks that a controller's write cache brings.
What you will learn
- A RAID controller combines disks into volumes, while HBA mode passes each disk through.
- A mirror writes every change to two disks, so one failed disk does not take the data with it.
- Choose the mode by who should handle redundancy, and by what you need to see.
- A write cache needs battery or flash protection, or a power cut can lose writes.
- A degraded volume warning, or a disk fault shown only by the controller's tools, needs a look.
Two ways a controller can work
Each disk needs a controller. The disk stores the data, and the controller carries that data to the server. A controller can work in one of two ways: it combines the disks into volumes, or it passes each disk through untouched. The first way is hardware RAID. The second is HBA mode, where HBA stands for host bus adapter.
RAID stands for redundant array of independent disks. Depending on the layout, the data survives one or more disk failures, or the disks work faster together.
How a mirror survives a failed disk
The simplest case is a mirror, which is RAID 1. The sequence below shows what happens when one disk fails.
- Two disks each hold a copy, because every write goes to both.
- One disk fails, and the other still holds all the data, so the volume keeps working.
- The failed disk is replaced, and the controller copies the data onto the new one. That copy is called a rebuild.
- The mirror is fully protected again only when the rebuild finishes.
What the operating system can see
With hardware RAID, the operating system sees only the volume that the controller built. With HBA mode, every disk appears on its own, so the operating system and its tools can read each disk's own health data.
A RAID controller often has a write cache, a fast memory that holds writes before they reach the disks. The cache must be protected by a battery or by flash memory. Without that protection, a power cut can lose the writes waiting in it.
When plain HBA mode fits
- Storage software that copies data between servers itself, and wants raw disks.
- Checking each disk's health with the operating system's own tools.
- Setups where redundancy is handled by the operating system, or by the storage software above it.
The choice follows from who should handle redundancy, and from what you need to see.
What goes wrong with a RAID controller
A degraded volume warning is one sign of trouble. Another is a disk fault that only the controller's own tools show. So check those tools as well as the operating system.
Note: A write cache without battery or flash protection can lose the writes waiting in it when the power is cut.
Terms
- RAID
- Redundant array of independent disks: several disks combined into one volume, so data survives a disk failure or the disks work faster together.
- HBA
- Host bus adapter: a controller that passes each disk through as it is, so the system sees every disk.
- Rebuild
- The copying of data onto a replacement disk, after which a mirror is fully protected again.
- Write cache
- A fast memory on a controller that holds writes before they reach the disks.
Check yourself
What does a RAID controller show the operating system?
One volume or more, built from several disks, instead of each disk on its own.
What is a rebuild?
The copying of data onto a replacement disk. The mirror is fully protected again only when it finishes.
Why does a write cache need battery or flash protection?
So that writes waiting in the cache are not lost if the power is cut.
Previous: Firmware and BIOS updates on servers. Next: Reading the hardware inventory with dmidecode.