Linux - RAID Monitor - LSI MegaRAID SAS

Linux - RAID Monitor - LSI MegaRAID SAS

This page documents monitoring of RAID controllers base on the "LSI Logic / Symbios Logic MegaRAID SAS 1078 or 2208" chipset. The information also applies to the RAID controller identified as "Dell PowerEdge Expandable RAID controller 5" by lspci.

RAID controllers

Some known RAID controllers based on this chipset are:

  • Dell PERC 6/i Integrated RAID Controller
  • Dell PERC 5/i Integrated RAID Controller
  • Dell PERC H710P Mini

Install

For the impatient theres an installer script for installing required tools and setup the crontab script.

You need to install the proprietary megacli command. This tool was created by LSI Logic and can be downloaded from their site. It is also available as a Debian package from http://hwraid.le-vert.net/debian/pool-wheezy/.

Gentoo GNU/Linux

Install from portage:

    bash$> emerge sys-block/megacli
Debian

Download the megacli package for Debian and install using dpkg:

    bash$> wget http://hwraid.le-vert.net/debian/pool-wheezy/megacli_8.04.07-1_amd64.deb
    bash$> dpkg -i megacli_8.04.07-1_amd64.deb
Red Hat

Download and install the megacli RPM-file (either version).

    bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/megacli-8.04.07-2.x86_64.rpm
    bash$> rpm -ihv megacli-8.04.07-2.x86_64.rpm
    bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/megacli-8.07.14-1.x86_64.rpm
    bash$> rpm -ihv megacli-8.07.14-1.x86_64.rpm
Slackware

Download the Debian package and convert using alien:

    bash$> alien -t megacli_8.04.07-1_amd64.deb
    bash$> installpkg megacli-8.04.07.txz

Crontab

The megacli crontab script dumps various information in /var/cache/megacli. On next invocation, the current dump is diffed against the old and if changes are detected, a mail is sent to root.

Download the megacli and mpt-status crontab script and put it in /etc/cron.hourly:

    bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/megacli.cron
    bash$> mv megacli.cron /etc/cron.hourly/megacli

If you are using an older system with Bash 3.x, try the alternative megacli for Bash 3.x instead.

S.M.A.R.T. Monitoring

Monitoring of S.M.A.R.T. information is possible by using the smartmontools megaraid extension:

    bash$> grep -v '#' /etc/smartd.conf
  /dev/sda -a -d megaraid,0 -m root
  /dev/sda -a -d megaraid,1 -m root
  /dev/sdb -a -d megaraid,0 -m root
  /dev/sdb -a -d megaraid,1 -m root

    bash$> smartctl -a -d megaraid,0 /dev/sda
    bash$> smartctl -a -d megaraid,1 /dev/sdb

The system above got an Dell PERC 6/i Integrated RAID Controller with two SAS disks in mirror (RAID-1) and three SATA disks in a strip set (RAID-5). Each disk can be addressed using an disk index for the -d flag.

More information

See the LSI MegaRAID SAS Wiki page.

  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

Asegurar SSH y mensaje de alerta por login root

Pues esto es para cambiar un poco el acceso ssh. Aqui vamos a cambiar el puerto y el logueo...

Cambiar la página de exceso de tráfico en CPanel/WHM Borrar

1. Inicie sesión en su servidor. 2. Haga un backup del fichero a modificar: cp...

Instalación bzip2

Instalación de compresores/descompresores para linux cd .. wget...

Instalación CPanel/WHM Borrar

Primero de todo deberá tener acceso como usuario root, haga login en su servidor dedicado y haga...

Mensaje de Bienvenida en SSH

Podemos definir el mensaje de bienvenida al iniciar sesión en SSH. Pasos a seguir: 1....