News for hackers. Stuff that matters.
Re:ZFS 2.3.0 released with ZFS raidz expansion by mustache_kimono on Tuesday January 14, 2025 @05:26AM (#42695714)
> I just don't get it how the Windows world - by far the largest PC platform per userbase - still doesn't have any answer to ZFS.

The mainline Linux kernel doesn't either, and I think the answer is because it's hard and high risk with a return mostly measured in technical respect?

Re:ZFS 2.3.0 released with ZFS raidz expansion by ffsm8 on Tuesday January 14, 2025 @05:30AM (#42695738)
Technically speaking, bcachefs has been merged into the Linux Kernel - that makes your initial assertion wrong.

But considering it's had two drama events within 1 year of getting merged... I think we can safely confirm your conclusion of it being really hard

Re:ZFS 2.3.0 released with ZFS raidz expansion by mustache_kimono on Tuesday January 14, 2025 @05:36AM (#42695763)
> Technically speaking, bcachefs has been merged into the Linux Kernel - that makes your initial assertion wrong.

bcachefs doesn't implement its erasure coding/RAID yet? Doesn't implement send/receive. Doesn't implement scrub/fsck. See: https://bcachefs.org/Roadmap, https://bcachefs.org/Wishlist/

btrfs is still more of a legit competitor to ZFS these days and it isn't close to touching ZFS where it matters. If the perpetually half-finished bcachefs and btrfs are the "answer" to ZFS that seems like too little, too late to me.

Re:ZFS 2.3.0 released with ZFS raidz expansion by koverstreet on Tuesday January 14, 2025 @06:37AM (#42696073)
Erasure coding is almost done; all that's missing is some of the device evacuate and reconstruct paths, and people have been testing it and giving positive feedback (especially w.r.t. performance).

It most definitely does have fsck and has since the beginning, and it's a much more robust and dependable fsck than btrfs's. Scrub isn't quite done - I actually was going to have it ready for this upcoming merge window except for a nasty bout of salmonella :)

Send/recv is a long ways off, there might be some low level database improvements needed before that lands.

Short term (next year or two) priorities are finishing off online fsck, more scalability work (upcoming version for this merge window will do 50PB, but now we need to up the limit on number of drives), and quashing bugs.

Re:ZFS 2.3.0 released with ZFS raidz expansion by BSDobelix on Tuesday January 14, 2025 @08:00AM (#42696647)
>except for a nasty bout of salmonella

Did the Linux Foundation send you some "free" sushi? ;)

However keep the good work rolling, super happy about a good, usable and modern Filesystem native to Linux.

Re:ZFS 2.3.0 released with ZFS raidz expansion by ryao on Tuesday January 14, 2025 @06:50AM (#42696158)
Hearing that it is missing some code for reconstruction makes it sound like it is missing something fairly important. The original purpose of parity RAID is to support reconstruction.
Re:ZFS 2.3.0 released with ZFS raidz expansion by koverstreet on Tuesday January 14, 2025 @10:57AM (#42698821)
We can do reconstruct reads, what's missing is the code to rewrite missing blocks in a stripe after a drive dies.

In general, due to the scope of the project, I've been prioritizing the functionality that's needed to validate the design and the parts that are needed for getting the relationships between different components correct.

e.g. recently I've been doing a bunch of work on backpointers scalability, and that plus scrub are leading to more back and forth iteration on minor interactions with erasure coding.

So: erasure coding is complete enough to know that it works and for people to torture test it, but yes you shouldn't be running it in production yet (and it's explicitly marked as such). What's remaining is trivial but slightly tedious stuff that's outside the critical path of the rest of the design.

Some of the code I've been writing for scrub is turning out to also be what we want for reconstruct, so maybe we'll get there sooner rather than later...

Re:ZFS 2.3.0 released with ZFS raidz expansion by pdimitar on Tuesday January 14, 2025 @08:21AM (#42696817)
FYI: the main reason I gave up on bcachefs is that I can't use devices with native 16K blocks.

Hope that's coming this year. I have a bunch of old HDDs and SSDs and I could very easily assemble a spare storage server with about 4TB capacity. Already tested bcachefs with most of the drives and it performed very well.

Also lack of ability to reconstruct seems like another worrying omission.

Re:ZFS 2.3.0 released with ZFS raidz expansion by koverstreet on Tuesday January 14, 2025 @10:41AM (#42698592)
I wasn't aware there were actual users needing bs > ps yet. Cool :)

That should be a completely trivial for bcachefs to support, it'll mostly just be a matter of finding or writing the tests.

Re:ZFS 2.3.0 released with ZFS raidz expansion by pdimitar on Tuesday January 14, 2025 @12:24PM (#42700465)
Seriously? But... NVMe drives! I stopped testing because I only have one spare NVMe and couldn't use it with bcachefs.

If you or others can get it done I'm absolutely starting to use bcachefs the month after. I do need fast storage servers in my home office.

Re:ZFS 2.3.0 released with ZFS raidz expansion by ryao on Tuesday January 14, 2025 @03:25PM (#42703339)
You can do this on ZFS today with `zpool create -o ashift=14 ...`.
Re:ZFS 2.3.0 released with ZFS raidz expansion by pdimitar on Tuesday January 14, 2025 @03:30PM (#42703408)
Yeah I know, thanks. But ZFS still mostly requires drives with the same sizes. My main NAS is like that but I can't expand it even though I want to, with drives of different sizes I have lying around, and I am not keen on spending for new HDDs right now. So I thought I'll make a secondary NAS with bcachefs and all the spare drives I have.

As for ZFS, I'll be buying some extra drives later this year and will make use of direct_io so I can use another NVMe spare for faster access.

Re:ZFS 2.3.0 released with ZFS raidz expansion by ryao on Tuesday January 14, 2025 @04:20PM (#42704033)
If you don’t care about redundancy, you could add all of them as top level vdevs and then ZFS will happily use all of the space on them until one fails. Performance should be great until there is a failure. Just have good backups.
Re:ZFS 2.3.0 released with ZFS raidz expansion by pdimitar on Friday January 17, 2025 @01:49PM (#42741882)
Yep, that's sadly my current setup. Most of my data are not super critical.

When I can spend some $3000 or so I'll absolutely buy several 20 TB drives and just nail the whole thing -- and will use ZFS -- but for now the several spare HDDs that I want dedicated to my data are set up exactly as you mentioned: root vdevs with no redundancy. ZFS is mostly handling it fine even though the drives have vastly different speeds (and one of them is actually an SSD).

So yep ZFS can still do quite a lot, it's just still not flexible enough in a manner that f.ex. bcachefs is. But the latter is still missing important features so I am sticking with ZFS for a while still.

Re:ZFS 2.3.0 released with ZFS raidz expansion by mafuy on Tuesday January 14, 2025 @08:21AM (#42696820)
Thank you, looking forward to it!