RAID5 어레이가 다른 두 대의 컴퓨터가 있습니다. 명령을 실행할 때
mdadm --detail /dev/md0
한 드라이브는 “활성”을보고하고 다른 드라이브는 “상태”필드에 대해 “청결”을보고합니다. 차이점은 무엇입니까? 어느 쪽 상태에 대해 걱정해야합니까? 둘 다 잘 작동하는 것 같습니다.
답변
에서 문서 / 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 모니터 데몬이 포함되어 있습니다. 기본적으로 전자 메일을 통해 알아야 할 모든 조건, 특히 고장난 디스크를 경고합니다. 구성되어 실행 중인지 확인해야합니다.
답변
메타 장치 (md0)가보고해야 clean
하고 실제 디스크 (단순 미러의 경우 fe / dev / sda2 및 / dev / sdb2)는이어야합니다 active sync
. 그럼 다 괜찮아