리눅스에서 LSI MegaRaid 상태 보기

CentOS 7(64bit), megaraid 상태 보기.

아래와 비슷한 메시지가 보인다면 megaraid 컨트롤러를 사용중이다.

# dmesg | grep -i mega
[    1.145344] megasas: 06.807.10.00-rh1
[    1.145775] megasas: FW now in Ready state
[    1.145797] megaraid_sas 0000:08:00.0: irq 28 for MSI/MSI-X
[    1.145807] megaraid_sas 0000:08:00.0: firmware supports msix        : (0)
[    1.145809] megaraid_sas 0000:08:00.0: current msix/online cpus      : (1/16)
[    1.251298] megaraid_sas 0000:08:00.0: controller type       : MR(512MB)
[    1.251323] megasas_init_mfi: fw_support_ieee=0
[    1.251324] megasas: INIT adapter done
[    1.293339] megaraid_sas 0000:08:00.0: pci id                : (0x1000)/(0x0079)/(0x8086)/(0x9260)
[    1.293340] megaraid_sas 0000:08:00.0: unevenspan support    : no
[    1.293341] megaraid_sas 0000:08:00.0: disable ocr           : no
[    1.293342] megaraid_sas 0000:08:00.0: firmware crash dump   : no
[    1.293343] megaraid_sas 0000:08:00.0: secure jbod           : no
[    1.293348] scsi host0: Avago SAS based MegaRAID driver

raid 관련 유틸리티가 설치되어 있지 않다면, MegaCLI를 설치한다.

제조사 홈페이지에서 관련 소프트웨어를 다운로드 받을 수 있지만, 관련 정보를 모른다면 아래에서 다운로드 받을 수 있다.
다수의 문서들에서 아래 다운로드 사이트를 확인 할 수 있다.

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

* 다운로드

# mkdir megaraid
# cd megaraid
# curl -O http://mirror.nforce.com/pub/software/raidtools/Megaraid/8-07-14_MegaCLI.zip

* 압축 해제 및 설치
압축파일을 해제하면 OS 별 디렉토리가 보이는데, Linux 디렉토리로 이동하여 설치를 진행하면 된다.

# unzip 8-07-14_MegaCLI.zip
# yum install MegaCli-8.07.14-1.noarch.rpm

실행 파일은, /opt/MegaRAID/MegaCli/MegaCli64 인데, 아무데서나 실행하려면 PATH에 /opt/MegaRAID/MegaCli를 추가하거나 /usr/bin에 심볼릭링크를 만들어주면 된다.

# export PATH=$PATH:/opt/MegaRAID/MegaCli
# cd
# MegaCli64
Fatal error - Command Tool invoked with wrong parameters
Exit Code: 0x01

사용 예

* 컨트롤러 상태 보기

# MegaCli64 -AdpAllInfo -aALL

Adapter #0

==============================================================================
                    Versions
                ================
Product Name    : Intel (R) RAID Controller RS2BL040
Serial No       : SV24208231
FW Package Build: 12.12.0-0139

                    Mfg. Data
                ================
Mfg. Date       : 10/16/12
Rework Date     : 00/00/00
Revision No     : 67D
Battery FRU     : N/A

                Image Versions in Flash:
                ================
FW Version         : 2.130.373-2022
BIOS Version       : 3.26.00_4.12.05.00_0x05210000
Preboot CLI Version: 04.04-020:#%00009
WebBIOS Version    : 6.0-51-e_47-Rel
NVDATA Version     : 2.09.03-0041
Boot Block Version : 2.02.00.00-0000
BOOT Version       : 09.250.01.219

                Pending Images in Flash
                ================
None

                PCI Info
                ================
Controller Id   : 0000
Vendor Id       : 1000
Device Id       : 0079
SubVendorId     : 8086
SubDeviceId     : 9260

Host Interface  : PCIE

ChipRevision    : B4

Link Speed           : 0
Number of Frontend Port: 0
Device Interface  : PCIE

Number of Backend Port: 4
Port  :  Address
0        5003048001fbb57f
1        0000000000000000
2        0000000000000000
3        0000000000000000

                HW Configuration
                ================
SAS Address      : 500605b00581c200
BBU              : Absent
Alarm            : Present
NVRAM            : Present
Serial Debugger  : Present
Memory           : Present
Flash            : Present
Memory Size      : 512MB
TPM              : Absent
On board Expander: Absent
Upgrade Key      : Absent
Temperature sensor for ROC    : Absent
Temperature sensor for controller    : Absent


                Settings
                ================
