- 主题:[求助]BTRF文件系统出错,如何修复?
先dd到新盘,在新盘上玩玩看看
Repairing the filesystem
Do not attempt to repair the filesystem yourself, but seek advice from the developers at the #btrfs IRC channel or the Btrfs mailing list. There are advanced mount options such as -o ro,rescue=all and -o ro,usebackuproot that can assist in recovery, but do not attempt to use them without consulting with experienced admins first.
If the filesystem turned read-only before parent transid verify failed, it may be a false alarm. In this case umount it and try mounting it again.
It is usually not possible to make repairs and get back to a fully working state. If you can mount the filesystem as read-only, use this opportunity to make backups of your files. If it is not possible to mount the filesystem as read-only, then btrfs restore is a last option. Btrfs restore can ignore errors and copy the files from an unmounted filesystem to another device
【 在 ttaudi 的大作中提到: 】
: 第一时间就检查了,换了数据线,电源线和主板sata接口。都换到OK的接口上,但现象还是一样。
: 就是担心丢数据,所以先问问大家看看怎么搞。
:
--
FROM 117.128.4.*
luks,lvm再叠一层btrfs,这种复杂玩法,我是不敢托付宝贵数据的。
luks+btrfs到顶了。
【 在 ttaudi 的大作中提到: 】
:
: 哎,好不容易从ext4转过来,结果出问题了。我4块硬盘转了3块,就这块出问题。
:
: 【 在 cppbuilder 的大作中提到: 】
: : 说句马后炮的..修复之后换成其他系统吧,ext4/xfs/zfs之类的
#发自zSMTH@Redmi Note 7
--
FROM 119.129.238.*
按说有 btrfs 就不需要 lvm 了。
【 在 Dazzy 的大作中提到: 】
: luks,lvm再叠一层btrfs,这种复杂玩法,我是不敢托付宝贵数据的。
: luks+btrfs到顶了。
: #发自zSMTH@Redmi Note 7
: ...................
--
FROM 120.33.8.*
我的 xfs 也崩过。不知道怎么修复,最后把备份恢复一下了事。
ext4 用得少,大家碰到崩溃的情况没有?
【 在 cppbuilder 的大作中提到: 】
: 所以列了三个啊..都是折腾了这么多年的文件系统
--
FROM 120.33.8.*
非硬件问题引起的没遇过。这个真是稳如狗。ext4以当前的需求看,功能比较素哈。
【 在 hgoldfish 的大作中提到: 】
:
: 我的 xfs 也崩过。不知道怎么修复,最后把备份恢复一下了事。
:
: ext4 用得少,大家碰到崩溃的情况没有?
:
#发自zSMTH@Redmi Note 7
--
FROM 119.129.238.*
我ext4和zfs都出现过硬件损坏,都是能听到异响的那种
ext4是做爬虫写挂了,数据就丢了。zfs应该是电压不足,换了新电源新硬盘救过来了
【 在 hgoldfish 的大作中提到: 】
: 我的 xfs 也崩过。不知道怎么修复,最后把备份恢复一下了事。
: ext4 用得少,大家碰到崩溃的情况没有?
--
FROM 1.202.9.*
我的几次 btrfs 多是硬件原因坏掉了。
非硬件原因的话,其实也发生过几次。主要是我给 vmware 的虚拟机分区弄了 nocow 选项,好像配合 btrfs 的 Direct IO,容易出现 checksum 的问题。
【 在 cppbuilder 的大作中提到: 】
: 我ext4和zfs都出现过硬件损坏,都是能听到异响的那种
: ext4是做爬虫写挂了,数据就丢了。zfs应该是电压不足,换了新电源新硬盘救过来了
--
FROM 120.33.8.*
今晚找来一个SSD,把出问题硬盘的数据dd到新SSD上,运行check --repair,结果还是不行。
root@archlinux: ~ # btrfsck --repair --force /dev/san/root
enabling repair mode
Opening filesystem to check...
parent transid verify failed on 305749557248 wanted 3155 found 3975
parent transid verify failed on 305749557248 wanted 3155 found 3975
Ignoring transid failure
ERROR: child eb corrupted: parent bytenr=6782976 item=177 parent level=1 child bytenr=305749557248 child level=2
ERROR: failed to read block groups: Input/output error
ERROR: cannot open file system
【 在 hgoldfish 的大作中提到: 】
: 先找台好的电脑,dd 给另外一条电脑,然后再用 btrfs check --repair 修一下看看。
:
--
FROM 120.229.210.*
是啊,这三个都挺稳定的。
就是前阵子觉得subvol好用,切了三个系统过来,结果寄了一个。
【 在 cppbuilder 的大作中提到: 】
: 所以列了三个啊..都是折腾了这么多年的文件系统
:
--
FROM 120.229.210.*
拿到新硬盘了,dd了,结果repair没成功,感觉数据可能回不来了。
【 在 Akyrum 的大作中提到: 】
: 先dd到新盘,在新盘上玩玩看看
: Repairing the filesystem
: Do not attempt to repair the filesystem yourself, but seek advice from the developers at the #btrfs IRC channel or the Btrfs mailing list. There are advanced mount options such as -o ro,rescue=all and -o ro,usebackuproot that can assist in recovery, but do not attempt to use them without consulting with experienced admins first.
: ...................
--
FROM 120.229.210.*