티스토리 뷰

HARDWARE

mega raid sas

초보의 CHOMAN 2019. 3. 26. 09:37

스크립트 (파이선)

https://github.com/ElCoyote27/hwraid/blob/master/wrapper-scripts/megaclisas-status

vi 열고 Mega-status 파일 생성후 chmod 700 권한주고 ./Mega-status 실행
centos8의 경우 #!/usr/bin/python -> #!/usr/bin/python2 수정 필요

/opt/MegaRAID/MegaCli/MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
No MegaRAID or PERC adapter detected on your system!

dnf install ncurses*

./Mega-status

-- Controller information --
-- ID | H/W Model         | RAM    | Temp | BBU    | Firmware
c0    | PERC H330 Adapter | 0MB    | 53C  | Absent | FW: 25.5.5.0005

-- Array information --
-- ID | Type   |    Size |  Strpsz | Flags | DskCache |   Status |  OS Path | CacheCade |InProgress
c0u0  | RAID-1 |    476G |   64 KB | RA,WT |  Default |  Optimal |        0 | None      |None

-- Disk information --
-- ID  | Type | Drive Model                                        | Size     | Status          | Speed    | Temp | Slot ID  | LSI ID
c0u0p0 | SSD  | R2850X256AG26R000006RevuAhn 850X1 TU 256GB AF0810B | 237.8 Gb | Online, Spun Up | 6.0Gb/s  | N/A  | [32:0]   | 0
c0u0p1 | SSD  | R2850X256AG26R000003RevuAhn 850X1 TU 256GB AF0810B | 237.8 Gb | Online, Spun Up | 6.0Gb/s  | N/A  | [32:1]   | 1
c0u0p2 | SSD  | R2850X256AG26R000004RevuAhn 850X1 TU 256GB AF0810B | 237.8 Gb | Online, Spun Up | 6.0Gb/s  | N/A  | [32:2]   | 2
c0u0p3 | SSD  | R2850X256AG26R000005RevuAhn 850X1 TU 256GB AF0810B | 237.8 Gb | Online, Spun Up | 6.0Gb/s  | N/A  | [32:3]   | 3

Megacli 다운로드

http://docs.avagotech.com/docs/12351587?_ga=2.81670295.1654370925.1557214314-814067834.1557214314

참고원문

https://idchowto.com/?p=28397
https://server-talk.tistory.com/74

./MegaCli64 -PDList -aAll -NoLog | egrep 'Slot Number:|Error|Inquiry Data:|state'

Slot Number: 0
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: R2850X256AG26R000006RevuAhn 850X1 TU 256GB                  AF0810B
Slot Number: 1
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: R2850X256AG26R000003RevuAhn 850X1 TU 256GB                  AF0810B
Slot Number: 2
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: R2850X256AG26R000004RevuAhn 850X1 TU 256GB                  AF0810B
Slot Number: 3
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: R2850X256AG26R000005RevuAhn 850X1 TU 256GB                  AF0810B

디스크 물리정보

./MegaCli64 -PDList -aALL

디스크 구분 할수 있는 정보

./MegaCli64 -PDlist -aALL | grep "Enclosure Device ID"
Enclosure Device ID: 32
Enclosure Device ID: 32

./MegaCli64 -PDlist -aALL | grep "Slot Number:"
Slot Number:0
Slot Number:1

물리적인 디스크 구분

-physdrv[32:0] -a0
-physdrv[32:1] -a0

각 디스크별 상태 확인

디스크 논리정보

./MegaCli64 -LDinfo -Lall -aALL

디스크 요약 정보

./MegaCli64 -ShowSummary -aALL

디스크 물리&논리정보 싹다

./MegaCli64 -LDPDinfo -aALL

레이드 아답타 정보

./MegaCli64 -AdpAllInfo -aALL

디스크 이상 정보 확인

./MegaCli64 -PDList -aALL

아래 카운팅이 1 이상이면 교체 요망

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

리빌딩 진행율 보기

# ./MegaCli64 -PDRbld -showProg -PhysDrv[32:1] -a0

Device(Encl-32 Slot-1) is not in rebuild process

Exit Code: 0x00

리빌딩 중인 메세지

Rebuild Progress on Device at Enclosure 32, Slot 0 Completed 98% in 8 Minutes.

정상적인 경우라면 8분 정도 후에는 완료되어야 함

출처 : https://server-talk.tistory.com/74

'HARDWARE' 카테고리의 다른 글

E1000 Failsafe voltage error. Contact support.  (0) 2020.10.05
mega raid sas  (0) 2019.03.26
DELL IRDAC default password  (0) 2019.01.15
S.M.A.R.T. 기능  (0) 2018.08.31
smartmontools  (0) 2018.08.31
IOMMU  (0) 2018.06.26
댓글
댓글쓰기 폼
공지사항