Dear list, following from earlier this weeks case of attempting data rescue on a corrupt FS, we have now cloned all devices and can do potentially dangerous rescue attempts (since we can re-clone the original disks).
On kernel 4.20.17 and btrfs-progs 4.20.2: ## $ btrfs inspect-internal tree-stats /dev/sdh parent transid verify failed on 1048576 wanted 60234 found 60230 parent transid verify failed on 1048576 wanted 60234 found 60230 Ignoring transid failure volumes.c:1762: btrfs_chunk_readonly: BUG_ON `!ce` triggered, value 1 btrfs[0x426fdc] btrfs(btrfs_chunk_readonly+0x98)[0x429acd] btrfs(btrfs_read_block_groups+0x1c1)[0x41cd44] btrfs(btrfs_setup_all_roots+0x368)[0x416540] btrfs[0x416a8a] btrfs(open_ctree_fs_info+0xd0)[0x416bcc] btrfs(open_ctree+0x75)[0x416c61] btrfs(cmd_inspect_tree_stats+0xfa)[0x4706ad] btrfs(handle_command_group+0x5d)[0x40c7b3] btrfs(cmd_inspect+0x15)[0x4499f1] btrfs(main+0x24a)[0x40ca02] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f0f26c7cb35] btrfs[0x40c509] [1] 15273 abort btrfs inspect-internal tree-stats /dev/sdh ### $ btrfs rescue zero-log /dev/sdh parent transid verify failed on 1048576 wanted 60234 found 60230 parent transid verify failed on 1048576 wanted 60234 found 60230 Ignoring transid failure volumes.c:1762: btrfs_chunk_readonly: BUG_ON `!ce` triggered, value 1 btrfs[0x426fdc] btrfs(btrfs_chunk_readonly+0x98)[0x429acd] btrfs(btrfs_read_block_groups+0x1c1)[0x41cd44] btrfs(btrfs_setup_all_roots+0x368)[0x416540] btrfs[0x416a8a] btrfs(open_ctree_fs_info+0xd0)[0x416bcc] btrfs(open_ctree+0x75)[0x416c61] btrfs[0x4657ff] btrfs(handle_command_group+0x5d)[0x40c7b3] btrfs(cmd_rescue+0x15)[0x465b98] btrfs(main+0x24a)[0x40ca02] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f4507ab1b35] btrfs[0x40c509] [1] 30211 abort btrfs rescue zero-log /dev/sdh ### Even if we will not be able to recover the data, adding these traces here hopefully helps enhancing the tools in the future as a crash is most definitely not the "expected behavior". Have a nice weekend and I hope to receive some feedback. Thanks in advance, Marcel