我对SnapRaid很陌生,我想知道当所有的scrub运行时有什么问题,如下所示:
...
Data error in parity 'parity' at position '11242042', diff bits 1048371/2097152
Data error in parity 'parity' at position '11242043', diff bits 1048278/2097152
Data error in parity 'parity' at position '11242044', diff bits 1048591/2097152
Data error in parity 'parity' at position '11242045', diff bits 1047674/2097152
Data error in parity 'parity' at position '11242046', diff bits 1049725/2097152
Data error in parity 'parity' at position '11242047', diff bits 1048050/2097152
Data error in parity 'parity' at position '11242048', diff bits 1048318/2097152
Data error in parity 'parity' at position '11242049', diff bits 1049356/2097152
Data error in parity 'parity' at position '11242050', diff bits 1049158/2097152
Data error in parity 'parity' at position '11242051', diff bits 1047212/2097152
Data error in parity 'parity' at position '11242052', diff bits 1049267/2097152
Data error in parity 'parity' at position '11242053', diff bits 1048615/2097152
...
100% completed, 6380380 MB accessed in 3:49
0 file errors
0 io errors
6084943 data errors
看来所有关于平价的数据都被破坏了。但是这个装置才成立一个月,几天前才开始清洗。没有智能错误或类似的,并且raid是同步的。我想这与某些配置错误或快照问题有关。
很高兴知道如何进一步调查这个问题。
发布于 2018-12-03 23:43:34
在SnapRaid论坛中的人员的帮助下,我可以确定问题所在:当第一次同步完成时,SnapRaid似乎遇到了重大问题。从那时起,所有关于平等的区块都被堵塞了。
对于这里的每个人来说,我将提供一些如何解决这个问题的信息:
检查距偏移量11242042的100个块以获得以下类型的错误:
$ snapraid -S 11242042 -B 100 check
100% completed, 105 MB accessed in 0:00
100 errors
0 unrecoverable errors
WARNING! There are errors!
似乎一切都是可以恢复的。
检查数据受影响的程度:
$ snapraid status
[...]
No sync is in progress.
The 100% of the array is not scrubbed.
You have 164 files with zero sub-second timestamp.
Run the 'touch' command to set it to a not zero value.
No rehash is in progress or needed.
DANGER! In the array there are 7926625 errors!
They are from block 7107252 to 15055004, specifically at blocks: 7107252 [...]
好吧,对我来说是很多.因此,在奇偶校验磁盘的第一个受影响块之前强制重新同步:
$ snapraid fix -d parity -S 7000000
Alternativly修复只检测到坏块:
$ snapraid fix -d parity -e
如果你几乎所有的东西都坏了,我建议:
$ snapraid --force-full sync
花了几个小时,但现在SnapRaid又高兴了。
https://serverfault.com/questions/939546
复制相似问题