Current Time                     : 7:27:58 1/24, 2022
Predictive Fail Poll Interval    : 300sec
Interrupt Throttle Active Count  : 16
Interrupt Throttle Completion    : 50us
Rebuild Rate                     : 30%
PR Rate                          : 30%
BGI Rate                         : 30%
Check Consistency Rate           : 30%
Reconstruction Rate              : 30%
Cache Flush Interval             : 4s
Max Drives to Spinup at One Time : 4
Delay Among Spinup Groups        : 2s
Physical Drive Coercion Mode     : 1GB
Cluster Mode                     : Disabled
Alarm                            : Enabled
Auto Rebuild                     : Enabled
Battery Warning                  : Disabled
Ecc Bucket Size                  : 15
Ecc Bucket Leak Rate             : 1440 Minutes
Restore HotSpare on Insertion    : Enabled
Expose Enclosure Devices         : Disabled
Maintain PD Fail History         : Enabled
Host Request Reordering          : Enabled
Auto Detect BackPlane Enabled    : SGPIO/i2c SEP
Load Balance Mode                : Auto
Use FDE Only                     : No
Security Key Assigned            : No
Security Key Failed              : No
Security Key Not Backedup        : No
Default LD PowerSave Policy      : Controller Defined
Maximum number of direct attached drives to spin up in 1 min : 120
Auto Enhanced Import             : No
Any Offline VD Cache Preserved   : No
Allow Boot with Preserved Cache  : No
Disable Online Controller Reset  : No
PFK in NVRAM                     : No
Use disk activity for locate     : No
POST delay                       : 90 seconds
BIOS Error Handling              : Stop On Errors
Current Boot Mode                 :Normal
                Capabilities
                ================
RAID Level Supported             : RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported, PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
Supported Drives                 : SAS, SATA

Allowed Mixing:

Mix in Enclosure Allowed
Mix of SAS/SATA of HDD type in VD Allowed

                Status
                ================
ECC Bucket Count                 : 0

                Limitations
                ================
Max Arms Per VD          : 32
Max Spans Per VD         : 8
Max Arrays               : 128
Max Number of VDs        : 64
Max Parallel Commands    : 1008
Max SGE Count            : 80
Max Data Transfer Size   : 8192 sectors
Max Strips PerIO         : 42
Max LD per array         : 16
Min Strip Size           : 8 KB
Max Strip Size           : 1.0 MB
Max Configurable CacheCade Size: 0 GB
Current Size of CacheCade      : 0 GB
Current Size of FW Cache       : 350 MB

                Device Present
                ================
Virtual Drives    : 1
  Degraded        : 0
  Offline         : 0
Physical Devices  : 10
  Disks           : 8
  Critical Disks  : 0
  Failed Disks    : 0

                Supported Adapter Operations
                ================
Rebuild Rate                    : Yes
CC Rate                         : Yes
BGI Rate                        : Yes
Reconstruct Rate                : Yes
Patrol Read Rate                : Yes
Alarm Control                   : Yes
Cluster Support                 : No
BBU                             : Yes
Spanning                        : Yes
Dedicated Hot Spare             : Yes
Revertible Hot Spares           : Yes
Foreign Config Import           : Yes
Self Diagnostic                 : Yes
Allow Mixed Redundancy on Array : No
Global Hot Spares               : Yes
Deny SCSI Passthrough           : No
Deny SMP Passthrough            : No
Deny STP Passthrough            : No
Support Security                : No
Snapshot Enabled                : No
Support the OCE without adding drives : Yes
Support PFK                     : Yes
Support PI                      : No
Support Boot Time PFK Change    : No
Disable Online PFK Change       : No
PFK TrailTime Remaining         : 0 days 0 hours
Support Shield State            : No
Block SSD Write Disk Cache Change: No
Support Online FW Update        : Yes

                Supported VD Operations
                ================
Read Policy          : Yes
Write Policy         : Yes
IO Policy            : Yes
Access Policy        : Yes
Disk Cache Policy    : Yes
Reconstruction       : Yes
Deny Locate          : No
Deny CC              : No
Allow Ctrl Encryption: No
Enable LDBBM         : No
Support Breakmirror  : No
Power Savings        : No

                Supported PD Operations
                ================
Force Online                            : Yes
Force Offline                           : Yes
Force Rebuild                           : Yes
Deny Force Failed                       : No
Deny Force Good/Bad                     : No
Deny Missing Replace                    : No
Deny Clear                              : No
Deny Locate                             : No
Support Temperature                     : Yes
NCQ                                     : No
Disable Copyback                        : No
Enable JBOD                             : No
Enable Copyback on SMART                : No
Enable Copyback to SSD on SMART Error   : Yes
Enable SSD Patrol Read                  : No
PR Correct Unconfigured Areas           : Yes
Enable Spin Down of UnConfigured Drives : Yes
Disable Spin Down of hot spares         : No
Spin Down time                          : 30
T10 Power State                         : No
                Error Counters
                ================
