Labels

Android (1) bash (2) boost (2) C (34) C++ (2) cheatsheet (2) CLion (6) css (3) Debian (33) DL (17) Docker (2) Dreamweaver (2) Eclipse (3) fail2ban (4) git (5) GitHub (4) Hacking (3) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (31) javascript (3) Linux (167) Mac (19) Machine Learning (1) mySQL (48) Netbeans (4) Networking (1) Nexus (1) OpenVMS (6) Oracle (1) Pandas (3) php (16) Postgresql (8) Python (9) raid (1) RedHat (14) Samba (2) Slackware (47) SQL (14) svn (1) tar (1) ThinkPad (1) Virtualbox (3) Visual Basic (1) Visual Studio (1) Windows (2)

Saturday, 1 October 2016

Linux - RAID Monitor - LSI Fusion-MPT SAS

Linux - RAID Monitor - LSI Fusion-MPT SAS

This page documents monitoring of RAID controllers base on the "LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS" chipset using the lsiutil and mpt-status tools. You can choose to install either one of the tools or both.

RAID controllers

Some known RAID controllers based on this chipset are:
  • Dell SAS 6/iR Integrated Blades RAID Controller

Install

For the impatient theres an installer script for installing required tools and setup the crontab script.
You need to install the proprietary lsiutil command. This tool was created by LSI Logic and can be downloaded from their site. The mpt-status utility is also recommended.
Both of them are available as a Debian packages from http://hwraid.le-vert.net/debian/pool-wheezy/.
Gentoo GNU/Linux
Install from portage:
  bash$> emerge sys-block/mpt-status
  bash$> emerge sys-block/lsiutil
Debian
Download the mpt-status and lsiutil for Debian and install using dpkg:
  bash$> wget http://hwraid.le-vert.net/debian/pool-wheezy/mpt-status_1.2.0-4.2.hwraid1_amd64.deb
  bash$> wget http://hwraid.le-vert.net/debian/pool-wheezy/lsiutil_1.60-1_amd64.deb
  bash$> dpkg -i mpt-status_1.2.0-4.2.hwraid1_amd64.deb lsiutil_1.60-1_amd64.deb
Slackware
Slackware packages for lsiutil and mpt-status are available in the files directory:
  bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/lsiutil-1.60-x86_64-1.txz
  bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/mpt-status-1.2.0-x86_64-1.txz
  bash$> installpkg lsiutil-1.60-x86_64-1.txz mpt-status-1.2.0-x86_64-1.txz

Crontab

The lsiutil and mpt-status crontab script dumps various information in /var/cache/. On next invocation, the current dump is diffed against the old and if changes are detected, a mail is sent to root.
Download the lsiutil crontab script and put it in /etc/cron.hourly:
  bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/lsiutil.cron
  bash$> wget http://it.bmc.uu.se/andlov/docs/linux/raid/files/mpt-status.cron
  bash$> mv lsiutil.cron /etc/cron.hourly/lsiutil
  bash$> mv mpt-status.cron /etc/cron.hourly/mpt-status

S.M.A.R.T. Monitoring

Monitoring of S.M.A.R.T. information is possible using the generic SCSI module:
  bash$> grep -v '#' /etc/smartd.conf
  /dev/sg1 -a -m root
  /dev/sg2 -a -m root

  bash$> smartctl -a /dev/sg1
You might have to load the module first:
  bash$> mopdprobe sg
The system above got an Dell SAS 6/iR Integrated Blades RAID controller with two SAS disk in mirror (RAID-1).

More information

See the LSI Fusion MPT SAS Wiki page.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.