Adding some context, I bisected the error to being introduced in kernel 5.19.0 while 5.18.0 works just fine. On Tue, Feb 20, 2024 at 10:13 PM Patrick Plenefisch <simonpatp@xxxxxxxxx> wrote: > > This is a very weird error I'm getting. I have a system that I'm > migrating from Debian 11 (5.10 kernel) to Debian 12 (6.1 kernel). As a > part of this process, I'm dual booting both systems, with a LVM pool > that contains three relevant LV's with three BTRFS partitions. Two of > these BTRFS partitions (single) are working just fine. The other one > (also single) only works on 5.10 kernels. Whenever I boot it on 6.1 > kernels, I can mount it just fine until I trigger a write, either direct, or > `atime`. Then the BTRFS partition is locked `ro` until > a reboot with this in dmesg: > > BTRFS info (device dm-75): first mount of filesystem > 00d78dac-3576-435d-b575-61c3d951ff66 > BTRFS info (device dm-75): using crc32c (crc32c-intel) checksum algorithm > BTRFS info (device dm-75): disk space caching is enabled > BTRFS info: devid 1 device path /dev/mapper/lvm-brokenDisk changed to > /dev/dm-75 scanned by (udev-worker) (11442) > BTRFS info: devid 1 device path /dev/dm-75 changed to > /dev/mapper/lvm-brokenDisk scanned by (udev-worker) (11442) > BTRFS error (device dm-75): bdev /dev/mapper/lvm-brokenDisk errs: wr > 0, rd 0, flush 1, corrupt 0, gen 0 > BTRFS warning (device dm-75): chunk 13631488 missing 1 devices, max > tolerance is 0 for writable mount > BTRFS: error (device dm-75) in write_all_supers:4379: errno=-5 IO > failure (errors while submitting device barriers.) > BTRFS info (device dm-75: state E): forced readonly > BTRFS warning (device dm-75: state E): Skipping commit of aborted transaction. > BTRFS: error (device dm-75: state EA) in cleanup_transaction:1992: > errno=-5 IO failure > > The only thing I can seem to find online is posts warning that you > should backup your data. But that clearly isn't the case here, because > none of the devices in the lvm pool are giving smart warnings or > reallocation counts. Further, reading is fine, I can read the whole > disk. Finally, I can just reboot back to the 5.10 kernel and it just > works again. 6.5bpo kernel also exhibits 6.1 behavior > > > > I had originally thought this was a btrfs issue, but peeling back the > layers with people in btrfs IRC, I reduced it to be a LVM/DM error, I > think. > > LVM setup is 4 HDD in a LVM VG. A Raid1 LV is created, and a nested pv > is created a second VG is created using that LV/PV, and a final LV is > created on the upper VG, That LV has the btrfs filesystem. However, > there is something else going on, because I have 2 other partitions in > the exact same layout, also with btrfs that aren't exhibiting this > behavior. What could be going on here? > > Patrick