btrfs check in btrfs-progs-5.19.1 should be able to detect and fix this. (I'm running Ubuntu 22.04.3 LTS and it has an old version, btrfs-progs v5.16.2, so that would need to be upgraded manually.)
https://github.com/kdave/btrfs-progs/issues/522#issuecomment-1973892509 btrfs-progs-5.19.1 (2022-09-12) """"""""""""""""""""""""""""""" * fix memory leaks (extent buffer, path) * check: verify block device size vs item <----- * rescue fix-device-size: allow to shrink device item <----- * receive: fix crash on wrong pinter free() * other: * experimental: support for block-group-tree * documentation updates * new tests ** Bug watch added: github.com/kdave/btrfs-progs/issues #522 https://github.com/kdave/btrfs-progs/issues/522 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1931790 Title: Unable to mount btrfs RAID 1 filesystem after reboot - Error - device total_bytes should be at most X but found Y To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/btrfs/+bug/1931790/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs