BTRFS:擦洗发现“超级”错误 - 如何修复它们?

BTRFS:擦洗发现“超级”错误 - 如何修复它们?

我最近遇到了用作媒体中心的 Raspberry PI 系统电源故障的问题。在跟踪它并更换新的电源装置之前,它似乎对旧磁盘(可能会出现问题)和物理上没有问题的不太旧的磁盘造成了一些损坏。它使用 btrfs 进行格式化,并且擦除会在“super”中给出错误:

# btrfs scrub status -d /dev/sda1
scrub status for **************************
scrub device /dev/sda1 (id 1) history
    scrub resumed at Mon Feb  1 22:55:03 2021 and finished after 01:44:48
    total bytes scrubbed: 160.77GiB with 2 errors
    error details: super=2
    corrected errors: 0, uncorrectable errors: 0, unverified errors: 0

btrfs检查没有发现任何问题:

# btrfs check --progress /dev/sda1
Opening filesystem to check...
Checking filesystem on /dev/sda1
UUID: **************************
[1/7] checking root items                      (0:00:00 elapsed, 36660 items checked)
[2/7] checking extents                         (0:00:26 elapsed, 16745 items checked)
[3/7] checking free space cache                (0:00:06 elapsed, 240 items checked)
[4/7] checking fs roots                        (0:00:32 elapsed, 684 items checked)
[5/7] checking csums (without verifying data)  (0:00:29 elapsed, 35432 items checked)
[6/7] checking root refs                       (0:00:00 elapsed, 3 items checked)
[7/7] checking quota groups skipped (not enabled on this FS)
found 252808790016 bytes used, no error found
total csum bytes: 246555120
total tree bytes: 274219008
total fs tree bytes: 11255808
total extent tree bytes: 3080192
btree space waste bytes: 11029386
file data blocks allocated: 252534571008
 referenced 252534571008

现在,鉴于我确实有完整的备份和自动脚本来同步到媒体中心,因此不太麻烦的事情是重新格式化和填充磁盘,我认为这是进行一些实验的良好环境。那么:有什么方法可以尝试修复吗?

谢谢。

相关内容