Memory Correctable Errors   : 0
Memory Uncorrectable Errors : 0

                Cluster Information
                ================
Cluster Permitted     : No
Cluster Active        : No

                Default Settings
                ================
Phy Polarity                     : 0
Phy PolaritySplit                : 0
Background Rate                  : 30
Strip Size                       : 256kB
Flush Time                       : 4 seconds
Write Policy                     : WB
Read Policy                      : Adaptive
Cache When BBU Bad               : Disabled
Cached IO                        : No
SMART Mode                       : Mode 6
Alarm Disable                    : Yes
Coercion Mode                    : 1GB
ZCR Config                       : Unknown
Dirty LED Shows Drive Activity   : No
BIOS Continue on Error           : 0
Spin Down Mode                   : None
Allowed Device Type              : SAS/SATA Mix
Allow Mix in Enclosure           : Yes
Allow HDD SAS/SATA Mix in VD     : Yes
Allow SSD SAS/SATA Mix in VD     : No
Allow HDD/SSD Mix in VD          : No
Allow SATA in Cluster            : No
Max Chained Enclosures           : 16
Disable Ctrl-R                   : Yes
Enable Web BIOS                  : Yes
Direct PD Mapping                : No
BIOS Enumerate VDs               : Yes
Restore Hot Spare on Insertion   : Yes
Expose Enclosure Devices         : No
Maintain PD Fail History         : Yes
Disable Puncturing               : No
Zero Based Enclosure Enumeration : No
PreBoot CLI Enabled              : Yes
LED Show Drive Activity          : Yes
Cluster Disable                  : Yes
SAS Disable                      : No
Auto Detect BackPlane Enable     : SGPIO/i2c SEP
Use FDE Only                     : No
Enable Led Header                : Yes
Delay during POST                : 0
EnableCrashDump                  : No
Disable Online Controller Reset  : No
EnableLDBBM                      : No
Un-Certified Hard Disk Drives    : Allow
Treat Single span R1E as R10     : No
Max LD per array                 : 16
Power Saving option              : Don't Auto spin down Configured Drives
Max power savings option is  not allowed for LDs. Only T10 power conditions are to be used.
Default spin down time in minutes: 30
Enable JBOD                      : No
TTY Log In Flash                 : No
Auto Enhanced Import             : No
BreakMirror RAID Support         : No
Disable Join Mirror              : No
Enable Shield State              : No
Time taken to detect CME         : 60s

Exit Code: 0x00

* Logical 드라이브 보기
아래 결과를 보면, logical 드라이브 하나가 raid-6으로 만들어진 것을 확인 할 수 있다.

# MegaCli64 -LDInfo -LALL -aALL


Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-6, Secondary-0, RAID Level Qualifier-3
Size                : 16.370 TB
Sector Size         : 512
Is VD emulated      : Yes
Parity Size         : 5.456 TB
State               : Optimal
Strip Size          : 256 KB
Number Of Drives    : 8
Span Depth          : 1
Default Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk's Default
Ongoing Progresses:
  Check Consistency        : Completed 22%, Taken 965 min.
Encryption Type     : None
Is VD Cached: No

* (물리적) 디스크 보기.
굉장히 많은 정보가 보이므로, grep 명령을 이용해 필요한것 만 골라 볼 수도 있다.

# MegaCli64 -PDList -aALL

Adapter #0

