koverstreet / bcachefs

Other
708 stars 73 forks source link

bcachefs causes mount timeout #784

Open ssfdust opened 1 week ago

ssfdust commented 1 week ago

This issue has been present for a long time, about six months ago. I don't remember if it was in version 6.8 or 6.7. Since a certain version, the boot process has become very slow. At first, I didn't pay much attention to this problem, but gradually it started to experience mounting timeouts. Later, I updated to the mainline version, which alleviated the situation a lot. However, this problem has reappeared, and now I am using version 6.12-rc7. But the issue is getting worse; every time I boot up, I encounter this problem, with mounting timeouts, then the system crashes. After that, I have to intervene manually before I can access the system.

Systemd boot log: https://paste.rs/HWIDK.txt

output of bcachefs show-super https://paste.rs/J6bd8

Output of bcachefs usage https://paste.rs/CDOIy

Output of lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0     1M  0 part
├─sda2   8:2    0     2G  0 part
├─sda3   8:3    0     6G  0 part
└─sda4   8:4    0 923.5G  0 part /mnt/Downloads
sdb      8:16   0 476.9G  0 disk
├─sdb1   8:17   0     1M  0 part
├─sdb2   8:18   0     2G  0 part /boot
├─sdb3   8:19   0     6G  0 part [SWAP]
└─sdb4   8:20   0   420G  0 part /var/lib/containers/storage/volumes/manage_traefik-data/_data
                                 /var/lib/containers/storage/volumes/manage_traefik-config/_data
                                 /var/lib/containers/storage/volumes/portainer-data/_data
                                 /var/lib/containers/storage/overlay
                                 /
M3Henry commented 1 week ago

It looks like this is related to #777 with a similar "btree trans held srcu lock (delaying memory reclaim)" kernel message.