mdadm - --detail --scanと--examine --scanの違いは何ですか?

mdadm - --detail --scanと--examine --scanの違いは何ですか?

からman mdadm

-E, --examine
  Print  contents  of  the  metadata  stored on the named device(s).  Note the 
  contrast between --examine and --detail.  --examine applies to devices which 
  are components of an array, while --detail applies to a whole array which is 
  currently active.

この声明はやや秘密です。私のシステムでは、--examine --scanとの出力が--detail --scan同じように見えます。唯一の違いは次のとおりです。

  1. --detailrootとして実行する必要があります
  2. nameアイテムの他の場所

たぶん、他のシステムでは出力が異なるかもしれません。それでは--examine --scan、との違いは何であり、--detail --scanどちらが生成に役立ちますかmdadm.conf

ベストアンサー1

manページ情報に示すように--detail適用されます。

「現在アクティブ」である配列全体が重要な部分です。--examineRAID または非アクティブ RAID の一部であるデバイスで使用できますが、--detailその逆の場合は使用できません。

機会がある場合は、アレイを停止して両方を再試行して違いを比較してください--examine--detail

おすすめ記事