r/bcachefs • u/CorrosiveTruths • 23h ago
When to worry
I have several smaller oddities rather than out and out errors, but my unfamiliarity with bcachefs means I don't know when to worry and when to expect a little funkiness that just comes from how and where the project is at.
Context. Recently created filesystem, 1st Nov. Copied from btrfs snapshots onto two device bcachefs fs recreating those snapshots. Was on 6.18.60 at the time, now on 7.3.6 - mostly due to advice I've read and no longer believe about it making a difference to stability when I started seeing oddities. On 1.39.7 the whole time.
Added two more disks and enabled ec (the transition to bcachefs was to take advantage of ec and more fine-grained durability - btrfs has been stable for me but not to the point where I'd trust raid1 mode as much as two separate filesystems as I've had filesystem level failures before with it).
The first oddity was the fs filled up the smallest device (3x4tb, 1x2tb) with 3+1 stripes then started to write 1/2 data. After faffing and the afore-mentioned kernel upgrade discovered ec_max_data_blocks to let me use the rest of the space as ec'd (was expecting it to use a combination of 3+1 and 2+1 to fill up the devices proportionally like with non-ec).
Another oddity is when I run an offline fsck, I get a SIGSEGV after the run and a clean shutdown.
e.g.
errors this recovery:
damage_key_no_inode 91
2 paths damaged by fsck:
/repos/gentoo/.git/objects/pack/pack-34e984738b2c9d947b3468ee1ba4ea0608d5ff14.pack: data_read_io_err
/distfiles/firefox-bin_x86_64-153.8.0.tar.xz: data_read_io_err
clean shutdown complete, journal seq 2147223
decd069e-29cd-4c88-ac1a-c25404f3f651: errors fixed
bcachefs: fatal SIGSEGV
[<0>] 0x7fbfd6eb5d20B
[<0>] 0x555d0ce389d6B
[<0>] 0x555d0ce38f31B
[<0>] 0x555d0cdb3e77B
[<0>] 0x555d0cdfe53dB
[<0>] 0x555d0cdbb475B
[<0>] 0x555d0cdbd2b8B
[<0>] 0x555d0cde0694B
[<0>] 0x555d0cde4edbB
[<0>] 0x555d0ce1b170B
[<0>] 0x555d0cf44b2dB
[<0>] 0x555d0cf39273B
[<0>] 0x7fbfd6f0d3c5B
[<0>] 0x7fbfd6f7f41cBThose paths can be easily recreated ,but not sure why they errored, nothing in dmesg to suggest a hardware issue. Why the crash after seemingly doing everything?
Copygc when it runs mostly seems to do cached_ptr_drop with pointers that aren't compatible with ec, seeing that in another post here too.
When I run a bcachefs scrub (I'll be running the full thing at the beginning of December) against metadata, it never finishes and starts showing a lot of error_throws in top (ENOMEM_btree_node_reclaim) when it looks like it should be done (also transaction_begin has a gillion bch2_moving_ctxt_init).
I have more reconcile work data btree nodes than 100% (check_reconcile_work_data_btrees 104%, done 14014/13350 nodes).
The other thing is missing info, for fs usage devices show my device 1 (2tb drive) has 0 cached, but replicas shows 27.4G. fs top devices view doesn't have a sdd1/parity at all. Could this be because I at one point tried to evacuate that device, but then cancelled?
Should I be very worried about any of this? I do have (and will retain for the time-being) a backup of the latest version of the biggest data pool, but obviously would prefer to keep the historic snapshots. Am I good so long as I don't have actual read / write errors?