3 ms·
> ZFS is great but aren't we better off focusing on something else like btrfs? Btrfs was originally introduced in Linux 2.6.29 in March 2009. It is still flake
by throw0101a 6y ago
> ZFS is great but aren't we better off focusing on something else like btrfs?
Btrfs was originally introduced in Linux 2.6.29 in March 2009. It is still flakey in many situations.
ZFS was first release in Solaris 10 6/06 in June 2006, with it being open source almost right away. OpenZFS was forked in August 2010.
Should Btrfs at some point simply be declared a sunk cost and something new be created? Because from the outside it looks like it's hardly gaining any traction because of its reputation for eating data (maybe only with its RAID code, but still).
- lima 6y agoBtrfs is in large-scale production use by a number of companies, including Facebook, who are active contributors. ZFS will never be part of the Linux kernel due to both licensing issues and it including its own crypto, cache and other subsystems. Personally I have high hopes for bcachefs, but Btrfs is here to stay.
- viraptor 6y agoJust a note for other people excited about bcachefs, you can potentially speed things up by joining Kent's patreon https://www.patreon.com/bcachefs https://www.patreon.com/bcachefs
- danudey 6y ago> Btrfs is here to stay btrfs was removed from RHEL because RedHat themselves don't have the time or energy to support it or support systems using it. That's going to hurt adoption. Ubuntu is working actively towards ZFS as an available/default option, and once it is there's not much point in using btrfs unless you have specific use cases. Everyone else I know either uses ZFS or XFS in production. For my systems, I would definitely not trust btrfs with critical data. Here's the thing: btrfs is 'fine', but it's not 'good'. It's the only filesystem since 2001 where I've suffered unrecoverable filesystem corruption as a result of a power outage (on a fresh 18.04 installation last November) and had to salvage data and reinstall. The tooling, in a lot of cases, does the opposite of ZFS and touts it as a feature. For example, snapshots are not recursive and they say that this is great for if you want to snapshot / but not /home; this is true, but it also means that I cannot subdivide datasets. For example, on ZFS I divide up /var/lib/mysql/ into /var/lib/mysql/tablespace/ and var/lib/mysql/logdb, for example, since both of those have different access patterns and block sizes (16k and 128k respectively). ZFS lets me do this to optimize reads and writes, but I can also atomically snapshot them both. btrfs doesn't let me do an atomic, recursive snapshot at all (and I'm not sure if it can handle different block sizes per subvolume either). Basically, ZFS is a better, production-ready, enterprise-proven, and surprisingly intuitive filesystem and volume management system, and has been for 14 years. btrfs has weird tooling, incomplete features (which they don't just remove from the roadmap for some reason), data loss issues, and the only large-scale use I've heard of it Facebook, who also work on it (easier to use btrfs when you've hired all the experts). With Ubuntu shipping ZFS enabled by default, most reasons to use btrfs go away; it's not mainlined in the kernel, but that doesn't matter if your distribution has it enabled and supported by default.
- vetinari 6y agoBtrfs came in time, when RAID5 was "declared obsolete"[1]. All its users are focused on single/striped/mirrored functionality, and almost nobody is interested in (paying for development of) parity functionality. That's why btrfs RAID5/6 mode is in the sorry state it is. Nobody capable of paying the piper is interested in it. It is a domain of datahoarders, but that's not where the money is. Even Synology has put btrfs on top of mdraid for that. Outside the parity modes, btrfs is stable and reliable. It is here to stay. [1] https://www.zdnet.com/article/why-raid-5-stops-working-in-2009/ https://www.zdnet.com/article/why-raid-5-stops-working-in-20...
- tpetry 6y agoSo why not simply remove raid 5/6 and solve the last few things on the roadmap. Being stable and seen as save by most people is much more important than having some features almost nobody is using in production.
- vetinari 6y agoWhy does it bother you that raid5/6 is there? Just do not use it, the end result for you and most people is the same as if it was removed. For those few who want to play with it, it is still there. Best of both worlds.