You are not logged in.
Pages: 1
I have a borked btrfs volume as an IMG, from dd.
I'm pretty sure that it was the 3.17.1 and read-only snapshots.
there are no backups of this (was using snapper though i didn't export them).
Is there hope for recovery?
Various combinations of btrfs restore, rescue, and check have yielded nothing useful. I've been using the 3.17 btrfs-progs.
Before i head to the IRC #btrfs room, I'd like to know what would be useful in troubleshooting this
Last edited by isntall (2014-10-26 06:38:42)
Offline
Not a Sysadmin issue, moving to NC...
Offline
Some output
[root@lep 20141023]# ./btrfs-progs/btrfs restore /dev/loop0 /mnt/b2/restore
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Could not open root, trying backup super
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Could not open root, trying backup super
No valid Btrfs found on /dev/loop0
Could not open root, trying backup super
[root@lep 20141023]# ./btrfs-progs/btrfs check /dev/loop0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system
# dmesg | tail
[63444.617311] BTRFS: failed to read tree root on loop0
[63444.617340] BTRFS: bad tree block start 0 1163613192192
[63444.617348] BTRFS: failed to read tree root on loop0
[63444.847079] parent transid verify failed on 1163608866816 wanted 176180 found 176182
[63444.847088] BTRFS: failed to read tree root on loop0
[63444.847875] BTRFS: bad tree block start 0 1163608342528
[63444.847895] BTRFS: failed to read tree root on loop0
[63444.851304] BTRFS: bad tree block start 0 1163606458368
[63444.851341] BTRFS: failed to read tree root on loop0
[63444.919323] BTRFS: open_ctree failed
[root@lep 20141023]# ./btrfs-progs/btrfs check /dev/loop0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system
[root@lep 20141023]# ./btrfs-progs/btrfs check --repair /dev/loop0
enabling repair mode
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system
As stated before I'm using the btrfs-progs 2.17
Offline
Pages: 1