btrfs (v0.20-rc1) Check tree block failed

1

I am trying to recover a btrfs filesystem and have hit a dead end

btrfs check --repair --init-csum-tree --init-extent-tree /dev/mapper/VG_00-LV_opt

enabling repair mode
Creating a new CRC tree`
Check tree block failed, want=20975616, have=0
Check tree block failed, want=20975616, have=0
Check tree block failed, want=20975616, have=0
Check tree block failed, want=20975616, have=0
Check tree block failed, want=20975616, have=0
read block failed check_tree_block
Couldn't read chunk root

user2363318

Posted 2015-12-28T17:02:14.527

Reputation: 131

can you add some history on what you did to it so it needs recovery? that might help understand what the issue is. – Aganju – 2015-12-28T20:15:35.953

Answers

2

I installed the latest tools for btrfs

git clone https://github.com/kdave/btrfs-progs.git

Then ran:

btrfs rescue chunk-recover /dev/mapper/VG_00-LV_opt

That fixed it, the version of the tools on the server did not have the rescue option.

user2363318

Posted 2015-12-28T17:02:14.527

Reputation: 131