r/linux • • 17d ago

Kernel XRAID announced as RAID implementation integrated with XFS

https://lore.kernel.org/lkml/20261113112913.GA31748@lst.de/
124 Upvotes

21 comments sorted by

View all comments

29

u/atoponce 17d ago

For the uninitiated, this RAID implementation specifically targets SMR and Zoned Storage drives, not standard CMR drives you have in your laptop or desktop (and probably most servers).

It's also isn't really comparable to ZFS RAID/draid as ZFS is copy-on-write and XFS XRAID is sequential write-out-of-place (not quite copy-on-write).

18

u/psyblade42 17d ago

More specifically, this seems to target Host Managed SMR drives. I don't think tose are available to consumers (who get Drive Managed SMR instead).

3

u/yrro 17d ago

I've read that CMR for large drives (more than a couple of TB) is going to be a thing of the past. All large drives will be host-managed SMR within a couple of years. Hence the need for storage stacks to cope with it all of a sudden.

4

u/psyblade42 16d ago

I doubt that. Windows can't deal with HM-SMR. That's why they aren't sold to consumers. I don't see that changing anytime soon

Even if non-shingled drives go away they will instead keep selling DM-SMR to them. Just look at how drives still emulate 512B sectors even after 15 years of actually being 4KiB.

3

u/natermer 16d ago

CMR drives are better for frequently rewritten data. SMR is better for mostly write-once type setups, like backups, that benefit from a lot of density.

So I expect that the roles used for CMR are being replaced by larger SSDs since they are much better at the sort of things where CMR has a advantage.

2

u/atoponce 17d ago

Indeed. Good catch.

2

u/kdave_ 16d ago

HM-SMR are the HC 6xx series and AFAIK are sold B2B exclusively, or on the 2nd hand markets for the older models. For the XFS implementation the drive even has to provide conventional zones (ie. CMR), the metadata are stored there and this cannot be simply converted to be compatible with append-only zones. This conventional+zoned mode used to be considered a temporary step before fully zoned drives will be everywhere, but WD can do as they like and manufacture devices that suite non-COW filesystems. Design doc from 2015 https://xfs.org/index.php/Host_Aware_SMR_architecture

2

u/Sol33t303 17d ago

Isn't XFS also a CoW filesystem nowadays?

4

u/atoponce 17d ago

Not fully, no. It's still a traditional journaled write-in-place filesystem, but it does implement CoW with its reflink feature.

https://discussion.fedoraproject.org/t/is-xfs-default-on-fedora-server-copy-on-write-cow/126243