어제와 똑같이 살면서 다른 미래를 기대하지 말자

[CentOS7] LSI MegaRaid MegaCli 설치 및 스토리지 디스크 상태 확인 본문

IT관심분야/Linux

[CentOS7] LSI MegaRaid MegaCli 설치 및 스토리지 디스크 상태 확인

플랜액터 2018. 3. 2. 17:27

[3ware] tw_cli RAID 삭제 후 재설정 방법 보러가기

1. 스토리지 Raid Controller 확인

# yum install lshw

# lshw -c "storage" | more

2. MegaCli 설치

# wget http://mirror.nforce.com/pub/software/raidtools/Megaraid/8-07-14_MegaCLI.zip

# unzip 8-07-14_MegaCLI.zip

# cd Linux

# rpm -ivh MegaCli-8.07.14-1.noarch.rpm

# ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/megacli

3. MegaCli 디스크 정보 확인

1) 물리적 디스크 정보 확인

# megacli -pdlist -aall

Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0

각 디스크별 위 항목이 0 이상이면 디스크에 문제가 발생한 것으로 슬롯번호를 확인 교체를 준비해야 합니다.

2). 논리적 디스크 정보 확인

# megacli -LDInfo -Lall -aALL

3) 물리적 논리적 디스크정보 확인

# megacli -LDPDInfo -aALL

4) 아답터 정보 확인

# megacli -AdpAllInfo -aALL

5) 간단 요약정보 확인

# megacli -ShowSummary -aALL

6) 디스크 문제여부만 간략하게 확인하는 방법

megacli -PDList -aall -nolog | egrep "Slot Number:|Error|Inquiry Data:|state|Failure"

# megacli -LDPDInfo -aALL | egrep "Slot Number:|Error|Inquiry Data:|state|Failure|PDs:|Virtual Drive|Raw|State|RAID"

egreg를 통해 보고자 하는 정보면 추가적으로 넣으면 됩니다.


※ 참고 사이트

http://server-talk.tistory.com/74

http://idchowto.com/?p=35534


Comments