Differences
This shows you the differences between two versions of the page.
linux:perc [2008/04/19 09:58] a perc + nagios |
linux:perc [2009/05/25 00:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Dell PowerEdge Expandable RAID controller ====== | ||
- | useful links: | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | |||
- | ===== Dell PERC 6/i and RAID monitoring ===== | ||
- | |||
- | |||
- | A few pointers for people trying to get Dell's PERC 6/i RAID monitoring working under Ubuntu, and any other linux for that matter. It also applies to PERC 5/i too, and... other stuff :-) | ||
- | |||
- | First, visit [[http:// | ||
- | |||
- | Next, we need to download a tool to get information from your array. Download LSI's MegaRAID CLI tool for linux. It comes as a .RPM, so if you're an ubuntu user, you can convert it to a .deb using alien, or convert it to a .tar.gz. | ||
- | # alien --to-tgz MegaCli-1.01.39-0.i386.rpm | ||
- | |||
- | You then have a CLI tool you can use to get all your data now! For example: | ||
- | # ./ | ||
- | |||
- | One thing I spent a while figuring out was how to get the rebuild progress, so here's how: | ||
- | # ./ | ||
- | |||
- | There' | ||
- | |||
- | Don't forget to actually monitor this output with nagios, or your favorite monitoring tool! | ||
- | |||
- | |||
- | ===== PERC 5/i ===== | ||
- | Debian repository | ||
- | #raid | ||
- | deb ftp:// | ||
- | |||
- | install '' | ||
- | | ||
- | |||
- | ==== kernel options ==== | ||
- | |||
- | Fallowing things in kernel must be compiled as modules | ||
- | |||
- | # IPMI | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | CONFIG_DELL_RBU=m | ||
- | CONFIG_DCDBAS=m | ||
- | |||
- | |||
- | ==== diagnostic tool usage ==== | ||
- | |||
- | to access PERC | ||
- | #/ | ||
- | |||
- | < | ||
- | omreport | ||
- | |||
- | The available command(s) are: | ||
- | |||
- | Command | ||
- | adisk Display array disk(s) properties. DEPRECATED: please | ||
- | use pdisk | ||
- | pdisk Display physical disk(s) properties. | ||
- | vdisk Display virtual disk(s) properties. | ||
- | controller | ||
- | enclosure | ||
- | channel | ||
- | connector | ||
- | battery | ||
- | globalinfo | ||
- | connector | ||
- | </ | ||
- | |||
- | ===== Older PERC ===== | ||
- | |||
- | see: | ||
- | * http:// | ||
- | * grab file **'' | ||
- | |||
- | |||
- | ===== Monitoring Dell SAS 5/iR RAID with nagios ===== | ||
- | |||
- | | ||
- | | ||
- | |||
- | |||
- | |||
- | The status of this RAID card can be read using mpt-status, in Gentoo this package is available as sys-block/ | ||
- | |||
- | |||
- | # mpt-status | ||
- | ioc0 vol_id 0 type IM, 2 phy, 148 GB, state OPTIMAL, flags ENABLED | ||
- | ioc0 phy 1 scsi_id 32 ATA WDC WD1600JS-75N 2E04, 149 GB, state ONLINE, flags NONE | ||
- | ioc0 phy 0 scsi_id 1 ATA WDC WD1600JS-75N 2E04, 149 GB, state ONLINE, flags NONE | ||
- | |||
- | The latest ' | ||
- | |||
- | |||
- | The script uses sudo to run mpt-status, so you'll need to modify your / | ||
- | | ||
- | |||
- | |||
- | |||
- | Next, you need to configure nagios, your filenames might be different from the names I use below. | ||
- | / | ||
- | |||
- | |||
- | | ||
- | | ||
- | | ||
- | } | ||
- | |||
- | |||
- | / | ||
- | |||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | check_command | ||
- | } | ||
- | |||
- | |||
- | Reload nagios, on gentoo, it's / |