>> If you do want to use a newer one, I'd build against kernel.org, just >> because the developers only use that base. And use 4.4.6 or 4.5. > > At this point I could remove the overlays and recover the filesystem > permanently, however I'm also deeply indebted to the btrfs community > and want to give anything I can back. I've built (but not installed ;) > ) a straight kernel.org 4.5 w/my missing device check patch applied. > Is there any interest or value in attempting to switch to this kernel, > add/delete a device and see if I experience the same errors as before > I tried replace? What information should I gather if I do this?
I've built and installed a 4.5 straight from kernel.org with my patch. I encountered the same errors in recovery when I use add/delete instead of using replace, here's the sequence of commands: ubuntu@btrfs-recovery:~$ sudo mount -o degraded,ro /dev/sda /mnt ubuntu@btrfs-recovery:~$ sudo mount -o remount,rw /mnt # Remove first empty device ubuntu@btrfs-recovery:~$ sudo btrfs device delete missing /mnt # Add blank drive ubuntu@btrfs-recovery:~$ sudo btrfs device add /dev/sde /mnt # Remove second missing device with data ubuntu@btrfs-recovery:~$ sudo btrfs device delete missing /mnt And the resulting error: ubuntu@btrfs-recovery:~$ sudo btrfs device delete missing /mnt ERROR: error removing the device 'missing' - Input/output error Here's what we see in dmesg after deleting the missing device: [ 588.231341] BTRFS info (device sdd): relocating block group 10560347308032 flags 17 [ 664.306122] BTRFS warning (device sdd): csum failed ino 257 off 695730176 csum 2566472073 expected csum 2706136415 [ 664.306164] BTRFS warning (device sdd): csum failed ino 257 off 695734272 csum 2566472073 expected csum 2558511802 [ 664.306182] BTRFS warning (device sdd): csum failed ino 257 off 695746560 csum 2566472073 expected csum 3360772439 [ 664.306191] BTRFS warning (device sdd): csum failed ino 257 off 695750656 csum 2566472073 expected csum 1205516886 [ 664.344179] BTRFS warning (device sdd): csum failed ino 257 off 695730176 csum 2566472073 expected csum 2706136415 [ 664.344213] BTRFS warning (device sdd): csum failed ino 257 off 695734272 csum 2566472073 expected csum 2558511802 [ 664.344224] BTRFS warning (device sdd): csum failed ino 257 off 695746560 csum 2566472073 expected csum 3360772439 [ 664.344233] BTRFS warning (device sdd): csum failed ino 257 off 695750656 csum 2566472073 expected csum 1205516886 [ 664.344684] BTRFS warning (device sdd): csum failed ino 257 off 695730176 csum 2566472073 expected csum 2706136415 [ 664.344693] BTRFS warning (device sdd): csum failed ino 257 off 695734272 csum 2566472073 expected csum 2558511802 Is there anything of value I can do here to help address this possible issue in btrfs itself, or should I remove the overlays, replace the device and move on? Please let me know, -JohnF -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html