Why add an HBA
A motherboard has a handful of SATA ports. A storage server needs more, and it needs them to behave predictably under load. A host bus adapter (HBA) is a PCIe card that adds SAS and SATA ports, typically eight or sixteen, and can run many more drives through an expander.
HBA or RAID controller
An HBA passes each drive straight to the operating system. A RAID controller builds the array itself and presents one big disk.
ZFS, TrueNAS and Unraid want to see every drive directly. They handle redundancy themselves, read each disk's health, and repair data using their own checksums. A hardware RAID layer underneath hides all of that, so for these systems use an HBA.
Many RAID cards can run in IT mode (Initiator Target mode), also called HBA mode, where the RAID layer is switched off or replaced by HBA firmware. That is why ex-server LSI and Broadcom cards are popular for homelab storage. Check the specific card's documentation for how it is done; firmware flashing is at your own risk.
Ports, connectors and cables
- 8i means eight internal lanes, usually on two connectors; 8e means external; 16i means sixteen internal.
- Older 6 Gb/s cards use SFF-8087 connectors, and 12 Gb/s cards use SFF-8643 (Mini-SAS HD).
- A breakout cable turns one connector into four SATA or SAS drive plugs. To connect to a backplane instead, match the backplane's connector.
- SAS cards run SATA drives, but SATA controllers cannot run SAS drives.
Expanders
A SAS expander lets one HBA run many more drives than it has lanes, sharing the bandwidth between them. Many server backplanes have one built in. For spinning drives the shared bandwidth is rarely the limit.
PCIe slot and bandwidth
Most HBAs are x8 cards. Spinning drives rarely saturate even a PCIe 2.0 x8 card, but a card full of SSDs can. Check the board has a slot that is wired for x8, not just shaped for it. The server builder checks the board has a slot free.
Cooling
Server HBAs are designed for the strong airflow of a rack server and get hot in a quiet desktop case, which can cause errors or shutdowns under load. Point a fan at the heatsink, or fit a small fan to it.
Careful: Popular HBA models are widely counterfeited. A listing far below the rest of the market, with vague photos, is a warning sign. Buy from a seller who states the part number and offers returns.
Before you buy
- 1Decide HBA (ZFS, TrueNAS, Unraid) or RAID controller (hardware arrays).
- 2Count drives now and later; consider an expander.
- 3Match connectors to your cables or backplane.
- 4Check the slot width and that the case has airflow over the card.
- 5Compare current HBA and RAID card prices, new and used.
Our NAS or DIY server guide covers when a DIY storage build makes sense at all.