linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unrecoverable corruption after loss of cache
@ 2019-12-01 17:27 Gard Vaaler
  2019-12-01 18:51 ` Nikolay Borisov
  2019-12-04 15:50 ` Gard Vaaler
  0 siblings, 2 replies; 10+ messages in thread
From: Gard Vaaler @ 2019-12-01 17:27 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

Trying to recover a filesystem that was corrupted by losing writes due to a failing caching device, I get the following error:
> ERROR: child eb corrupted: parent bytenr=2529690976256 item=0 parent level=2 child level=0

Trying to zero the journal or reinitialising the extent tree yields the same error. Is there any way to recover the filesystem? Relevant logs attached.


[-- Attachment #2: btrfs --]
[-- Type: application/octet-stream, Size: 1007 bytes --]

[liveuser@localhost-live btrfs-progs-5.3.1]$ ./btrfs --version
btrfs-progs v5.3.1 
[liveuser@localhost-live btrfs-progs-5.3.1]$ sudo ./btrfs check /dev/bcache0
Opening filesystem to check...
parent transid verify failed on 2529691090944 wanted 319147 found 314912
parent transid verify failed on 2529691090944 wanted 319147 found 310171
parent transid verify failed on 2529691090944 wanted 319147 found 314912
Ignoring transid failure
ERROR: child eb corrupted: parent bytenr=2529690976256 item=0 parent level=2 child level=0
ERROR: cannot open file system
[liveuser@localhost-live btrfs-progs-5.3.1]$ sudo ./btrfs rescue zero-log /dev/bcache0
parent transid verify failed on 2529691090944 wanted 319147 found 314912
parent transid verify failed on 2529691090944 wanted 319147 found 310171
parent transid verify failed on 2529691090944 wanted 319147 found 314912
Ignoring transid failure
ERROR: child eb corrupted: parent bytenr=2529690976256 item=0 parent level=2 child level=0
ERROR: could not open ctree

[-- Attachment #3: dmesg --]
[-- Type: application/octet-stream, Size: 514 bytes --]

[  207.230521] BTRFS info (device bcache1): disk space caching is enabled
[  207.230526] BTRFS info (device bcache1): has skinny extents
[  207.478890] BTRFS error (device bcache1): parent transid verify failed on 2529691090944 wanted 319147 found 310171
[  207.491729] BTRFS error (device bcache1): parent transid verify failed on 2529691090944 wanted 319147 found 314912
[  207.491741] BTRFS error (device bcache1): failed to read block groups: -5
[  207.503087] BTRFS error (device bcache1): open_ctree failed


[-- Attachment #4: Type: text/plain, Size: 12 bytes --]



-- 
Gard


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-12-05  2:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-01 17:27 Unrecoverable corruption after loss of cache Gard Vaaler
2019-12-01 18:51 ` Nikolay Borisov
2019-12-02 21:27   ` Gard Vaaler
2019-12-05  2:45     ` Zygo Blaxell
2019-12-04 15:50 ` Gard Vaaler
2019-12-04 19:08   ` Chris Murphy
2019-12-04 20:21     ` Gard Vaaler
     [not found]     ` <B154F1B0-C80A-4E7E-B105-B0E654279E28@megacandy.net>
2019-12-04 21:09       ` Chris Murphy
2019-12-05  0:34         ` Gard Vaaler
2019-12-05  1:26           ` Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).