computers:megaraid_megacli
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computers:megaraid_megacli [2010/06/30 16:31] – created chkuo | computers: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/ | |
- | MegaCli is a command line tool provided by MegaRAID to configure/ | + | |
===== Installation ===== | ===== Installation ===== | ||
+ | MegaCli is available as a RPM for RedHat Linux from [[http:// | ||
- | MegaCli is available as a RPM for RedHat Linux. | + | For installation on Ubuntu, first we need to install '' |
+ | <code bash> | ||
+ | $ sudo apt-get install alien | ||
+ | </ | ||
+ | There are two possible ways to perform the actual installation: | ||
- | **masker | + | ==== 1. masker ==== |
+ | <code bash> | ||
+ | $ unzip 4.00.11_Linux_MegaCLI.zip | ||
+ | Archive: | ||
+ | | ||
+ | inflating: 4.00.11_Linux_MegaCLI.txt | ||
+ | $ unzip MegaCliLin.zip | ||
+ | Archive: | ||
+ | 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/ | ||
+ | $ vi MegaCli-4.00.11/ | ||
+ | </ | ||
+ | |||
+ | Change | ||
+ | < | ||
+ | Source: megacli | ||
+ | Section: alien | ||
+ | Priority: extra | ||
+ | Maintainer: MyName | ||
+ | |||
+ | Package: megacli | ||
+ | Architecture: | ||
+ | Depends: ${shlibs: | ||
+ | Description: | ||
+ | | ||
+ | . | ||
+ | | ||
+ | </ | ||
+ | |||
+ | to ** Modified " | ||
+ | < | ||
+ | Source: megacli | ||
+ | Section: alien | ||
+ | Priority: extra | ||
+ | Maintainer: MyName | ||
+ | Package: megacli | ||
+ | Architecture: | ||
+ | Depends: | ||
+ | Description: | ||
+ | Version: 4.00.11 | ||
+ | </ | ||
+ | (including blank line) | ||
+ | < | ||
+ | $ dpkg -b MegaCli-4.00.11 | ||
+ | $ sudo dpkg -i MegaCli-4.00.11.deb | ||
+ | </ | ||
+ | |||
+ | ==== 2. chkuo ==== | ||
+ | <code bash> | ||
+ | $ sudo alien --to-tgz MegaCli-4.00.11-1.i386.rpm | ||
+ | $ tar -xvfz MegaCli-4.00.11.tgz | ||
+ | </ | ||
===== Usage ===== | ===== Usage ===== | ||
+ | A quick reference sheet can be found at [[http:// | ||
+ | Some commonly used commands: | ||
+ | |||
+ | ==== Get Info ==== | ||
To see all adapter info: | To see all adapter info: | ||
<code bash> | <code bash> | ||
Line 17: | Line 79: | ||
</ | </ | ||
- | To see configuration info: | + | To see RAID configuration info of adapter 0: |
<code bash> | <code bash> | ||
- | sudo / | + | sudo / |
</ | </ | ||
+ | To see enclosure info of adapter 0: | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
- | To check rebuild progress: | + | To see virtual drives info of adapter 0: |
<code bash> | <code bash> | ||
- | sudo / | + | sudo / |
</ | </ | ||
- | The example here is for checking | + | |
+ | |||
+ | To see a list of physical drives of adapter 0: | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== To Replace a Hard Drive ==== | ||
+ | **WARNING: The following procedure has not been verified yet!!** | ||
+ | |||
+ | The example here assumes that the one of the physical | ||
+ | |||
+ | 1. Set the drive offline if it is still online | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 2. Mark the drive as missing | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 3. Prepare drive for removal | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 4. Replace the failed hard drive | ||
+ | |||
+ | 5. If the replaced hard drive is listed as '' | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 6. Add the physical drive back to the virtual drive | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 7. Start the rebuid | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | 8. Check the rebuild progress | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
computers/megaraid_megacli.1277886670.txt.gz · Last modified: 2010/06/30 16:31 by chkuo