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. --detail루트로 실행해야 함
  2. name항목의 다른 위치

어쩌면 다른 시스템에서는 출력이 다를 수도 있습니다. 그렇다면 --examine --scan과 의 차이점은 무엇이며, --detail --scan어느 것이 생성에 더 유용한가요 mdadm.conf?

답변1

man페이지 정보에 표시된 대로 --detail적용됩니다 .

"현재 활성"인 전체 배열이 중요한 부분입니다. --examineRAID 또는 비활성 RAID의 일부인 장치에서 사용할 수 있지만 --detail그 반대의 경우는 사용할 수 없습니다.

기회가 있으면 어레이를 중지하고 둘 다 다시 시도하여 차이점을 비교하십시오 --examine.--detail

관련 정보