User Tools

Site Tools


computers:megaraid_megacli

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:megaraid_megacli [2010/06/30 21:43] chkuocomputers:megaraid_megacli [2011/01/07 00:38] (current) – [MegaRAID MegaCli] chkuo
Line 1: Line 1:
 ====== MegaRAID MegaCli ====== ====== MegaRAID MegaCli ======
-MegaCli is a command line tool provided by MegaRAID to configure/monitor their hardware RAID controllers. Currently all hard drives on [[computers:oak|Oak]] are controlled by a MegaRAID SAS 8708EM2 w/ 256Mb RAM.+MegaCli is a command line tool provided by MegaRAID to configure/monitor their hardware RAID controllers. Currently all hard drives on [[user:oak|Oak]] are controlled by a MegaRAID SAS 8708EM2 w/ 256Mb RAM.
  
 ===== Installation ===== ===== Installation =====
-MegaCli is available as a RPM for RedHat Linux. For installation on Ubuntu+MegaCli is available as a RPM for RedHat Linux from [[http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sas/value_line/megaraid_sas_8708em2/index.html|LSI MegaRAID 8708EM2]]. The file name is: **4.00.11_Linux_MegaCLI.zip**
  
-**masker is working on this part**+For installation on Ubuntu, first we need to install ''alien'' for package format conversion: 
 +<code bash> 
 +$ sudo apt-get install alien 
 +</code> 
 + 
 +There are two possible ways to perform the actual installation: 
 + 
 +==== 1. masker ==== 
 +<code bash> 
 +$ unzip 4.00.11_Linux_MegaCLI.zip 
 +Archive:  4.00.11_Linux_MegaCLI.zip 
 + extracting: MegaCliLin.zip           
 +  inflating: 4.00.11_Linux_MegaCLI.txt  
 +$ unzip MegaCliLin.zip 
 +Archive:  MegaCliLin.zip 
 +  inflating: MegaCli-4.00.11-1.i386.rpm   
 +$ alien -g MegaCli-4.00.11-1.i386.rpm 
 +.... 
 +Directories MegaCli-4.00.11 and MegaCli-4.00.11.orig prepared. 
 +$ mv MegaCli-4.00.11/debian MegaCli-4.00.11/DEBIAN 
 +$ vi MegaCli-4.00.11/DEBIAN control 
 +</code> 
 + 
 +Change ** Orignal "control" ** 
 +<file> 
 +Source: megacli 
 +Section: alien 
 +Priority: extra 
 +Maintainer: MyName 
 + 
 +Package: megacli 
 +Architecture: i386 
 +Depends: ${shlibs:Depends} 
 +Description: MegaCli SAS RAID Management Utility. 
 + MegaCli is used to manage SAS RAID controllers. 
 + . 
 + (Converted from a rpm package by alien version 8.79.) 
 +</file> 
 + 
 +to ** Modified "control" ** 
 +<file> 
 +Source: megacli 
 +Section: alien 
 +Priority: extra 
 +Maintainer: MyName 
 +Package: megacli 
 +Architecture: amd64 
 +Depends:  
 +Description: MegaCli SAS RAID Management Utility. MegaCli is used to manage SAS RAID controllers. 
 +Version: 4.00.11 
 +</code> 
 +(including blank line) 
 +<code> 
 +$ dpkg -b MegaCli-4.00.11 
 +$ sudo dpkg -i MegaCli-4.00.11.deb 
 +</file> 
 + 
 +==== 2. chkuo ==== 
 +<code bash> 
 +$ sudo alien --to-tgz MegaCli-4.00.11-1.i386.rpm  
 +$ tar -xvfz MegaCli-4.00.11.tgz  
 +</code>
  
 ===== Usage ===== ===== Usage =====
Line 41: Line 102:
  
 ==== To Replace a Hard Drive ==== ==== To Replace a Hard Drive ====
-The example here assumes that the one of the physical hard drive (Enclosure 252, Slot 7, Adapter 0; marked as Physical Disk in Span 0) has failed and needs to be replaced.+**WARNING: The following procedure has not been verified yet!!** 
 + 
 +The example here assumes that the one of the physical hard drive (Enclosure 252, Slot 6, Adapter 0; marked as Physical Disk in Span Reference 0x00) has failed and needs to be replaced.
  
 1. Set the drive offline if it is still online 1. Set the drive offline if it is still online
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv [252:7] -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv [252:6] -a0
 </code> </code>
  
 2. Mark the drive as missing 2. Mark the drive as missing
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDMarkMissing -PhysDrv [252:7] -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDMarkMissing -PhysDrv [252:6] -a0
 </code> </code>
  
 3. Prepare drive for removal 3. Prepare drive for removal
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDPrpRmv -PhysDrv [252:7] -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDPrpRmv -PhysDrv [252:6] -a0
 </code> </code>
  
-4. Change/replace the drive+4. Replace the failed hard drive 
 + 
 +5. If the replaced hard drive is listed as ''Unconfigured(bad)'', change the state 
 +<code bash> 
 +sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDMakeGood -PhysDrv [252:6] -a0 
 +</code>
  
-5. Add the physical drive back to the virtual drive+6. Add the physical drive back to the virtual drive
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv [252:7] -Array0 -row3 -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv [252:6] -Array0 -row2 -a0
 </code> </code>
  
-6. Start the rebuid+7. Start the rebuid
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [252:7] -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [252:6] -a0
 </code> </code>
  
-7To check the rebuild progress+8Check the rebuild progress
 <code bash> <code bash>
-sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [252:7] -a0+sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [252:6] -a0
 </code> </code>
  
    
computers/megaraid_megacli.1277905386.txt.gz · Last modified: 2010/06/30 21:43 by chkuo