Howto lsi hwraid » Historie » Version 1
Jeremias Keihsler, 13.01.2017 11:13
| 1 | 1 | Jeremias Keihsler | h1. Installation |
|---|---|---|---|
| 2 | |||
| 3 | ich habe eigentlich nur die RPMs installiert. Wichtig für die Treiber ist das man das dkms installiert (braucht man eh für Virtualbox auch) |
||
| 4 | |||
| 5 | die 3 packages die ich runtergelassen habe - ich hinterleg Sie Dir noch wo 5.4_linux_Drivers.zip 8.01.06_Linux_MegaCLI.zip 9.00-01_linux_MSM.zip von der LSI homepage. |
||
| 6 | |||
| 7 | Packages Installed: |
||
| 8 | <pre> |
||
| 9 | elinks-0.12-0.20.pre5.el6.x86_64 |
||
| 10 | nss_compat_ossl-0.9.6-1.el6.x86_64 |
||
| 11 | lshw-2.15-1.el6.rf.x86_64 |
||
| 12 | |||
| 13 | kmod-megaraid_sas-v00.00.05.40-1.el6.x86_64 |
||
| 14 | megaraid_sas-v00.00.05.40-1.noarch |
||
| 15 | </pre> |
||
| 16 | |||
| 17 | alle nötigen rpms in den packages habe man entweder mit |
||
| 18 | <pre> |
||
| 19 | yum install <package> --nogpgcheck |
||
| 20 | </pre> |
||
| 21 | installieren. |
||
| 22 | |||
| 23 | <pre> |
||
| 24 | reboot |
||
| 25 | </pre> |
||
| 26 | |||
| 27 | dann |
||
| 28 | |||
| 29 | <pre> |
||
| 30 | Lib_Utils-1.00-08.noarch.rpm |
||
| 31 | MegaCli-8.01.06-1.i386.rpm |
||
| 32 | </pre> |
||
| 33 | |||
| 34 | h1. Setup |
||
| 35 | |||
| 36 | <pre><code class="bash"> |
||
| 37 | vim /usr/local/bin/raid_status.sh |
||
| 38 | </code></pre> |
||
| 39 | |||
| 40 | <pre> |
||
| 41 | /opt/MegaRAID/MegaCli/MegaCli64 -LDinfo -Lall -aALL |
||
| 42 | </pre> |
||
| 43 | |||
| 44 | <pre><code class="bash"> |
||
| 45 | chmod +x /usr/local/bin/raid_status.sh |
||
| 46 | </code></pre> |
||
| 47 | |||
| 48 | h2. add /etc/cron.d/raid_status |
||
| 49 | |||
| 50 | <pre><code class="bash"> |
||
| 51 | vim /etc/cron.d/raid_status |
||
| 52 | </code></pre> |
||
| 53 | |||
| 54 | basic example: |
||
| 55 | <pre bash raid_status> |
||
| 56 | # JKE 2012-01-29 |
||
| 57 | # |
||
| 58 | # minute hour day month dayofweek |
||
| 59 | # m h d m d |
||
| 60 | # - - - - - |
||
| 61 | # | | | | | |
||
| 62 | # | | | | +-day of week (0-7) sunday=0 or 7 |
||
| 63 | # | | | +---month (1-12) |
||
| 64 | # | | +-----day of month (1-31) |
||
| 65 | # | +-------hour (0-23) |
||
| 66 | # +---------min (0-59) |
||
| 67 | # |
||
| 68 | 2 5 * * 1 root /usr/local/bin/raid_status.sh |
||
| 69 | 15 12 * * * root /usr/local/bin/raid_status.sh |
||
| 70 | </pre> |
||
| 71 | |||
| 72 | h1. Usage |
||
| 73 | |||
| 74 | hier einige befehle zum Testen |
||
| 75 | |||
| 76 | listet config aus |
||
| 77 | <pre> |
||
| 78 | /opt/MegaRAID/MegaCli/MegaCli64 -CfgDsply -aALL |
||
| 79 | </pre> |
||
| 80 | |||
| 81 | listest alle physical devices auf allen adaptern an |
||
| 82 | <pre> |
||
| 83 | /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL |
||
| 84 | </pre> |
||
| 85 | |||
| 86 | die info der disk mit der Enclosure Device ID: 64 und Slot Number: 1 |
||
| 87 | <pre> |
||
| 88 | /opt/MegaRAID/MegaCli/MegaCli64 -PDInfo -PhysDrv[64:1] -aALL |
||
| 89 | </pre> |
||
| 90 | |||
| 91 | schaltet die LED ein aus damit man die platte leichter findet (hier mit -a0 wählt man direct den entsprechenden Controller könnte man in obigen befehlen auch das -aALL durch -a0 ersetzen) |
||
| 92 | <pre> |
||
| 93 | /opt/MegaRAID/MegaCli/MegaCli64 -PDLocate -PhysDrv[64:1] -a0 |
||
| 94 | </pre> |