computers:megaraid_megacli
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:megaraid_megacli [2010/06/30 21:47] – 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. | + | MegaCli is available as a RPM for RedHat Linux from [[http:// |
| - | **masker | + | 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: | ||
| + | |||
| + | ==== 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 ===== | ||
| 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 3 in Span Reference 0x00) 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 2 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 / | + | sudo / |
| </ | </ | ||
| 2. Mark the drive as missing | 2. Mark the drive as missing | ||
| <code bash> | <code bash> | ||
| - | sudo / | + | sudo / |
| </ | </ | ||
| 3. Prepare drive for removal | 3. Prepare drive for removal | ||
| <code bash> | <code bash> | ||
| - | sudo / | + | sudo / |
| </ | </ | ||
| - | 4. Change/ | + | 4. Replace |
| + | |||
| + | 5. If the replaced hard drive is listed as '' | ||
| + | <code bash> | ||
| + | sudo / | ||
| + | </ | ||
| - | 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 / | + | sudo / |
| </ | </ | ||
| - | 6. Start the rebuid | + | 7. Start the rebuid |
| <code bash> | <code bash> | ||
| - | sudo / | + | sudo / |
| </ | </ | ||
| - | 7. To check the rebuild progress | + | 8. Check the rebuild progress |
| <code bash> | <code bash> | ||
| - | sudo / | + | sudo / |
| </ | </ | ||
computers/megaraid_megacli.1277905654.txt.gz · Last modified: by chkuo