Hacker News new | ask | show | jobs
by lproven 75 days ago
It's not just me and it's had serious problems for years:

https://arstechnica.com/gadgets/2021/09/examining-btrfs-linu...

<- 5Y ago.

It's not materially better now. The devs are in denial about the problems because lots of big users are saying "works fine on my machine."

Sure, if you have lots of backups, if you have huge volumes on huge disks and they never fill up...

But it's the default in Fedora, Spiral Linux, Garuda Linux, siduction and others. Personal distros for people's own PCs and those are not well-supported enterprise kit.

1 comments

SUSE also famously uses btrfs on the root file system.

Don't ever let it fill up!

Exactly.

SUSE takes snapshots before packages are installed. The package manager cannot tell if the disk will fill up as a result because on Btrfs the `df` command lies.

If its Btrfs root fills up and the OS writes to it, it 100% will self-destruct, and the `btrfs-repair` tool (`fsck` replacement) cannot fix drives and usually makes the corruption worse and renders the drive unreadable.

This is why in the earlier thread about swapfiles...

https://news.ycombinator.com/item?id=49618087

... I advised 2 commenters not to recommend keeping the OS and data in a single big volume. I got downvoted for it. I was rude. Well, I was, but I stand by my comments even though I'm sorry for my tone when I made them.

You were absolutely correct to be rude.

A pragmatic fix would trigger read-only failure mode at 90% usage of the mount as a whole, with all subvolumes.

Thanks!

And you know what, that's a great idea.

The more practical advice is to resize hard partitions down by 5-10%.

I have a loopback mount on an fallocate file with a btrfs filesystem inside of it at work. I'm using send/receive to make sure there is hope of recovery.

I wrote this several years ago.

https://www.linuxjournal.com/content/btrfs-centos-living-loo...

That is excellent stuff -- thank you!