过去两天,我一直在尝试为我的磁盘转储创建 2TB btrfs。我强制压缩 zstd。我将其安装如下:defaults,nofail,compress-force=zstd
这是我第二次尝试,但两次我都尝试写入 1.5TB 的备份映像,但两次 btrfs 都失败了。
两次复制大文件时,文件系统都会变为只读。在 syslog 中,我有以下内容:
Oct 25 18:59:20 omv kernel: [ 3452.595259] BTRFS error (device dm-2): bad tree block start, want 90110312448 have 9500881985411515836
Oct 25 18:59:20 omv kernel: [ 3452.595649] BTRFS error (device dm-2): bad tree block start, want 90110312448 have 9500881985411515836
Oct 25 18:59:20 omv kernel: [ 3452.612085] BTRFS error (device dm-2): bad tree block start, want 90110312448 have 10918816554937311883
Oct 25 18:59:30 omv kernel: [ 3462.509548] BTRFS error (device dm-2): bad tree block start, want 90110476288 have 18378735883139905718
Oct 25 18:59:30 omv kernel: [ 3462.517681] BTRFS error (device dm-2): bad tree block start, want 90110476288 have 16978710206724533460
Oct 25 18:59:30 omv kernel: [ 3462.517743] BTRFS: error (device dm-2) in __btrfs_run_delayed_items:1158: errno=-5 IO failure
Oct 25 18:59:30 omv kernel: [ 3462.517768] BTRFS info (device dm-2): forced readonly
Oct 25 18:59:30 omv kernel: [ 3462.517770] BTRFS warning (device dm-2): Skipping commit of aborted transaction.
Oct 25 18:59:30 omv kernel: [ 3462.517771] BTRFS: error (device dm-2) in cleanup_transaction:1846: errno=-5 IO failure
卸载并重新启动后,我无法再次安装它,我得到:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vdd-crypt,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
运行 btrfsck 得到以下结果:
couldn't open because of unsupported option features (10).Couldn't open file system
Running zero-log gives me:couldn't open because of unsupported option features (10).
ERROR: could not open ctree
Dmesg 中填充了以下内容:
[ 56.092845] BTRFS error (device dm-2): parent transid verify failed on 21037056 wanted 209 found 207
[ 56.104033] BTRFS error (device dm-2): parent transid verify failed on 21037056 wanted 209 found 207
[ 56.104203] BTRFS error (device dm-2): failed to read chunk root
[ 56.124933] BTRFS error (device dm-2): open_ctree failed
这是正常的吗?如何修复?通过在不同的 SATA 控制器上使用不同的硬盘和不同的 SATA 端口,我能够达到几乎相同的状态。
此外,在这两种情况下,整个文件系统都只有一个目录和四个大文件。
btrfs-progs 更新到新版本后,我得到:
root@omv:/# btrfsck --repair /dev/mapper/vdd-crypt
enabling repair mode
Opening filesystem to check...
parent transid verify failed on 21037056 wanted 209 found 207
parent transid verify failed on 21037056 wanted 209 found 207
parent transid verify failed on 21037056 wanted 209 found 207
parent transid verify failed on 21037056 wanted 209 found 207
Ignoring transid failure
checksum verify failed on 90110214144 found E34B5BA0 wanted 97B68C5B
checksum verify failed on 90110214144 found E34B5BA0 wanted 97B68C5B
checksum verify failed on 90110214144 found 4287F9E2 wanted 2A67C9FF
checksum verify failed on 90110214144 found E34B5BA0 wanted 97B68C5B
bad tree block 90110214144, bytenr mismatch, want=90110214144, have=12064840543539481400
Couldn't read tree root
ERROR: cannot open file system