Objective:
To query hardware RAID info in a Linux system without going into BIOS by using MegaCLI
I’m using IBM x3650 M2. Below is the detail of RAID card (taken from 'lspci -v'),
---------- 8< ---------
01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 1078 (rev 04)
Subsystem: IBM SystemX MegaRAID SAS 8808E
Flags: bus master, fast devsel, latency 0, IRQ 217
Memory at 9b900000 (64-bit, non-prefetchable) [size=256K]
I/O ports at 1000 [size=256]
Memory at 9b940000 (64-bit, non-prefetchable) [size=256K]
Expansion ROM at 9bb00000 [disabled] [size=64K]
Capabilities: [b0] Express Endpoint IRQ 0
Capabilities: [c4] Message Signalled Interrupts: 64bit+ Queue=0/2 Enable-
Capabilities: [d4] MSI-X: Enable- Mask- TabSize=4
Capabilities: [e0] Power Management version 2
Capabilities: [ec] Vital Product Data
Capabilities: [100] Power Budgeting
---------- >8 ----------
Modus Operandi:
1) Download and install “MegaRAID CLI – Linux” from http://www.lsi.com/DistributionSystem/AssetDocument/4.00.11_Linux_MegaCLI.zip
[root@sgbbmgcore04 jmirwan]# rpm -ivh MegaCli-4.00.11-1.i386.rpm Preparing... ########################################### [100%] 1:MegaCli ########################################### [100%] [root@sgbbmgcore04 jmirwan]# rpm -qil MegaCli Name : MegaCli Relocations: (not relocatable) Version : 4.00.11 Vendor: LSI Logic Corporation Release : 1 Build Date: Fri 06 Feb 2009 02:17:34 PM MYT Install Date: Wed 02 Jun 2010 12:30:51 PM MYT Build Host: localhost.localdomain Group : RAID Source RPM: MegaCli-4.00.11-1.src.rpm Size : 4561132 License: LSI Logic Corporation Signature : (none) Packager : Bhavna Patel URL : http://www.lsil.com Summary : MegaCli SAS RAID Management Utility. Description : MegaCli is used to manage SAS RAID controllers. /opt/MegaRAID/MegaCli/MegaCli /opt/MegaRAID/MegaCli/MegaCli64 [root@sgbbmgcore04 jmirwan]# /opt/MegaRAID/MegaCli/MegaCli64 Fatal error - Command Tool invoked with wrong parameters Exit Code: 0x01
2) Run MegaCLI/MegaCLI64
- [root@sgbbmgcore04 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgDsply -aALL
- ==============================================================================
- Adapter: 0
- Product Name: IBM ServeRAID-MR10i SAS/SATA Controller
- Memory: 256MB
- BBU: Present
- Serial No: P095973909
- ==============================================================================
- Number of DISK GROUPS: 1
- DISK GROUPS: 0
- Number of Spans: 1
- SPAN: 0
- Span Reference: 0x00
- Number of PDs: 2
- Number of VDs: 1
- Number of dedicated Hotspares: 0
- Virtual Disk Information:
- Virtual Disk: 0 (Target Id: 0)
- Name:
- RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
- Size:135.972 GB
- State: Optimal
- Stripe Size: 128 KB
- Number Of Drives:2
- Span Depth:1
- Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
- Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
- Access Policy: Read/Write
- Disk Cache Policy: Disabled
- Encryption Type: None
- Physical Disk Information:
- Physical Disk: 0
- Enclosure Device ID: 252
- Slot Number: 0
- Device Id: 1
- 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: 136.731 GB [0x11176d60 Sectors]
- Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
- Coerced Size: 135.972 GB [0x10ff2000 Sectors]
- Firmware state: Online
- SAS Address(0): 0x5000c50017101055
- SAS Address(1): 0x0
- Connected Port Number: 0(path0)
- Inquiry Data: IBM-ESXSST9146852SS B6243TB0M3330518B624
- FDE Capable: Not Capable
- FDE Enable: Disable
- Secured: Unsecured
- Locked: Unlocked
- Foreign State: None
- Device Speed: Unknown
- Link Speed: 3.0Gb/s
- Media Type: Hard Disk Device
- Physical Disk: 1
- Enclosure Device ID: 252
- Slot Number: 1
- Device Id: 2
- 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: 136.731 GB [0x11176d60 Sectors]
- Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
- Coerced Size: 135.972 GB [0x10ff2000 Sectors]
- Firmware state: Online
- SAS Address(0): 0x5000c5001710caf1
- SAS Address(1): 0x0
- Connected Port Number: 1(path0)
- Inquiry Data: IBM-ESXSST9146852SS B6243TB0LCYQ0518B624
- FDE Capable: Not Capable
- FDE Enable: Disable
- Secured: Unsecured
- Locked: Unlocked
- Foreign State: None
- Device Speed: Unknown
- Link Speed: 3.0Gb/s
- Media Type: Hard Disk Device
- Exit Code: 0x00
From the output, I can gather necessary info such as RAID level used, no of diskgroup/span, detail of physical disks etc. For further options, User’s Guide is the best place to refer.
{ 1 } Comments
You might be interested in using Einarc, a common frontend for all such utitlities as LSI’s Megacli (including other adapters) – see at http://www.inquisitor.ru/doc/einarc/
Using{ 1 } Trackback
[...] SysAdmin’s Diary : Linux: Using MegaCLI To Query Hardware RAID Info [...]
Post a Comment