[Btrfs PSA] If some btrfs feature is problematic, post it here

Btrfs is a cool filesystem with lots of features but unlike most filesystems certain features have stability/performance issues and some are outright dangerous as documented here.

This is not meant to replace the official btrfs docs but to share your issues with supposedly stable features.

Please share your issues in the following format for easy reading:

- Btrfs feature impacted: 
- Kernel version: 
- OpenSuse version: 
- Description of issue: 
- Error messages, bugzilla report, forum thread with details on the issue like how to reproduce it and any possible fixes (optional, recommended)

If you have multiple issues to share, please use markdown headings (# Issue 1) and horizontal lines (---) for separation.


I will start off with my own issues

Issue 1

  • Btrfs feature impacted: Quotas, qgroups
  • Kernel version: 6.7.4 & above
  • OpenSuse version: openSUSE Tumbleweed-Slowroll 20240213 & OpenSuse Tumbleweed snapshot Jan 2024 & above
  • Description of issue: entire filesystem self-destructed and had to be re-created from backups
  • Solution: disable btrfs quota/qgroup sudo btrfs quota disable /
  • Forum thread
  • Bugzilla report

Issue 2

  • Btrfs feature impacted: RAID1C3
  • Kernel version: 6.7.4
  • OpenSuse version: openSUSE Tumbleweed-Slowroll 20240213
  • Description of issue: using raid1c3 for metadata and raid1 for data caused btrfs filesystem errors, while most could be fixed by scrub there were some uncorrectable errors.
  • Solution: use raid1 for both data and metadata
  • Error messages:
Mar 20 00:16:49 suse-pc kernel: BTRFS error (device sdc1): bdev /dev/sde1 errs: wr 444, rd 0, flush 0, corrupt 0, gen 0
Mar 20 00:16:49 suse-pc kernel: BTRFS error (device sdc1): bdev /dev/sde1 errs: wr 445, rd 0, flush 0, corrupt 0, gen 0
Mar 20 00:16:51 suse-pc kernel: BTRFS error (device sdc1): bdev /dev/sde1 errs: wr 446, rd 0, flush 0, corrupt 0, gen 0
Mar 20 00:16:52 suse-pc kernel: BTRFS error (device sdc1): error writing primary super block to device 2
Mar 20 00:16:52 suse-pc kernel: BTRFS error (device sdc1): error writing primary super block to device 2
Mar 20 00:16:52 suse-pc kernel: BTRFS error (device sdc1): error writing primary super block to device 2
-- Boot 04a58afe2e36468895889ba70a2bd6a3 --
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 22085632 have 0
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 39845888 have 0
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37470208 have 8431940911603655060
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37535744 have 900927334931517119
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37502976 have 16996545663355337567
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 39862272 have 0
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 39829504 have 3351854802418655458
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37486592 have 2623282876353016910
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37519360 have 5126275278048169701
Mar 20 00:18:17 suse-pc kernel: BTRFS error (device sdc1): bad tree block start, mirror 2 want 37437440 have 12188505564875405437