Hmmm... Happens to some but not others? Sounds an awful like a weird issue I'm having with btrfs+bcache on 4.19.
I have a bunch of machines with btrfs and bcache, but only one of them is having corruption issues. It consistently happens on the one machine with 4.19 but none of the others. And only on that one box's filesystem. its root filesystem, which is just plain btrfs, is fine. The controller on this machine is new, the spinning disks are new, the SSD's are new, and this box is completely okay on 4.18, 4.17, etc.
Fortunately, due to the bcache corruption issues I had with 4.14, where I was ultimately able to recover the filesystem itself, I had previously found and fixed issues in my nightly back up script where it turned out I wasn't actually backing everything up before my new issues with 4.19 and recover from my more serious corruption issues on 4.19.
With my corruption issues on 4.19, I get random files failing on scrub... I'll complete a whole scrub where some files will fail. I'll restore them from back up, run a whole new scrub shortly after the previous scrub and recovery, and get whole new files with issues that were fine in the previous scrub...
Going back to 4.18 leaves some issues behind and ultimately I have to recreate the filesystem from scratch and restore from backups.
Recreating the filesystem from scratch under 4.19 still results in corruption.
I have a bunch of machines with btrfs and bcache, but only one of them is having corruption issues. It consistently happens on the one machine with 4.19 but none of the others. And only on that one box's filesystem. its root filesystem, which is just plain btrfs, is fine. The controller on this machine is new, the spinning disks are new, the SSD's are new, and this box is completely okay on 4.18, 4.17, etc.
Fortunately, due to the bcache corruption issues I had with 4.14, where I was ultimately able to recover the filesystem itself, I had previously found and fixed issues in my nightly back up script where it turned out I wasn't actually backing everything up before my new issues with 4.19 and recover from my more serious corruption issues on 4.19.
With my corruption issues on 4.19, I get random files failing on scrub... I'll complete a whole scrub where some files will fail. I'll restore them from back up, run a whole new scrub shortly after the previous scrub and recovery, and get whole new files with issues that were fine in the previous scrub...
Going back to 4.18 leaves some issues behind and ultimately I have to recreate the filesystem from scratch and restore from backups.
Recreating the filesystem from scratch under 4.19 still results in corruption.
Comment