Latest / Big Iron Radio / RAID Showdown: Hardware RAID vs ZFS vs Btrfs vs mdadm
Transcript
- 0:03Sooner or later, every homelab hits the same milestone.
- 0:07You outgrow a single drive, and you decide to build an array.
- 0:11And the moment you start reading, you get pulled into what looks like a performance
- 0:15argument.
- 0:17Hardware RAID vs. ZFS vs. BTRFS vs. MDATUM which one's fastest?
- 0:22Which one's easiest?
- 0:23Today, I want to convince you that speed is the wrong axis to start on.
- 0:29The real question is whether your storage can even tell you when it's lying to you.
- 0:34Quick note before we dig in.
- 0:36This is an AI-generated voice, and everything here is adapted from a written guide over at
- 0:42Big Iron.
- 0:43The full write-up with the RAID's layout breakdown and a rebuild risk calculator is linked in
- 0:48the show notes.
- 0:50So four contenders.
- 0:53Hardware RAID, a dedicated card that hides the disks from your operating system.
- 0:57MDATUM, the plain Linux software RAID that's been in the kernel forever.
- 1:02BTRFS, a modern copy-on-write file system with checksums baked in.
- 1:08And ZFS, the integrity gold standard from the storage world.
- 1:12These are not four flavors of the same thing.
- 1:15They sit in genuinely different places on the axes of performance, integrity, flexibility,
- 1:21and operational maturity, and picking wrong can get you data loss you can't even detect.
- 1:26Let's talk about that phrase data loss you can't detect, because it's the whole ballgame.
- 1:32It's called silent corruption, or bitch-rot.
- 1:35A bit on the platter, or in the flash, quietly flips.
- 1:38Cosmic ray, aging cell, a firmware hiccup doesn't matter.
- 1:42The drive doesn't throw an error.
- 1:45It hands that slightly wrong data back to you as if nothing happened, and it works its way
- 1:49into your files, and, eventually, into your backups.
- 1:54Here's the uncomfortable part.
- 1:56Classic RAID does nothing about this.
- 1:59RAID gives you redundancy a second copy, or parody to rebuild from.
- 2:03But when it reads a block, it has no way of knowing that block is wrong.
- 2:08There's no fingerprint to check it against.
- 2:11Hardware RAID especially just hands the operating system bytes.
- 2:15If those bytes are silently wrong, no layer above it ever catches on.
- 2:20Silent bit-rot on Hardware RAID is the classic home lab disaster the array is healthy, green
- 2:25lights all around, and your photos are quietly rotting.
- 2:30This is exactly what a checksumming file system fixes, and it's the single most important
- 2:35idea in this whole comparison.
- 2:37ZFS and BTRFS checksum every block.
- 2:41When they read a block whose checksum doesn't match, that's not a shrug it triggers a reread
- 2:46from a redundant copy, the mirror partner, or a parody reconstruction, and the bad block
- 2:51gets repaired.
- 2:53Silent corruption becomes loud.
- 2:55Once that clicks, the phrase RAID without checksums is only half a solution,
- 2:59stops being a slogan, and starts being obvious.
- 3:03OK the contenders, one at a time.
- 3:07Hardware RAID first.
- 3:08This is a dedicated PCIe card with its own processor, its own battery-backed write cache,
- 3:14and proprietary firmware.
- 3:16It juggles your drives behind the scenes and presents the OS with one big block device.
- 3:22On paper it looks great.
- 3:24Along sequential write throughput, parity offloaded to the card, and its operating system agnostic
- 3:30the array doesn't care if you're on Windows or Linux.
- 3:34But the weaknesses are serious.
- 3:37No file system level integrity, as we just covered the card can't catch silent corruption,
- 3:43and its patrol read only checks that parity is consistent, not that the data is actually
- 3:48correct.
- 3:49There's vendor lock-in.
- 3:51If the card dies, you often need the same card family to even read your array.
- 3:56And there's the battery.
- 3:58Those backup batteries die after two to four years, and without a working one, the write-back
- 4:03cache is no longer safe so the card quietly downgrades to write through, and the performance
- 4:08you paid for evaporates.
- 4:11So the honest verdict on Hardware Raid, its era is mostly over for new builds.
- 4:17If you've inherited an array on a good card, there's no need to panic and rip it out.
- 4:22But if you're building fresh in 2026, you almost certainly shouldn't be buying into it.
- 4:28The move instead is an HBA, a host bus adapter, flashed to what's called IT mode, which just
- 4:34exposes the raw disks, and lets a smart file system do the thinking.
- 4:39Hold that thought.
- 4:41Second contender, mdatum.
- 4:44This is vanilla Linux software raid, straight out of the kernel.
- 4:48It's mature, it's rock solid, and it composes beautifully with the rest of the Linux stack
- 4:53you can layer LVM on top, put encryption underneath, mix and match.
- 4:59If you want boring, well understood, no surprises software raid, mdatum is it.
- 5:05Its limitation is the same integrity gap.
- 5:08Mdatum doesn't checksum your data, so it can't catch silent corruption on its own.
- 5:13And its parity modes carry the classic RAID 5 slash 6 write hole, and interrupted write
- 5:18can leave a stripe inconsistent.
- 5:21So mdatum is the right pick in one specific situation.
- 5:25When your data integrity is coming from somewhere else full disk encryption with authentication,
- 5:31your application level checksums, and you just want straight forward kernel RAID underneath.
- 5:36And to kill an old myth, modern CPUs handle RAID 5 slash 6 parity without breaking a sweat.
- 5:44Software RAID is slow is a reputation from decades ago.
- 5:48Third, BTRFS.
- 5:52Now we're into checksumming territory.
- 5:54BTRFS is a copy-on-write filesystem with checksums, instant snapshots, and reflinks,
- 6:00and crucially it's in the mainline Linux kernel no out-of-tree modules, no install friction.
- 6:06For a Linux root filesystem, where you want snapshots before every upgrade, BTRFS is genuinely lovely.
- 6:14But BTRFS comes with one caveat you must respect.
- 6:18Its RAID 1 and RAID 10 modes are great and fully checksummed, but its RAID 5 and RAID 6
- 6:24are not safe for production.
- 6:26The parity write hole was never fully resolved there.
- 6:30So use BTRFS for mirroring, use it for your root filesystem, use it where checksumming matters
- 6:36and you specifically don't want ZFS's licensing and install friction, but do not trust BTRFS
- 6:42RAID 5 slash 6 with data you care about.
- 6:46That's not caution, that's the project's own guidance.
- 6:50And fourth, the one the storage nerds evangelize, ZFS.
- 6:55It's the integrity gold standard, and it earns the title.
- 6:59Copy-on-write end-to-end checksums, its own RAID levels called RAIDs, native snapshots,
- 7:05transparent compression, built-in encryption.
- 7:07It was designed from the ground up around the assumption that hardware lies, and its whole
- 7:12job is to catch the lie.
- 7:15The feature that shows off the philosophy is the scrub.
- 7:18You run a scrub on a schedule, and ZFS walks every block, verifies every checksum, and where
- 7:24it finds corruption it doesn't just flag it it identifies which copy is wrong and repairs
- 7:29it from the good one.
- 7:31Compare that to a hardware card's consistency check, which can only tell you parity and data
- 7:36disagree, not which one to believe.
- 7:39That difference detect vs. detect and correctly repair is the entire reason people put up
- 7:44with ZFS's quirks.
- 7:47And there are quirks.
- 7:49ZFS is licensed under the CDDL.
- 7:52So on Linux, it lives outside the mainline kernel in extra install step and a version to keep
- 7:57an eye on.
- 7:58It's RAM-hungry by design.
- 8:01And pool expansion is more constrained than people expect you can't always just slot in
- 8:06one more disk, the way you imagine so you plan your VDEV layout up front.
- 8:11That planning is where RAIDs 1 vs. RAIDs 2 vs. Mirrors comes in.
- 8:16Mirrors for maximum IOPS and easy growth, RAIDs 2 for capacity with 2-disc fault tolerance.
- 8:22There's a calculator in the show notes to weigh the rebuild risk.
- 8:27One pairing you can't skip with ZFS, and it ties back to another big iron brief is memory.
- 8:33ZFS protects the path to the disk, not the path through your RAM.
- 8:38Corrupt memory still corrupts data before ZFS ever checksums it.
- 8:43So the serious build is ZFS plus ECC RAM, plus regular scrubs, plus smart monitoring on
- 8:49the drives.
- 8:51Integrity is a stack, not a single feature.
- 8:54And that HBA point from earlier closes the loop.
- 8:58If you go ZFS or BTRFS, don't sit them on top of a hardware RAID card.
- 9:04Give them an HBA and IT mode so the filesystem sees the raw disks, and its checksums actually
- 9:09mean something.
- 9:10A smart filesystem on top of a card that's already hiding the disks is the worst of both worlds.
- 9:18So let's turn all of that into a decision you can actually make.
- 9:21If data integrity is your priority, and you're on Linux, BSD, Illumos, or Mac OS, and you
- 9:28can pair it with ECC ZFS, it's worth the setup friction.
- 9:33That's the default for anyone who thinks of their storage as the thing they'd cry about
- 9:37losing.
- 9:39If you want checksums on Linux, but you don't want ZFS's licensing and install friction,
- 9:44BTRFS on RAID 1 or RAID 10 is an excellent choice just stay off its RAID 5 slash 6.
- 9:51If your integrity is handled at another layer, and you want plain, mature kernel RAID, Mdatum
- 9:57is a perfectly respectable answer.
- 10:00And hardware RAID, reserve it for legacy systems, vendor-locked appliances, and Windows-only environments
- 10:07not new builds.
- 10:09The one thing to carry out of this, rank integrity above raw performance.
- 10:14A fast array that silently corrupts data isn't fast, it's just quick at losing your files
- 10:20in a way you won't notice until restore day.
- 10:23Checksums are what turn a pile of redundant disks into storage you can actually trust.
- 10:29The full guide, the RAID's layout deep dive, and the rebuild risk calculator are all in
- 10:33the show notes.
- 10:35Thanks for listening, I'll catch you on the next one.