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

What does "dirty block" mean? Especially in RAID context

· 52CE 我爱测

Just as in the title. I was unable to find reliable information about dirty blocks in software RAID, but I heard this term many times. Is it bad to have many dirty blocks? How to check the amount of dirty blocks? Why are they app…

问题原文

原帖链接 · Learner · CC BY-SA 4.0

Just as in the title. I was unable to find reliable information about dirty blocks in software RAID, but I heard this term many times.

Is it bad to have many dirty blocks? How to check the amount of dirty blocks? Why are they appearing/being created in the system?

已采纳解答

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

You are probably conflating two different concepts:

  • dirty pages are the modified memory pages which have to be written to stable storage. For example, when you write something under linux (ie: cp /etc/services /etc/testfile) you do not immediately hit the physical disks; rather, the linux pagecache keep track of which memory areas were dirtied and writes out them later;

  • dirty blocks are the blocks that a mirror leg need to resync from its peer (ie: the other mirror leg). In modern RAID1/mirroring implementation, when a disk temporarily fails out of the array but it is then re-added, it often does not need to completely resync from the other disk; rather, a dirty block tracking mechanism exists to allow selective re-sync of changed areas only.

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

资料来源与适用范围

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

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

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