mdadm「アクティブ」状態と「きれい」状態の違いは何ですか?

mdadm「アクティブ」状態と「きれい」状態の違いは何ですか?

異なるRAID5アレイを使用する2台のコンピュータがあります。私がコマンドを実行すると

mdadm --detail /dev/md0

「ステータス」フィールドの場合、あるドライブは「アクティブ」を報告し、もう一方のドライブは「クリーン」を報告します。違いは何ですか? 2つの状態のいずれかを心配する必要がありますか?どちらもうまくいくようです。

ベストアンサー1

~からRAIDアレイドキュメントLinuxカーネルでは:

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監視デーモンが含まれています。構成され、実行中であることを確認する必要があります。

おすすめ記事