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 [2013/01/18 14:36]
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 ''-a0'' or ''-a0''. 
- 
-Silence an alarm: 
- 
-<file> 
-./MegaCli -AdpSetProp -AlarmSilence -a0 
-</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: 
- 
-<file> 
-./MegaCli -PDList -aALL | grep --before-context=12 Firmware 
- 
-./MegaCli -PDMakeGood -PhysDrv \[E:S\] -aALL 
-</file> 
- 
-Drives (arrays) from another controller (in a "Foreign" state) can be imported and used.  However, if you just want to reuse a drive, you have to clear the "Foreign" state before you can use it again: 
- 
-<file> 
-./MegaCli -CfgForeign -Clear -a0 
-</file> 
- 
-Make this unconfigured drive a hot spare: 
-<file> 
- 
-./MegaCli -PDHSP -Set -PhysDrv \[E:S\] -a0 
-</file> 
- 
-Verify RAID rebuild in progress: 
- 
-<file> 
-./MegaCli -pdrbld -showprog -physdrv\[E:S\] -a0 
-</file> 
- 
-or display a continuous text-gui rebuild status: 
- 
-<file> 
-./MegaCli -pdrbld -progdsply -physdrv\[E:S\] -a0 
-</file> 
- 
-Change the adapter rebuild rate to 60%: 
- 
-<file> 
-./MegaCli -AdpSetProp \{RebuildRate -60\} -a0 
-</file> 
- 
-==== Create a Logical Disk (Logical Volume or Array) ==== 
- 
-Create a single disk (RAID 0): 
- 
-<file> 
-./MegaCli -CfgLdAdd -r0 \[252:6\] -a0 
-</file> 
- 
-Create a two-disk (RAID 1): 
- 
-<file> 
-./MegaCli -CfgLdAdd -r1 \[252:6,252:7\] -a0 
-</file> 
- 
-In some circumstances, the OS can’t see the new drive when using ''fdisk -l'' Try forcing a SCSI bus rescan: 
- 
-<file> 
-echo "- - -" > /sys/class/scsi_host/host0/scan 
-</file> 
- 
-You may need to find the proper host#: 
- 
-<file> 
-cat /sys/class/scsi_host/host0/proc_name 
-cat /sys/class/scsi_host/host1/proc_name 
-cat /sys/class/scsi_host/host2/proc_name 
-</file> 
- 
-===== Controller Firmware Update ===== 
- 
-Supermicro FAQ: http://www.supermicro.com/support/faqs/faq.cfm?faq=11360 
- 
-Supermicro Firmware: ftp://ftp.supermicro.com/driver/SAS/LSI/2108/Firmware/2.130.363-1846/ 
- 
-LSI Downloads: http://www.lsi.com/channel/support/Pages/download-search.aspx 
- 
-==== How to Flash Firmware ==== 
- 
-http://forums.anandtech.com/showthread.php?t=2229711 
- 
-http://brycv.com/blog/2012/flashing-it-firmware-to-lsi-sas9211-8i/ 
computing/storage/megaraid.1358545013.txt.gz · Last modified: 2013/01/18 14:36 by gcooper