Enclosure Device ID: 6
Slot Number: 2
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 7
WWN: 5000039fc0c2496d
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ACF0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb56e
Connected Port Number: 0(path0)
Inquiry Data:            21P50YHASTOSHIBA HDWD130                         MX6OACF0
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:  Not Certified
Drive Temperature :25C (77.00 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 3
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: 1
Device Id: 8
WWN: 5000039fc0c24956
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ACF0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb56f
Connected Port Number: 0(path0)
Inquiry Data:            21P50XSASTOSHIBA HDWD130                         MX6OACF0
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:  Not Certified
Drive Temperature :25C (77.00 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 4
Drive's position: DiskGroup: 0, Span: 0, Arm: 2
Enclosure position: 1
Device Id: 9
WWN: 5000039ff4c3bb88
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb570
Connected Port Number: 0(path0)
Inquiry Data:            13G86JVASTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :28C (82.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 5
Drive's position: DiskGroup: 0, Span: 0, Arm: 3
Enclosure position: 1
Device Id: 10
WWN: 5000039ff4c3bbc1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb571
Connected Port Number: 0(path0)
Inquiry Data:            13G86LPASTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :27C (80.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 6
Drive's position: DiskGroup: 0, Span: 0, Arm: 4
Enclosure position: 1
Device Id: 11
WWN: 5000039fe6c91cb5
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb572
Connected Port Number: 0(path0)
Inquiry Data:            Z64N1DNASTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :26C (78.80 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 7
Drive's position: DiskGroup: 0, Span: 0, Arm: 5
Enclosure position: 1
Device Id: 12
WWN: 5000039ff4c2d8e1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb573
Connected Port Number: 0(path0)
Inquiry Data:            13G6854GSTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :26C (78.80 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 8
Drive's position: DiskGroup: 0, Span: 0, Arm: 6
Enclosure position: 1
Device Id: 13
WWN: 5000039ff4d2ee30
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb574
Connected Port Number: 0(path0)
Inquiry Data:            Y36AMZ4GSTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :28C (82.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No



Enclosure Device ID: 6
Slot Number: 9
Drive's position: DiskGroup: 0, Span: 0, Arm: 7
Enclosure position: 1
Device Id: 14
WWN: 5000039ff4c3bc1d
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.727 TB [0x15d3ef000 Sectors]
Sector Size:  0
Logical Sector Size:  0
Physical Sector Size:  0
Firmware state: Online, Spun Up
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: ABB0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5003048001fbb575
Connected Port Number: 0(path0)
Inquiry Data:            13G86PNASTOSHIBA DT01ACA300                      MX6OABB0
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:  Not Certified
Drive Temperature :27C (80.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No




Exit Code: 0x00

7개의 디스크로 구성된 것을 볼 수 있다.

# MegaCli64  -PDList -aALL | grep -i "device id"
Enclosure Device ID: 6
Device Id: 7
Enclosure Device ID: 6
Device Id: 8
Enclosure Device ID: 6
Device Id: 9
Enclosure Device ID: 6
Device Id: 10
Enclosure Device ID: 6
Device Id: 11
Enclosure Device ID: 6
Device Id: 12
Enclosure Device ID: 6
Device Id: 13
Enclosure Device ID: 6
Device Id: 14

# MegaCli64  -PDList -aALL | grep -i wwn
WWN: 5000039fc0c2496d
WWN: 5000039fc0c24956
WWN: 5000039ff4c3bb88
WWN: 5000039ff4c3bbc1
WWN: 5000039fe6c91cb5
WWN: 5000039ff4c2d8e1
WWN: 5000039ff4d2ee30
WWN: 5000039ff4c3bc1d

# MegaCli64  -PDList -aALL | grep -i raw
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]
Raw Size: 2.728 TB [0x15d50a3b0 Sectors]

# MegaCli64  -PDList -aALL | grep -i online
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up

* 경고음 끄고 켜기
디스크 고장인 경우 알람소리가 나는데, 의외로 시끄럽다. 아래 명령으로 끄자.

# MegaCli64 -AdpSetProp AlarmDsbl -aALL

Adapter 0: Set alarm to Disabled success.

Exit Code: 0x00

고장 처리후 다시 알람을 켜놓자.

# MegaCli64 -AdpSetProp AlarmEnbl -aALL

Adapter 0: Set alarm to Enabled success.

Exit Code: 0x00

리빌드 진행상황 보기
디스크 고장시 리빌드 상황을 보려면, 교체한 디스크의 enclouser ID와 교체한 slot ID를 알아야 한다.

# MegaCli64 -PDList -aALL | egrep -i "enclosure|slot"
Enclosure Device ID: 6
Slot Number: 2
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 3
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 4
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 5
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 6
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 7
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 8
Enclosure position: 1
Enclosure Device ID: 6
Slot Number: 9
Enclosure position: 1

slot9번 디스크의 rebuild 상태를 보려면, 아래와 처럼 확인 가능하다. 실제로는 rebuild를 진행하지 않기 때문에 아래와 같은 결과를 보여준다.

# MegaCli64 -PDRbld -showProg -physdrv[6:9] -aALL

Device(Encl-6 Slot-9) is not in rebuild process

* 어댑터 상태와 정보를 자세하게 보려면,

# MegaCli64 -AdpAlILog -aALL

참고문서: http://updates.aslab.com/doc/disk-controller/MegaRAID_User_Guide.pdf

답글 남기기

Your email address will not be published.