Dev News Daily ENDE

Christoph Hellwig releases XRAID, declustered parity RAID built into XFS for zoned drives

Christoph Hellwig has announced the first public release of XRAID, a declustered parity RAID implementation integrated into the XFS file system. LWN summarised the announcement on 13 November.

According to Hellwig, XRAID has two main goals. The first is to support parity RAID on zoned devices, such as shingled magnetic recording (SMR) hard drives, which have to be written sequentially within each zone. The second is to provide a fast RAID implementation without inherent data integrity problems. The design is not limited to zoned hardware: ordinary disks and flash can host it too, in the same way as zoned XFS. Hellwig says tuning for flash was not a priority, yet writes are up to 20 times faster than with mdraid, the Linux kernel's software RAID layer.

The current code supports zero to two parities. The team experimented with the SnapRAID parity library for three or more parities; that support is not in this release, but Hellwig says it is planned and the code is prepared for it. The work has been going on for a year and a half, and the announcement is explicit that it is not close to an upstream submission. The point of releasing it now is to get feedback and testing from a wider audience.

The tooling has been extended alongside. A branch of xfsprogs adds mkfs support and a new xraid utility for managing devices and inspecting an XRAID file system. Zonar, the visualisation tool for zoned file systems, can now show how each logical zone maps onto physical zones across devices. Hellwig presented the design at FOSSY in August; LWN notes that slides are available but a video of the talk apparently is not yet.

Readers' comments on LWN raised two points the announcement does not address: that ZFS already ships a declustered RAID mode, dRAID, and why the feature is tied to XFS rather than offered as a generic block-layer device. Other commenters argued that integrity, journalling and compression are hard to provide below the file system without duplicating work.

Christoph Hellwig releases XRAID, declustered parity RAID built into XFS for zoned drives
Christoph Hellwig releases XRAID, declustered parity RAID built into XFS for zoned drives — Dev News Daily

Why it matters

SMR drives are cheap per terabyte but awkward for traditional RAID, which rewrites parity in place. Building parity into a file system that already writes sequentially sidesteps that problem. With no upstream submission planned soon, XRAID is for now something to test, not to deploy, but it signals where large-capacity Linux storage may be heading.

Primary source
LWN headlines
https://lwn.net/Articles/1107473/
Written by Victoria Shinder.