btrfs (v0.20-rc1) 检查树块失败

btrfs (v0.20-rc1) 检查树块失败

我正在尝试恢复 btrfs 文件系统,但遇到了瓶颈

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

答案1

我安装了最新的 btrfs 工具

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

然后跑:

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

问题已修复,服务器上的工具版本没有救援选项。

相关内容