TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

OpenZFS vs. Btrfs and other file systems (2017)

165 pointsby stargraveover 6 years ago

20 comments

elfchiefover 6 years ago
Is it just me or is it absolutely insane that zfs and btrfs are the only common filesystems out there that do data checksumming? I don't want or need the extra complexity of either of them in a lot of cases, but I'd sure as hell like to know if my data is corrupt...
评论 #18481135 未加载
评论 #18481950 未加载
评论 #18497465 未加载
评论 #18481538 未加载
评论 #18482545 未加载
Mister_Snugglesover 6 years ago
I&#x27;ve been burned by Btrfs enough times to avoid it.<p>I had a VM running OpenSuse Tumbleweed - I know, rolling release, don&#x27;t expect stability, etc - and it would consistently freeze after being up and unused for a few days. Rebuilt the VM but used XFS instead of Btrfs, it was rock solid. This happened within the last four months.<p>At work, we have a number of machines using Btrfs. At some point they get into a state where the weekly Btrfs scrub process hangs the machine for hours at a time. The solution in every case was to move that filesystem onto a non-Btrfs volume. This is an ongoing issue, but I&#x27;m not in the team responsible so I don&#x27;t know what they&#x27;re doing with this. Anecdotally, this seems to be a problem when there is a lot of writing going on with the volumes. Machines that use Btrfs root but do most of their work on NFS volumes don&#x27;t seem to experience this issue.<p>I also have a laptop running OpenSuse Tumbleweed with Btrfs. One day it somehow got itself into a state where it would hang when mounting the filesystem read&#x2F;write, but it would be fine if it was mounted read-only. I can&#x27;t recall exactly what happened to cause it, but I&#x27;m pretty sure I didn&#x27;t do anything exceptional with the computer - I think I rebooted it from the GUI while it was doing a scrub in the background, but that&#x27;s just a guess. I think this happened about a year ago.<p>This is all disappointing because some of the things Btrfs enables are awesome. In particular, OpenSuse&#x27;s snapper has saved me countless hour of work. I haven&#x27;t played with the send&#x2F;receive stuff, but it seems like a great solution for backups.<p>In the meantime, I&#x27;m using ZFS on a variety of FreeBSD boxes with a variety of workloads (including one running more VMs than its RAM should support) and it&#x27;s been rock solid.<p>At this point it will be a long time before I give Btrfs another look. It has the potential to be really good, and I want it to be good, but I don&#x27;t believe it&#x27;s there yet.
评论 #18483020 未加载
评论 #18483155 未加载
blinkingledover 6 years ago
HAMMER2&#x2F;DragonFly is already looking great with cow&#x2F;snaphots, compression, live dedup etc and one of its design goals is to work great on low memory systems. Once it is feature complete with clustering support it&#x27;ll be a great choice to have.<p>Although looks like it&#x27;ll be DragonFly only.
评论 #18480648 未加载
评论 #18481490 未加载
评论 #18482887 未加载
jplayer01over 6 years ago
It&#x27;s a travesty that so few people care about moving to more reliable filesystems. A decade later and we&#x27;re still stuck with ext4 and now btrfs, which I do use nowadays but I&#x27;m absolutely aware of the high risk of data corruption because the underlying code is terrible.<p>Windows is even worse with NTFS, which is a complete pile of garbage. I&#x27;ve fixed hundreds of computers with NTFS corruption over my lifetime and it&#x27;s mind-boggling that Microsoft is fine with this shit.
评论 #18480999 未加载
评论 #18481439 未加载
评论 #18482191 未加载
hawskiover 6 years ago
I was always hoping for more adoption of NILFS [0] - a log structured FS with continuous snapshots. In theory it should never lose data and that&#x27;s a reasoning behind it not having fsck. I&#x27;ve seen a blog post that was debating this choice and presenting a few situations when fsck would be necessary, but I can&#x27;t find it.<p>It would be great for &#x2F;home for many normal users - they could always go back. That could also be a problem when one wants to make sure that a sensitive file is really removed. It could be also used at least for some kind of archive. Possibly also for development.<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;NILFS" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;NILFS</a>
评论 #18480253 未加载
评论 #18482613 未加载
评论 #18480658 未加载
throwaway12iiiover 6 years ago
bcachefs is a really interesting FS in the linux space.<p>Checkout some of the writing about it here: <a href="https:&#x2F;&#x2F;www.patreon.com&#x2F;bcachefs" rel="nofollow">https:&#x2F;&#x2F;www.patreon.com&#x2F;bcachefs</a>
评论 #18480138 未加载
评论 #18480046 未加载
评论 #18479824 未加载
aidenn0over 6 years ago
ZoL and Btrfs are the only two filesystems that I&#x27;ve ever had rendered unmountable without any reported disk error. In both cases, ECC ram was in use, and mirrors were used.<p>Btrfs was a known bug, and the kind folks on #btrfs were able to help me recover (though it was a quite involved process).<p>For ZFS, the consensus in #zfs and #zfsonlinux was that with the error message I was getting &quot;I hope you have backups.&quot;[1]<p>I see XFS mentioned here, but in the admittedly unusaly use-case of editing a file that when compiled and modprobed may hang the kernel, I found that vim was insufficiently fsync-ing to ensure I had valid data (either old or new copy would have been acceptible).<p>I don&#x27;t know what my point was with this comment except &quot;All filesystems are buggy, so backup your data&quot;<p>1: It should be noted that in the case of ZFS, I was on vacation and it was my laptop that had no critical data, but I absolutely needed it working for other things, so I only spent a couple hours trying to recover; The btrfs issue happened at home where I had plenty other systems to use and where I was more motivated to recover the data.
madhadronover 6 years ago
Quick note on btrfs: unless you&#x27;ve been dealing with the latest kernels in the last few months, reserve judgement. Facebook has put a truly ridiculous number of hours on that filesystem in the last year or so and fixed a concomitant number of issues.
评论 #18482309 未加载
lremover 6 years ago
I&#x27;m not sure I agree with the idea that having a single open source project to rule them all is an inherently bad thing. In proprietary software, if Banana corp says that the next version of their Cavendish OS drops x86 support, you might find yourself doomed. But if Debian decides to drop x86 tomorrow, you go &quot;Cool, good luck, I&#x27;ll just fork.&quot; The project itself is never a single point of failure.
评论 #18481034 未加载
评论 #18479873 未加载
评论 #18480408 未加载
linsomniacover 6 years ago
I&#x27;ve been super happy with ZFS for over a decade. All the pain I&#x27;ve had with it has been related to deduplication requiring massive amounts of RAM. When you don&#x27;t have the RAM, it tends to be flaky. But I&#x27;ve never run into data loss with it, despite my best attempts.<p>My current backup server would need ~50GB of RAM just for the in-RAM deduplication tables.<p>I&#x27;ve been thinking of trying btrfs for the backup server, but the deduplication story is not something that&#x27;s obvious, it all seems to be third-party, which makes me skeptical. But it worth trying. I might just try a test Dragonfly setup, because my simple testing of HAMMER seemed very promising, years ago.<p>I&#x27;ve had pretty bad experiences with btrfs in the distant past. Around a decade ago I had all my company laptops using btrfs and it worked great, as long as we didn&#x27;t get &gt;80% usage or something. It worked well for around a year. But then the reliability of btrfs dropped, and we had repeated data loss and switched back to ext.
评论 #18482517 未加载
评论 #18482902 未加载
unhammerover 6 years ago
On that note, are there any fancy file systems that have acceptable Windows&#x2F;Mac support? Or are we all doomed to using NTFS or exfat for USB drives that need to work on Linux&#x2F;Mac&#x2F;Windows?
评论 #18479812 未加载
评论 #18480029 未加载
评论 #18479832 未加载
评论 #18480040 未加载
评论 #18479992 未加载
评论 #18480631 未加载
评论 #18480276 未加载
评论 #18479828 未加载
nimbiusover 6 years ago
anecdotal report: Im running a medium sized MariaDB database of appointments and invoice backups on a 4 disk BTRFS filesystem with deduplication. snapshots work, its stable, and it performs well.<p>I feel like so much of BTRFS though was death by committee. It was trying to do every single thing ZFS did, regardless of whether or not the specific feature from ZFS was mediocre to begin with.<p>focusing on a release cycle and communicating would have helped it alot instead of vague things like &quot;it is ready enough&quot; and &quot;some features arent ready&quot;
评论 #18481659 未加载
CathyWestover 6 years ago
I get it during the Sun years, but why the hell does Oracle continue developing Btrfs when they can just release ZFS under a GPL-compatible license and be done with it? It reallys seems like they are working against their own interests here.
评论 #18483694 未加载
zmixover 6 years ago
Hot title. Boring article.
zmixover 6 years ago
Is ZFS still incapable of enlarging&#x2F;extending a filesystem by adding new disks to it without rebuilding the whole FS infrastructure?
评论 #18483096 未加载
评论 #18482240 未加载
评论 #18482447 未加载
评论 #18497427 未加载
paulie_aover 6 years ago
Is btrfs still a thing? Reading other people&#x27;s experiences, atleast a couple distros dropping it as a default, and my personal experience of it crashing completely. I&#x27;m surprised anyone would even consider it as an option. It simply isn&#x27;t a reliable file system.
评论 #18482466 未加载
metildaaover 6 years ago
Is ZFS worth considering at this point? Btrfs seems to be quite featureful and stable, with a plethora of grocers and retailers all over the world using it. Wal-Mart, Kroger (and subsidiaries), all of IBM&#x27;s old point of sale customers (now Toshiba SuperPOS iirc) all use it on things as small as deli scales all the way to running their point of sale systems and backends.
评论 #18479764 未加载
评论 #18479749 未加载
评论 #18479769 未加载
评论 #18481402 未加载
评论 #18479745 未加载
评论 #18479706 未加载
评论 #18479699 未加载
评论 #18480672 未加载
评论 #18479715 未加载
InTheArenaover 6 years ago
The challenge here is that ZFS is dominate by Oracle right now, and if anyone thinks that Oracle is going to act in the best interest of the community, rather then killing the golden goose to peel the meat off it&#x27;s bones, take a look at what Oracle has done with Java recently. Or what they did with Solaris. Or what they do with Oracle Cloud.<p>in addition, we know that there are patent landmines out there because NetApp and Oracle have a (undisclosed) settlement on the issue. Using ZFS is a probably good way to get a visit from your legendary friendly Oracle sales agent and auditor. Oracle could fix all of this with a quick re-license or patent indemnification, but they haven&#x27;t and almost certainly won&#x27;t.<p>My Synology (and all modern Synologies) uses BTRFS, and it seems pretty solid so far. I would have preferred that ZFS had matured and been dominate in FS, but there are some really risky things that come with ZFS.
评论 #18481194 未加载
sirmike_over 6 years ago
Opinions are good, bad and ugly. Sometimes all at once.<p>Thanks for letting us know one nerd&#x27;s take on openzfs.<p>The only thing standing in zfs way (to 1st tier Linux support) is a company springing up and heading the charge. 75 percent sure this will happen eventually with ZoL at some point in a decade&#x27;s time.<p>However, another point of measure is money. Synology is huge and seems to think btrfs is good enough for business. They compete with ixsystems directly. We could go all day and into 2020 with points and counter points. The licensing issue is weak but will eventually be moot with enough money and time behind the right project. I&#x27;m not in any position to judge that last point for sure just offering my IT pro&#x2F;business take on it.<p>To be fair bsd-ish-ness has a role to play on the backend and is bullet proof and battle tested for the right mission. But the same can be said for Linux too. The last point I&#x27;ll make is that today, I can run the Linux kernel from my msft windows 10 machine natively. No one here would have saw that in 2000. Does bsd, zfs have a similar anecdotal Hero Epic like this; where the enemy capitulated so thoroughly?
评论 #18480585 未加载
评论 #18481703 未加载
em-beeover 6 years ago
ZFS is not suitable for desktop computers. as for example that one anecdote in the comments of the article shows, ZFS doesn&#x27;t work well on a single disk. the author of the comment is confused by the behavior, and doesn&#x27;t even consider that this might be by design.<p>another point that shows that ZFS is unsuitable for the desktop is it&#x27;s reliance on EEC RAM: <a href="https:&#x2F;&#x2F;forums.freenas.org&#x2F;index.php?threads&#x2F;ecc-vs-non-ecc-ram-and-zfs.15449&#x2F;" rel="nofollow">https:&#x2F;&#x2F;forums.freenas.org&#x2F;index.php?threads&#x2F;ecc-vs-non-ecc-...</a><p>i considered getting EEC RAM for my machine just because of ZFS, but i could not find any 16GB strips to fill my board.<p>that&#x27;s two strikes against desktop use, and enough to let me prefer btrfs.<p>EDIT: i am very happy to see so many replies proving me wrong. when i last researched this topic i was not able to find any counter arguments to needing EEC.<p>greetings, eMBee.
评论 #18480016 未加载
评论 #18480000 未加载
评论 #18480017 未加载
评论 #18480020 未加载
评论 #18480068 未加载
评论 #18480033 未加载