MegaRAID Config

From CompBio
Jump to: navigation, search

Nodes with MegaRAID Controller


 LSI MegaRAID SAS 9261-8i
 fp167,fp8,mv1,mv2 have BBU


 LSI MegaRAID SAS 9260-4i

MegaRAID Software Monitor

MSM allows for email notification when RAID events occur.

Install MSM:

 Complete install on fp{1..6,8..22,167}

Start MSM:

 ~haychoi/bin/MSM (symlink to localhost:/usr/local/MegaRAID Storage Manager/

Add host to notification:

 Start MSM (above), log in with root, tools pulldown menu -> "Monitor Configure Alerts"
 Set FATAL and CRITICAL to notify via Syslog, MSM Log, PopUp, and Email
 MailServer sender email address: SMTP Server:
 Email recipients:

Useful Commands

Show all info on adapter #0 (-a#)

 /opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0

Show all Adapter(s) Info

 /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll

List all Virtual Drive Info (-Lall) on adatoer #0 (-a#)

 /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0

Delete Virtual Drive 1 on adapter #0

 /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -a0

Create RAID0 Virtual drive on [(E)nclosure Device ID:(S)lot]

 /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 [252:1] -a0 

Change RAID Properties

 MegaCli64 -LDSetProp WB -LAll -aAll           # enable write back
 MegaCli64 -LDSetProp ADRA -LAll -aAll         # enable adaptive read ahead
 MegaCli64 -LDSetProp Direct -LAll -aAll       # enable direct IO
 MegaCli64 -LDSetProp EnDskCache -LAll -aAll   # enable disk cache

Enable Cache w/o BBU (disable BBU check)

 MegaCli64 -LDSetProp CachedBadBBU -L0 -a0

Enable BBU Check

 MegaCli64 -LDSetProp NoCachedBadBBU -L0 -a0

Cache flush interval

 MegaCli64 AdpGetProp CacheFlushInterval -a0
 MegaCli64 AdpSetProp CacheFlushInterval 2 -a0

LSI Recommended RAID Config

 Always use Adaptive Read for all RAID levels, Write Back, and Direct I/O

Create RAID1 on [E:S,E:S]

 /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r1 [252:5,252:6] -a0 

Create RAID5 on [E:S]

 /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [252:1,252:2,252:3,252:4,252:5,252:6] WB ADRA Direct NoCachedBadBBU -a0

fp1-6 (old fp161-166) via Preboot CLI

 /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [252:0,252:1,252:2,252:3] WB ADRA Direct NoCachedBadBBU -a0

parted /dev/sdb ; mklabel gpt ; unit TB ; mkpart primary 0 5.456TB mkfs.ext4 -i 4096 -j -m 1 /dev/sdb1

Personal tools