BTRFS 转移失败

BTRFS 转移失败

我无法再挂载我的 BTRFS 卷。

它说:

mount: wrong fs type, bad option, bad superblock on /dev/md0p1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

dmesg | grep BTRFS
    [    2.596762] BTRFS: device label DATA devid 1 transid 311913 /dev/md0p1
    [   98.707993] BTRFS warning (device md0p1): 'recovery' is deprecated, use 'usebackuproot' instead
    [   98.707995] BTRFS info (device md0p1): trying to use backup root at mount time
    [   98.707997] BTRFS info (device md0p1): disabling disk space caching
    [   98.707998] BTRFS info (device md0p1): has skinny extents
    [   98.915571] BTRFS error (device md0p1): parent transid verify failed on 29458432 wanted 5 found 311913
    [   98.937552] BTRFS error (device md0p1): parent transid verify failed on 29458432 wanted 5 found 311913
    [   98.990667] BTRFS error (device md0p1): open_ctree failed

dmesg | grep transid
    [    2.596762] BTRFS: device label DATA devid 1 transid 311913 /dev/md0p1
    [   98.915571] BTRFS error (device md0p1): parent transid verify failed on 29458432 wanted 5 found 311913
    [   98.937552] BTRFS error (device md0p1): parent transid verify failed on 29458432 wanted 5 found 311913

我试过了btrfs-zero-log,但没用。我不知道该怎么办。我在网上找不到任何有用的文章。

也许你可以帮助我。

答案1

您的错误可能是奇偶校验突袭的一部分(5/6) 请参阅关联:

Parity RAID

Currently raid5 and raid6 profiles have flaws that make it strongly not recommended as per the Status page.
    {..}
    If a crash happens while a raid5/raid6 volume is being written this can result in a "transid" mismatch as in transid verify failed.
    The resulting corruption cannot be currently fixed. 

在这种情况下,没有办法修复对 Raid 造成的损坏。您使用过 BTRFS Raid 5/6 吗?

根据链接,仍有可能使用以下方法恢复数据:

sudo btrfs restore -sxmSv /dev/md0p1 ~/Backup/

要获取所有选项的列表,请使用“btrfs restore --help”

相关内容