This shows you the differences between two versions of the page.
|
raid_controller_utils [2013/01/25 14:28] root |
raid_controller_utils [2014/10/22 10:05] (current) root |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== HP Raid Utils ====== | ====== HP Raid Utils ====== | ||
| + | |||
| + | HP has replaced command tool hpacucli with hpssacli for later versions of HP Raid Controllers. This is really stupid done by HP. The genius changing a command name should be punished by whip. | ||
| + | |||
| + | In order to get my existing scripts to work, I have created a soft link from hpacucli -> hpssacli in /usr/sbin. | ||
| # hpacucli ctrl all show config | # hpacucli ctrl all show config | ||
| Line 14: | Line 18: | ||
| | | ||
| /tmp/test is output file for result | /tmp/test is output file for result | ||
| + | |||
| + | ===== Spare drives ===== | ||
| + | |||
| + | ==== Remove spare drives ==== | ||
| + | |||
| + | Remove spare drive from Array I | ||
| + | |||
| + | # hpacucli ctrl slot=1 array I remove spares=4E:1:17 | ||
| + | | ||
| + | ==== Adding spare drives ==== | ||
| + | |||
| + | Add two global hot spares | ||
| + | |||
| + | # hpacucli ctrl slot=1 array all add spares=2E:1:18,4E:1:17 | ||
| ===== Smartctl hints for HP smart array (CCISS driver) ===== | ===== Smartctl hints for HP smart array (CCISS driver) ===== | ||
| Line 150: | Line 168: | ||
| ===== List physical disks (PD) ===== | ===== List physical disks (PD) ===== | ||
| - | # /opt/MegaRAID/MegaCli/MegaCli64 -PDlist -aALL | + | # /opt/MegaRAID/MegaCli/MegaCli64 -PDlist -aALL |
| ===== List thorough information indcluding LD & PD ===== | ===== List thorough information indcluding LD & PD ===== | ||
| Line 249: | Line 267: | ||
| No self-tests have been logged | No self-tests have been logged | ||
| Long (extended) Self Test duration: 13596 seconds [226.6 minutes] | Long (extended) Self Test duration: 13596 seconds [226.6 minutes] | ||
| + | |||
| + | ===== List LSI adaptor information ===== | ||
| + | |||
| + | # /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll | ||
| + | |||
| + | ===== Battery check ===== | ||
| + | # /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll | ||
| + | | ||