Originally posted by birdie
View Post
I recovered all of the data from a broken btrfs filesystem on my laptop a couple of years ago using "btrfs restore" onto an external USB drive. Then I compared the files with my last backup to see if anything had been corrupted.
The cause of the breakage was the SSD, which lost some committed metadata writes on power loss. The laptop had turned itself on in my backpack and ran its battery down. Btrfs really, really doesn't like it when there are references to metadata sequence numbers that don't exist.
That is the worst btrfs failure I have ever experienced since 2012, and I didn't lose any data.
Compared to ext3 which once left half the filesystem in /lost+found? (That was in 2006 after a RAID card failure and loss of the battery-backed RAM cache) btrfs has been great.
Comment