大网数据广告活动
服务器运维问答

What are RAID 1/10 mismatch_cnt > 0 causes except for swap file?

· 52CE 我爱测

Two of four of my servers currently have mismatch_cnt about 40000 and that worries me. We are using RAID10 setup. Manual states, that However on RAID1 and RAID10 it is possible for software issues to cause a mismatch to be report…

问题原文

原帖链接 · Vladislav Rastrusny · CC BY-SA 3.0

Two of four of my servers currently have mismatch_cnt about 40000 and that worries me. We are using RAID10 setup. Manual states, that

However on RAID1 and RAID10 it is possible for software issues to cause a mismatch to be reported. This does not necessarily mean that the data on the array is corrupted. It could simply be that the system does not care what is stored on that part of the array - it is unused space.

We do not use any swap files on our servers. One of the server's HDDs has SMART self-check failing and Available_Reservd_Space is too low. Hosting provider says, that it replaces HDDs only when they are physically faulty.

I think I do not get the real meaning and the usefullness of this param. What could be other reasons for this parameter to have such a big value? How could that be that the system does not care about what is there on that part of array if that's a mirrored one? Due to security considerations a system should sync free space also I think and then - what's left?

Are there any reliable ways to estimate the risk of having a particular HDD in a server?

社区高分解答

原帖链接 · shodanshok · CC BY-SA 3.0

Often, two reasons are given for high mismatch_cnt on a RAID1/10 array:

  • swap on the array
  • very fast file creation/writing/rewriting/deletion workloads

The above reason are harmless: while they do point to differences in the array (basically, a de-synchronized array), they are about unused disk space.

However, there is a much more concernig and dangerous mismatch_cnt cause: an hardware issue (ie: faulty power supply delivering inconsistent power and/or a misbehaving disk DRAM chip) can alter in-flight data, leading to many inconsistencies between the two disks.

You can find more information on this thread in the linux-raid mailing list.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。