This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:megaraid [2013/01/18 17:22] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LSI MegaRAID ====== | ||
- | ===== MegaCLI ===== | ||
- | |||
- | http:// | ||
- | |||
- | Install MegaCLI: | ||
- | |||
- | < | ||
- | mkdir ~/MegaCLI | ||
- | cd ~/MegaCLI | ||
- | wget http:// | ||
- | unzip 8.07.06_MegaCLI.zip | ||
- | |||
- | rpm -Uvh Linux/ | ||
- | </ | ||
- | |||
- | The path to MegaCLI may not be added during installation, | ||
- | |||
- | < | ||
- | cd / | ||
- | </ | ||
- | |||
- | :!: If you are on a 64-bit platform, you may need to use '' | ||
- | |||
- | :!: In the following examples, we assume only one controller is installed and use '' | ||
- | |||
- | ==== Silence an Alarm ==== | ||
- | |||
- | < | ||
- | ./MegaCli -AdpSetProp -AlarmSilence -a0 | ||
- | </ | ||
- | |||
- | :!: 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 | ||
- | |||
- | ==== Show Disk Information ==== | ||
- | |||
- | Disk info for drive on port 6: | ||
- | |||
- | < | ||
- | ./MegaCli -pdInfo -PhysDrv \[252:6\] -aALL | ||
- | </ | ||
- | |||
- | ==== Display Adapter Information ==== | ||
- | |||
- | Display all information about all RAID adapter / settings: | ||
- | |||
- | < | ||
- | ./MegaCli -AdpAllinfo -aALL | ||
- | </ | ||
- | |||
- | ==== Display Drive Information ==== | ||
- | |||
- | Display information about all physical drives: | ||
- | |||
- | < | ||
- | ./MegaCli -PDList -aALL | ||
- | </ | ||
- | |||
- | Display information about all logical / virtual drives: | ||
- | |||
- | < | ||
- | ./MegaCli -LDGetProp -LALL -aALL | ||
- | </ | ||
- | |||
- | :!: Removing a drive and putting it right back onto the same RAID controller will cause the drive to marked as " | ||
- | |||
- | ==== How to Rebuild a Drive That is Marked as " | ||
- | |||
- | See the detailed section here: http:// | ||
- | |||
- | === Summary === | ||
- | |||
- | Find the drive that is not " | ||
- | |||
- | < | ||
- | ./MegaCli -PDList -aALL | grep --before-context=12 Firmware | ||
- | |||
- | ./MegaCli -PDMakeGood -PhysDrv \[E:S\] -aALL | ||
- | </ | ||
- | |||
- | Drives (arrays) from another controller (in a " | ||
- | |||
- | < | ||
- | ./MegaCli -CfgForeign -Clear -a0 | ||
- | </ | ||
- | |||
- | Make this unconfigured drive a hot spare: | ||
- | < | ||
- | |||
- | ./MegaCli -PDHSP -Set -PhysDrv \[E:S\] -a0 | ||
- | </ | ||
- | |||
- | Verify RAID rebuild in progress: | ||
- | |||
- | < | ||
- | ./MegaCli -pdrbld -showprog -physdrv\[E: | ||
- | </ | ||
- | |||
- | or display a continuous text-gui rebuild status: | ||
- | |||
- | < | ||
- | ./MegaCli -pdrbld -progdsply -physdrv\[E: | ||
- | </ | ||
- | |||
- | Change the adapter rebuild rate to 60%: | ||
- | |||
- | < | ||
- | ./MegaCli -AdpSetProp \{RebuildRate -60\} -a0 | ||
- | </ | ||
- | |||
- | ==== Create a Logical Disk (Logical Volume or Array) ==== | ||
- | |||
- | Create a single disk (RAID 0): | ||
- | |||
- | < | ||
- | ./MegaCli -CfgLdAdd -r0 \[252:6\] -a0 | ||
- | </ | ||
- | |||
- | Create a two-disk (RAID 1): | ||
- | |||
- | < | ||
- | ./MegaCli -CfgLdAdd -r1 \[252: | ||
- | </ | ||
- | |||
- | In some circumstances, | ||
- | |||
- | < | ||
- | echo "- - -" > / | ||
- | </ | ||
- | |||
- | You may need to find the proper host#: | ||
- | |||
- | < | ||
- | cat / | ||
- | cat / | ||
- | cat / | ||
- | </ | ||
- | |||
- | ===== Controller Firmware Update ===== | ||
- | |||
- | Supermicro FAQ: http:// | ||
- | |||
- | Supermicro Firmware: ftp:// | ||
- | |||
- | LSI Downloads: http:// | ||
- | |||
- | ==== How to Flash Firmware ==== | ||
- | |||
- | http:// | ||
- | |||
- | http:// | ||
- | |||
- | - Install the MegaCLI package (per above) | ||
- | - Copy the firmware image to the directory containing MegaCLI | ||
- | * You can probably use it anywhere, but it's safer to have it on the machine being flashed | ||
- | - Flash the adapter | ||
- | |||
- | < | ||
- | ./MegaCli -AdpFwFlash -f smc2108.rom -a0 | ||
- | </ | ||
- | |||
- | ===== CacheCade 2.0 SSD Caching ===== | ||
- | |||
- | http:// | ||
- | |||
- | |||
- | Create a CacheCade software virtual drive that functions as a secondary tier of cache: | ||
- | |||
- | - Enter the LSI card's WebBIOS | ||
- | - Select '' | ||
- | - Select '' | ||
- | - Select '' | ||
- | - Select an SSD drive from the left frame and click '' | ||
- | - Click '' | ||
- | - Click '' | ||
- | - Select a Drive Group and click '' | ||
- | - '' |