User Tools

Site Tools


computing:storage:megaraid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:megaraid [2012/12/05 12:01]
gcooper
— (current)
Line 1: Line 1:
-====== LSI MegaRAID ====== 
  
-===== MegaCLI ===== 
- 
-http://thatlinuxbox.com/blog/article.php/lsi-megaraid-megacli 
- 
-Install MegaCLI: 
- 
-<file> 
-wget ftp://tsupport:tsupport@ftp0.lsil.com/private/MegaRAID/downloads/8.00.23_Linux_MegaCLI.zip 
- 
-unzip 8.00.23_Linux_MegaCLI.zip 
- 
-rpm -Uvh Lib_Utils-1.00-08.noarch.rpm MegaCli-8.00.23-1.i386.rpm 
-</file> 
- 
-The path to MegaCLI may not be added during installation, so you might just change into the directory containing the binaries and preface commands with "./": 
- 
-<file> 
-cd /opt/MegaRAID/MegaCli/ 
-</file> 
- 
-:!: In the following examples, we assume only one controller is installed and use ''-aALL''. 
- 
-Silence an alarm: 
- 
-<file> 
-./MegaCli -AdpSetProp -AlarmSilence -aALL 
-</file> 
- 
-:!: You have to escape the brackets and braces needed by some commands. 
- 
-:!: To manipulate a particular physical device, address it by enclosure and slot: 
- 
-|E |Enclosure Device ID| 
-|S |Slot Number        | 
- 
-Disk info for drive on port 6: 
- 
-<file> 
-./MegaCli -pdInfo -PhysDrv \[252:6\] -aALL 
-</file> 
- 
-Display all information about all RAID adapter / settings: 
- 
-<file> 
-./MegaCli -AdpAllinfo -aALL 
-</file> 
- 
-Display information about all physical drives: 
- 
-<file> 
-./MegaCli -PDList -aALL 
-</file> 
- 
-Display information about all logical / virtual drives: 
- 
-<file> 
-./MegaCli -LDGetProp -LALL -aALL 
-</file> 
- 
-:!: Removing a drive and putting it right back onto the same RAID controller will cause the drive to marked as "Foreign". A drive in the "Foreign" state is not usable in an array. 
- 
-==== How to Rebuild a Drive That is Marked as "Foreign" When Inserted ==== 
- 
-See the detailed section here: http://thatlinuxbox.com/blog/article.php/lsi-megaraid-megacli 
- 
-Summary: 
- 
-Find the drive that is not "Online" which should be the newly replaced drive by showing the first few lines of output for each drive to help locate the one that is in a "Foreign" state: 
- 
-./MegaCli -PDList -aALL | grep --before-context=12 Firmware 
- 
-./MegaCli -PDMakeGood -PhysDrv \[E:S\] -aALL 
- 
-./MegaCli -CfgForeign -Clear -aALL 
- 
-./MegaCli -PDHSP -Set -PhysDrv \[E:S\] -aALL # make this unconfigured drive a hot spare 
computing/storage/megaraid.1354734111.txt.gz · Last modified: 2012/12/05 12:01 by gcooper