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.

Btrfs in Linux 6.2 brings performance improvements, better RAID 5/6 reliability

251 pointsby pantalaimonover 2 years ago

24 comments

dale_glassover 2 years ago
But is the RAID handling remotely sane yet? See <a href="https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2021&#x2F;09&#x2F;examining-btrfs-linuxs-perpetually-half-finished-filesystem&#x2F;" rel="nofollow">https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2021&#x2F;09&#x2F;examining-btrfs-linu...</a><p>It has gems such as:<p>* It won&#x27;t boot on a degraded array by default, requiring manual action to mount it<p>* It won&#x27;t complain if one of the disks is stale<p>* It won&#x27;t resilver automatically if a disk is re-added to the array<p>I think the first is the killer. RAID is a High Availability measure. Your system is not Available if it fails to boot.
评论 #33961708 未加载
评论 #33961944 未加载
评论 #33966681 未加载
评论 #33961834 未加载
评论 #33965628 未加载
评论 #33961770 未加载
评论 #33961684 未加载
评论 #33962338 未加载
DominoTreeover 2 years ago
I&#x27;ve never lost data with btrfs, but I have purposefully avoided anything other than basic disk configurations. I use it on my workstations because it&#x27;s the default in Fedora these days and haven&#x27;t had any complaints.<p>On the flip-side, I&#x27;ve done some of the most horrible things possible and screwed up my 30-disk ZFS array a number of times and I&#x27;ve never lost data. I doubt btrfs could recover from anything I&#x27;ve done to break my ZFS pool.<p>Overall I think it&#x27;s a huge shame that it was determined that the CDDL was incompatible with the GPL, because it wasn&#x27;t intentional, and we would be in a completely different spot for storage otherwise.
评论 #33961995 未加载
评论 #33961879 未加载
评论 #33961903 未加载
评论 #33962458 未加载
seanw444over 2 years ago
Glad to see Btrfs getting continual updates. It&#x27;s my favorite filesystem for my personal machines (work and home PCs). The feature set is just awesome. I just hope it doesn&#x27;t get completely abandoned as its development seems to have slowed significantly.<p>The only thing it&#x27;s missing before I consider it full-featured is stable RAID 5&#x2F;6. But it looks like that hasn&#x27;t been forgotten.
评论 #33962093 未加载
评论 #33961591 未加载
candiddevmikeover 2 years ago
Maybe I&#x27;m just cynical but I think the ship has sailed for BTRFS RAID 5&#x2F;6. It&#x27;s now part of the global mindshare that BTRFS RAID 5&#x2F;6 == data loss, no one wants to be the guinea pig that proves it works.<p>Better to direct resources towards bcachefs or ZFS IMO.
评论 #33961556 未加载
评论 #33962088 未加载
评论 #33961848 未加载
评论 #33962855 未加载
评论 #33961722 未加载
评论 #33961616 未加载
评论 #33961692 未加载
boardwaalkover 2 years ago
As someone who is in the middle of pulling apart a BTRFS volume by hand (read: writing code to interpret the data structures) to try and recover it, I think being burnt enough is once.<p>No indication of any hardware issue: No recent power loss (&amp; it&#x27;s on a UPS), no SMART issues, no memory test positives. But the block tree (at least, WIP) is f*cked across all the disks (looks like two competing writers went at it) and none of the available tools can deal with it.<p>It wasn&#x27;t a super exotic setup either: RAID10 with 4 disks (2 stripes), fairly full and regular snapshots&#x2F;cleanup, but that&#x27;s it.<p>I already converted my root to ext4 because paranoia and I&#x27;m probably going to move bulk data (what can be recovered) to ZFS.
评论 #33967137 未加载
评论 #33965462 未加载
评论 #33979825 未加载
herpderperatorover 2 years ago
I&#x27;ve been managing a raid6 ext4 array with mdadm for 10 years. Started with 4 x 4TB disks and kept adding, up to 11 disks now. It works reliably and as designed. Had a few disk failures and replaced them without issues. That&#x27;s one of the nice things about mdadm vs ZFS: you can add and remove disks from the array as you see fit, rather than being forced to upgrade all disks if you want to increase the size of your array.
评论 #33961901 未加载
评论 #33961725 未加载
freeqazover 2 years ago
We run BTRFS on our work laptops and have been for a few years now. Keep in mind that we&#x27;re only 4 devs, so our sample size is small, but we haven&#x27;t had any issues with it so far and it&#x27;s been very pleasant to use so far!<p>We published our internal doc for how we install our Arch setup with fully encrypted BTRFS if anybody is curious. Happy to answer any questions too!<p><a href="https:&#x2F;&#x2F;www.lunasec.io&#x2F;docs&#x2F;blog&#x2F;arch-linux-installation-guide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.lunasec.io&#x2F;docs&#x2F;blog&#x2F;arch-linux-installation-gui...</a><p>(We run Thinkpad X1 Extremes (+ the business P1 equivalents) as our dev boxes.)
评论 #33965545 未加载
评论 #33967756 未加载
helfover 2 years ago
I ran into a major problem with performance on btrfs when used on an extremely high write volume that filled up. Between fragmentation and full disk I couldn’t even &#x2F;copy&#x2F; data off the drive at a reasonable rate.<p>It was a perfect storm of me being an idiot and heavy use. But I dunno if they have remotely resolved the issues
评论 #33962352 未加载
i13eover 2 years ago
I use BTRFS on my laptop and in case anyone is interested in trying it, <i>please</i> be sure you know how to chroot into the system in case it won&#x27;t start. Arch Linux had a problematic GRUB package pushed to stable a few months ago and it bricked people&#x27;s computers by booting directly to the BIOS. Whatever you do, make sure to take notes on the configuration (if it is DIY) because there are many difference between BTRFS and EXT4, so you can&#x27;t use a normal chroot guide to fix your system.
alschwalmover 2 years ago
I&#x27;m curious how the benchmarks are for Btrfs on 6.1, given the improvements that (I think) landed in it: <a href="https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;Linux-6.1-Btrfs" rel="nofollow">https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;Linux-6.1-Btrfs</a>
评论 #33961755 未加载
mberningover 2 years ago
Wonder if this will make it into Synology DSM 7.2. Seems unlikely based on the timing.
评论 #33961532 未加载
评论 #33961517 未加载
mattpallissardover 2 years ago
I, as many, have a BTRFS raid 5&#x2F;6 story. I once worked at a place that had double digit TB databases. A few of the servers that predated me were set up with BTRFS raid 10 as their backup strategy. Basically stop the server, snapshot the volume, backup from the snapshot. It worked well enough.<p>There came a point where we were going to have to move to a larger server as there were no more slots for additional disks. New hardware procured, provisioned, prepped, ready to roll with the exception of an actual cut over. However, c-suite got involved as they tend to do from time to time, and kept kicking the can down the road.<p>Eventually disk space was a critical issue and a junior sysadmin decided it was a good idea to tell the COO that btrfs can be converted to raid 5 on the fly. I over the phone told them that this would guarantee data loss and refused. They literally came to my office to force my hand. Some people just have to learn the hard way.<p>That story aside, I&#x27;m a big fan of BTRFS and have been using in various configurations on my desktops for years. I&#x27;m glad to see this progressing.
Krisjohnover 2 years ago
We never had a BTRFS event on OS drives that didn&#x27;t result in total loss of the OS. We have finally removed it from the last server it was put on.
unixheroover 2 years ago
I have used btrfs for a low memory footprint raid 0 solution to span drives. Mind you for expendable datasets. It has worked really well, never had failures due to btrfs shall we say -rot.<p>Filesystem is light on requirements and works really well. Compression works great too.<p>The only thing I haven&#x27;t played around with are reflinks.<p>For critical datasets I apply 3-2-1 backup strategy and use ZFS.
shmerlover 2 years ago
I&#x27;m still waiting for bcachefs upstreaming.
评论 #33966298 未加载
whatever1over 2 years ago
I read all these horror stories here for RAID config and data availability&#x2F;integrity and I wonder how do the Cloud providers resolve all these issues at their scale?<p>Why bare-metal admins have to spend countless man-hours on troubleshooting these?
评论 #33974825 未加载
评论 #33966137 未加载
walrus01over 2 years ago
I wonder how this compares to just using mdadm block device level raid5 or raid6. And then a normal filesystem on top.
评论 #33962080 未加载
评论 #33962214 未加载
评论 #33961574 未加载
helfover 2 years ago
I’ll trust btrfs in another 2 decades maybe.<p><i>hugs zfs</i>
评论 #33963085 未加载
stormkingover 2 years ago
If you value your data, you use ZFS.
crestover 2 years ago
&quot;This should ...&quot; doesn&#x27;t belong in a fucking file system! Take a deep breath and try again. Maybe limit the scope to something within your understanding this time.
vermadenover 2 years ago
Just &#x27;better&#x27; (less fuckups) or it works 100% and its production ready? :)<p>... just use FreeBSD with OpenZFS for RAIDZ&#x2F;RAIDZ2&#x2F;RAIDZ3 pools instead.<p>... or even OpenZFS on Linux.
Pr0ject217over 2 years ago
I haven&#x27;t had any issues with BTRFS yet (2yrs, arch). I&#x27;ve had to rollback to a previous snapshot once (a self-inflicted mistake during an update).
nix23over 2 years ago
Oh yeah, i like reliable filesystems like xfs or zfs ;)
评论 #33961453 未加载
评论 #33961445 未加载
aborsyover 2 years ago
For important data, we use ZFS in our shop.
评论 #33970545 未加载