Am 24.10.22 um 03:55 schrieb Bagas Sanjaya:
On 10/23/22 13:21, Ernst Herzberg wrote:
Kernel v5.19.16 works without issues. Booting v6.0.3:
Can you try bisecting v5.19..v6.0 instead?
See the other mail: With v5.19.17-rc1 i can reproduce it, reverting
commit 1789c776ec788d544d9e1f4e5f6cd937b3527407 Author: Josef Bacik josef@toxicpanda.com Date: Mon Aug 8 16:10:26 2022 -0400
btrfs: call __btrfs_remove_free_space_cache_locked on cache load failure [ Upstream commit 8a1ae2781dee9fc21ca82db682d37bea4bd074ad ]
solved it.
Wild guesses:
On one of my partitions i have a 'free space cache' problem. Digging into older logfiles shows it exists for longer time undetected (some month...).
# btrfs check --force /dev/sdb3 Opening filesystem to check... WARNING: filesystem mounted, continuing because of --force Checking filesystem on /dev/sdb3 UUID: 4c4e7222-5fa0-4a18-bdc0-3ba1c8577ab8 [1/7] checking root items [2/7] checking extents [3/7] checking free space cache block group 35530997760 has wrong amount of free space, free space cache has 1019756544 block group has 1019813888 failed to load free space cache for block group 35530997760 [4/7] checking fs roots [5/7] checking only csums items (without verifying data) [6/7] checking root refs [7/7] checking quota groups skipped (not enabled on this FS) found 11095502848 bytes used, no error found total csum bytes: 10721436 total tree bytes: 113082368 total fs tree bytes: 94044160 total extent tree bytes: 6356992 btree space waste bytes: 27086059 file data blocks allocated: 10982420480 referenced 10982379520
# grep "failed to load free space" messages.2022-* messages.2022-05:May 10 06:48:30.374 dunno kernel: BTRFS warning (device sdb3): failed to load free space cache for block group 35530997760, rebuilding it now messages.2022-05:May 11 07:08:11.120 dunno kernel: BTRFS warning (device sdb3): failed to load free space cache for block group 35530997760, rebuilding it now messages.2022-05:May 12 06:16:57.244 dunno kernel: BTRFS warning (device sdb3): failed to load free space cache for block group 35530997760, rebuilding it now [...] messages.2022-10:Oct 23 18:11:47.518 dunno kernel: BTRFS warning (device sdb3): failed to load free space cache for block group 35530997760, rebuilding it now messages.2022-10:Oct 23 18:16:36.474 dunno kernel: BTRFS warning (device sdb3): failed to load free space cache for block group 35530997760, rebuilding it now
Booting into v6.0.3 or 5.19.17-rc lead to a full hang of the machine, all kernel before shown only the message above.
Reverting the patch above cures the hang. But for whatever reason the free space cache rebuild seems to fail without any message.
-- Earny