[RAID] MegaCli 사용하여 디스크 상태 확인
MegaCLI 명령을 사용하여 물리적 디스크 상태를 확인한다.
아래 항목의 수치가 0보다 크면, 해당 디스크에 문제가 있을 가능성이 있어서
장애가 발생하기전에 교체 작업을 진행하면 된다.
Media Error Count
Other Error Count
Predictive Failure Count
Last Predictive Failure Event Seq Number
물리 디스크 정보 확인
# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
=============================================================
Enclosure Device ID: N/A
Slot Number: 5
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: N/A
Device Id: 5
WWN:
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0A
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007f72293d
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: SEAGATE ST300MM0006 LS0AS0K3S686
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :24C (75.20 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
=============================================================
Firmware state가 정상일때는 Online, Spun Up이며, Failed이면 디스크에 장애가 발생했기 때문에
교체 작업을 해야한다.
논리 디스크 정보 확인
# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL
=============================================================
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 278.875 GB
Sector Size : 512
Mirror Data : 278.875 GB
State : Optimal
Strip Size : 128 KB
Number Of Drives : 2
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Bad Blocks Exist: No
Is VD Cached: Yes
Cache Cade Type : Read Only
=============================================================
[출처] MegaCLI 사용하여 디스크 상태 확인|작성자 메이플라워