mdadm状态“活动”和状态“干净”之间有什么区别


20

我有两台具有不同RAID5阵列的不同计算机。当我运行命令

mdadm --detail /dev/md0

一个驱动器报告“活动”,而另一个驱动器报告“状态”字段为“干净”。有什么不同?我应该担心这两种状态吗?两者似乎都工作正常。

Answers:


17

从Linux内核文档中的Documentation / md.txt中:

clean - no pending writes, but otherwise active.
    When written to inactive array, starts without resync
    If a write request arrives then
      if metadata is known, mark 'dirty' and switch to 'active'.
      if not known, block and switch to write-pending
    If written to an active array that has pending writes, then fails.
active
    fully active: IO and resync can be happening.
    When written to inactive array, starts with resync

因此,不,您不必担心这两种状态;两者都是正常操作。如果您看到了inactive,那您就不必担心。

mdadm包括一个raid监视器守护程序,该守护程序将(默认情况下通过电子邮件)警告您需要注意的任何情况,特别是出现故障的磁盘。您应该确保已配置并正在运行它。


1

元设备(md0)应该报告clean,物理磁盘(对于简单镜像,fe / dev / sda2和/ dev / sdb2)应该是active sync。那一切都很好。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.