BTRFS pros and cons debate

I am not sure whether Btrfs is "production ready" or not. That being said, it is being used by default in a number of places.

Synology NAS devices
Suse
Fedora
Garuda

No wonder I thought Btrfs was so mainstream... Suse, Fedora, Garuda are all OS's that I started my desktop Linux journey with after my experience with Unraid for my homelab, which also recommended Btrfs for my cache pools when I was setting it up.

1 Like

Chris Mason is the founding developer of btrfs, which he began working on in 2007 while working at Oracle. This leads many people to believe that btrfs is an Oracle project—it is not. The project belonged to Mason, not to his employer, and it remains a community project unencumbered by corporate ownership to this day. In 2009, btrfs 1.0 was accepted into the mainline Linux kernel 2.6.29.

Personally the cutting edge features are what makes Btfs for me. Do I use it on my workstations absolutely. I also keep backups; since you know any file system can fail and lose data. Would I use Btfs on a corporate critical server; no but then again I wouldn't use Arch on that either. Its all about using whats best for ones different scenarios. There is no one size fits all.

6 Likes

btrfs is fine for many people who use more than four years.

The Debian wiki page shows the configuration recommendations for btrfs against some problems.

  1. Do not use Software RAID 0,5 and 6 except RAID 1, just use regular backup (There are btrfs backup tools).
  2. Do not use btrfs filesyystem defrag
  3. Do not use quotas/qgroups
  4. Do not enable mount -o discard, autodefrag in fstab
  5. Periodic trim is not required on SSD.
  6. Never run btrfs defrag against a child-subvolume (eg: snapshots) except subvolumes.
6 Likes

BTRFS is a new world for me. Last weekend I decided to give it a try and I reinstalled Garuda with BTRFS. In another thread I read that it is not a good idea to reboot or shutdown the system when a BTRFS maintanance is running. The BTRFS Assistant will do a maintanance once a week/month. So I wonder if there is any prevention that makes it impossible to reboot or shutdown during a running maintanance or if there will be a notification at least?

1 Like

I would like to know if there any merit to this, or does one actually have to manually run it / schedule it? I can't see it being setup out of the gate to run without informing the user, or at least informing the user they can't restart or logout if it is running and they try to do either.

On a side note one never restarts or even logs off the system during any kind of disk specific operations.

Why would that be needed? Btrfs scrub and balance shouldn't cause issues even if the system is restarted while they are running.

6 Likes

Ok, thak you for your help! :slight_smile:

1 Like

In my opinion, there are really only a couple of things that are truly unstable in Btrfs

  • Raid 5/6 configurations
  • Running with quotas enabled

Most of the rest of it is FUD/misunderstandings.

I also use zfs pretty heavily and you can't really look at btrfs through the lens of zfs. While they do similar things in some cases, they are fundamentally and architecturally different. You can't treat btrfs like zfs or vice-versa.

I think it would be hard to argue against the fact that zfs is more reliable and has more features. That being said, that doesn't make btrfs "bad".

It almost shocking how much blatant misinformation has been presented in this topic.

4 Likes

Is it the case (misinformation) with autodefrag that shouldn't be used?
Debian btrfs Recommendations

I wouldn't use it personally because in most use cases I don't think it is needed and it isn't worth the performance hit.

That being said, other than performance problems, are there system stability issues caused by it?

1 Like

I understand your point now. You said "truly unstable in Btrfs". That doesn't mean the other features/options are bad or good, it just means they are not "truly unstable". :slight_smile:

Good point, tnx!

1 Like

There is currently no stable/perfect CoW filesystems. You can see there are many light and heavy bugs/defects that will take longer to eventually stability.

Zfs bugs:

Btrfs bugs:

Nevertheless, both have the useful functions better than other non-CoW file system.

1 Like

I must admit that I was leary of using BTRFS before I switched to Garuda. Reading about the problems some users experienced with it in the past made me a little gun shy on using it. That was several years back and I think BTRFS has come a long ways since back then. Other than having to disable BTRFS quotas I have found the file system to be very trouble free.

3 Likes

I think quotas are disabled by default in Garuda, if I'm correct?

If it is disabled by default that would be a new implementation. There have been discussions about making that the default, but I'm unsure if it was ever implemented.

Many of those discussions with the devs take place on Telegram, and I could have missed that decision. I'm too old to take up chat type platforms now, too set in my ways. I'll leave chat apps to the teeny boppers. :smile:

1 Like

Interesting... last and only time I checked on my quotas, this Winter, it was disabled and I explicitely never disabled them (nor enabled them). Now we talk about this I am curious and will double-check tonight. loll

I am still running my original install of KDE Light from when I first started using Garuda, so I sometimes miss changes that have taken place recently. I do not test out new versions regularly as I spend so much time customizing my system I rarely install new OS's.

If the change did take place, it probably would have coincided with the adoption of snapper. Before that it was semi required for timeshift to operate properly.

1 Like

Quota is disabled by default since we switched to snapper.

Quota was enabled by timeshift

8 Likes

Thanks for that update @librewish. I'm often the last one to catch changes as I don't follow the dev chat on Telegram.

I think what should be obvious from my last post, is that if BTRFS is unstable why is my original Garuda install still up and running so well almost 2 years later. I have no reservations about BTRFS's stability now, as I have found zero issues with BTRFS & COW file system.

5 Likes

It was a great discussion so far.
Each one shared their experience and this is of the greatest value IMHO.
There is no real knowledge unless it is from experience. (wise words by me :wink: )
Theory is not knowledge, only speculations.

Not everyone has the same experience, thus plenty of people sharing personal experience is great!
Thanks to all!

8 Likes