Linux

XRAID: Declustered Parity RAID for XFS and Zoned Drives

Christoph Hellwig's experimental XRAID builds parity RAID into XFS, targets SMR drives and claims up to 20x faster writes than…

16 November 2026  ·  4 min read  ·  Anand

XRAID: Declustered Parity RAID for XFS and Zoned Drives

Linux storage could get a significant new option. Kernel developer Christoph Hellwig has published the first public release of XRAID, a declustered parity RAID built into the XFS filesystem. It has been in development for about 18 months. It is aimed mainly at zoned storage such as SMR hard drives, but also works on conventional HDDs and SSDs, and early developer benchmarks show writes up to 20 times faster than Linux’s existing mdraid. It is experimental and not yet proposed for the mainline kernel, but anyone running large disk arrays on Linux should keep an eye on it.

The problem XRAID addresses

Today most Linux servers get parity RAID from MD RAID (mdadm) underneath a filesystem. That layering works, but it has known weak spots. The RAID layer knows nothing about which blocks the filesystem actually uses, so rebuilds touch every stripe. Partial-stripe writes force read-modify-write cycles. And parity RAID does not fit well with zoned drives, which must be written sequentially within each zone. Shingled (SMR) drives offer the cheapest capacity per terabyte, so this is a real limitation for backup and archive storage.

XRAID moves parity protection into XFS itself, where the filesystem already knows how data is laid out.

How it works

  • Built on the XFS zoned allocator. It uses the XFS realtime subvolume to keep file data separate from metadata.
  • Data gets parity, metadata gets mirroring. File data is written into sequential-write zones protected by parity. Metadata lives on conventional devices or zones and relies on existing mechanisms such as MD RAID mirroring.
  • Declustered layout. Instead of fixed disk sets per stripe, data and parity are spread across a larger pool of drives. When a disk fails, every surviving drive with free capacity shares the rebuild work, rather than a single replacement disk becoming the bottleneck.
  • Smarter rebuild order. Zones that have lost more than one level of redundancy are rebuilt first, and data zones are rebuilt before parity zones to reduce the impact on degraded reads.
  • Parity levels. Zero, one or two parity blocks are supported, roughly the protection levels of RAID 0, RAID 5 and RAID 6. Three or more parity blocks have been tested with the SnapRAID parity library but are not included yet.

About the performance numbers

The headline figure of up to 20x faster writes than mdraid comes from the developer’s own early benchmarks. Sequential zone writes avoid the read-modify-write penalty that hurts traditional parity RAID, so a large gain on write-heavy workloads makes sense. Still, treat the number as a sign of direction, not a capacity-planning figure. Hellwig also says SSD optimisation was not a priority, so results on flash may differ. Details and benchmarks are in his FOSSY 2026 presentation.

Should you use it today?

Not in production. XRAID is out of tree, its on-disk format and tools may change, and Hellwig himself says it is not ready for mainline submission. For now, mdadm with XFS or ext4, or ZFS where licensing allows, remains the right choice for production arrays.

It is worth testing if you run large backup targets, object storage or media archives, and especially if you are considering SMR or host-managed zoned drives. Useful first steps on a lab machine:

# See whether your drives report a zone model (none, host-aware, host-managed)
lsblk -z

# Check the zone layout of a zoned device
sudo blkzone report /dev/sdX | head

# Review your current MD arrays for comparison
cat /proc/mdstat
sudo mdadm --detail /dev/md0

To try XRAID itself you need Hellwig’s kernel tree (the xfs-raid branch of his linux-xraid repository on git.infradead.org), the matching xfsprogs branch, which adds filesystem creation support and a new xraid management utility, and the related fstests repository. The Zonar visualisation tool has also been extended to show how logical zones map to physical devices, which helps when you are learning the layout. Build on a disposable VM or a spare box with test disks, never on a server holding data you need.

What to test and report

  • Write throughput against an equivalent mdadm RAID 5/6 plus XFS setup on the same disks
  • Rebuild time and degraded-read latency after pulling a drive
  • Behaviour on SMR versus conventional drives
  • Recovery after an unclean shutdown in the middle of writes

Feedback from this kind of testing is exactly what the project needs before it goes upstream.

How TechProvidence can help

We design, monitor and migrate Linux storage for backup servers, file servers and hosting platforms, including mdadm, XFS, LVM and ZFS layouts and safe disk-replacement procedures. If you are planning a storage refresh or want a second opinion on your RAID setup, contact us.

Source: Linuxiac

Running into something similar?

We look after Linux servers, control panels and virtualization for businesses every day. If an update, vulnerability or outage here affects you, we can help.