User Tools

Site Tools


computing:storage:lsi:megaraid

Differences

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

Link to this comparison view

Next revision
Previous revision
computing:storage:lsi:megaraid [2013/05/23 12:06]
127.0.0.1 external edit
computing:storage:lsi:megaraid [2020/10/12 14:27] (current)
gcooper
Line 1: Line 1:
-====== LSI MegaRAID ======+====== LSI Storage Tools ======
  
 See also **[[computing:storage:lsi:megaraid_monitor|Monitoring LSI SAS RAID Controllers on Linux]]** See also **[[computing:storage:lsi:megaraid_monitor|Monitoring LSI SAS RAID Controllers on Linux]]**
Line 11: Line 11:
 :!: Download the MegaCLI archive from LSI and upload it to the desired Linux server.  You can't use wget any more... :!: Download the MegaCLI archive from LSI and upload it to the desired Linux server.  You can't use wget any more...
  
-Install MegaCLI:+:!: 8.07.10_MegaCLI_Linux.zip is the version I needed for XenServer 6.2.
  
-<file> +https://www.broadcom.com/support/download-search?pg=&pf=&pn=&pa=&po=&dk=megacli
-mkdir ~/MegaCLI +
-cd ~/MegaCLI+
  
 +Copy MegaCLI to the XenServer:
 +
 +<file>
 # copy the MegaCLI archive here # copy the MegaCLI archive here
-scp -P <ssh port> Desktop/8.07.06_MegaCLI.zip root@<server name or IP>:~+scp -P <ssh port> Desktop/8.07.10_MegaCLI_Linux.zip root@<xenserver name or IP>:~ 
 +</file>
  
-unzip 8.07.06_MegaCLI.zip+Install MegaCLI on the XenServer: 
 + 
 +<file> 
 +unzip 8.07.10_MegaCLI_Linux.zip
  
-rpm -Uvh Linux/MegaCli-8.07.06-1.noarch.rpm+rpm -Uvh MegaCli-8.07.10-1.noarch.rpm
 </file> </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 "./":+The path to MegaCLI is not added during installation, so you need to change into the directory containing the binaries and preface commands with ''./'':
  
 <file> <file>
Line 45: Line 50:
 :!: To manipulate a particular physical device, address it by enclosure and slot: :!: To manipulate a particular physical device, address it by enclosure and slot:
  
-|E |Enclosure Device ID| +^E |Enclosure Device ID| 
-|S |Slot Number        |+^S |Slot Number        |
  
 ==== Show Information ==== ==== Show Information ====
Line 59: Line 64:
  
 <file> <file>
-MegaCli -AdpBbuCmd -aALL+./MegaCli -AdpBbuCmd -aALL
 </file> </file>
  
Line 154: Line 159:
 </file> </file>
  
-===== Controller Firmware Update =====+==== Replace Failed Disk ==== 
 + 
 +https://www.advancedclustering.com/act_kb/replacing-a-disk-with-megacli/ 
 + 
 +https://sysadmin.compxtreme.ro/how-to-replace-an-lsi-raid-disk-with-megacli/ 
 + 
 +==== Controller Firmware Update ====
  
 Supermicro FAQ: http://www.supermicro.com/support/faqs/faq.cfm?faq=11360 Supermicro FAQ: http://www.supermicro.com/support/faqs/faq.cfm?faq=11360
Line 162: Line 173:
 LSI Downloads: http://www.lsi.com/channel/support/Pages/download-search.aspx LSI Downloads: http://www.lsi.com/channel/support/Pages/download-search.aspx
  
-==== How to Flash Firmware ====+:!: When booting the USB DOS flash drive, boot without additional memory/drivers. 
 + 
 +=== How to Flash Firmware ===
  
 http://forums.anandtech.com/showthread.php?t=2229711 http://forums.anandtech.com/showthread.php?t=2229711
Line 177: Line 190:
 ./MegaCli -AdpFwFlash -f smc2108.rom -a0 ./MegaCli -AdpFwFlash -f smc2108.rom -a0
 </file> </file>
 +
 +=== How to Recover Firmware ===
 +
 +http://www.supermicro.com/support/faqs/faq.cfm?faq=13612
 +
 +If hou have problems with firwmare, you may be able to use MegaRec to fix the problem.
 +
 +Example: I was unable to upgrade a AOC-USAS2LP-H8iR card to the latest firmware.  MegaCLI kept saying the image was corrupt even though I know it was not.  
 +
 +I was able to flash the controller to a newer version using the 8MB .rom file, then upgrade the controller to the latest version with MegaCLI.
 +
 +<file>
 +megarec.exe -m0flash 0 af21088m.rom
 +</file>
 +
 +===== SAS2Flash =====
 +
 +:!: This tool works on HBAs.
 +
 +**Manual**: https://docs.broadcom.com/doc/12355769
 +
 +  * ''-o'' enable advanced commands
 +  * ''-c'' controller
 +  * ''-f'' firmware
 +  * ''-b'' BIOS
 +  * ''-u'' backup
 +  * ''-l'' log
 +
 +Example to boot from USB DOS drive, backup and update 9207-8i HBA firmware and BIOS:
 +
 +<file>
 +c:
 +
 +cd c:\9207_8i_LSI_SAS\sas2flash_dos_rel
 +
 +sas2flsh_x86.exe -ufirmware SAS9207-8i_FW-Backup.fw
 +sas2flsh_x86.exe -ubios SAS9207-8i_BIOS-Backup.rom
 +
 +sas2flsh_x86.exe -l flashlog.txt -o -f ..\Firmware\9207_8i_LSI_SAS\Firmware\9207-8.bin -b ..\sasbios_rel\mptsas2.rom
 +</file>
 +
 +==== Other People's Notes ====
 +
 +:!: Use Rufus to make a FreeDOS USB boot volume.
 +
 +Copy:
 +
 +<file>
 +sas2flsh.exe
 +2118it.bin
 +</file>
 +
 +to the root of the USB flash drive.
 +
 +Boot from the USB flash drive.
 +
 +execute:
 +
 +<file>
 +sas2flsh -listall
 +</file>
 +
 +:!: Note the numbers of the 2 cards (should be 0 and 1).
 +
 +Execute:
 +
 +<file>
 +sas2flsh -c 0 -o -e 6 (erases the firmware ROM, do not reboot until new firmware is loaded)
 +sas2flsh -c 0 -f 2118it.bin
 +
 +sas2flsh -c 1 -o -e 6 (erases the firmware ROM, do not reboot until new firmware is loaded)
 +sas2flsh -c 1 -f 2118it.bin
 +
 +sas2flsh -listall
 +</file>
 +
 +Verify the firmware is loaded properly.
 +
 +There is no need to load the ''mptsas2.rom'' unless you want to boot from a disk connected to the HBA cards (just use the SATA ports for boot, or USB).
 +
 +The above is also true if you use the UEFI installer which is recommended.  The command is sas2flash.efi instead.  The command map lists all drives in the EFI shell.  Change drives in UEFI like DOS ''DriveName:'' to change dir.
  
 ===== CacheCade 2.0 SSD Caching ===== ===== CacheCade 2.0 SSD Caching =====
Line 194: Line 288:
   - Select a Drive Group and click ''Accept''   - Select a Drive Group and click ''Accept''
   - ''Accept'' the final configuration   - ''Accept'' the final configuration
 +
 +
computing/storage/lsi/megaraid.1369332397.txt.gz · Last modified: 2013/12/21 21:24 (external edit)