I have a Dell server running CentOS 6
using PERC H710
Raid Controller card with Raid 5 setup and I want to monitor the hard disk failure/working status behind the Raid Controller.
Then I should be able to use a bash script to monitor the hard disk status and send alert emails if something went bad.
The LSI MegaRAID SAS
command tool (About LSI MegaRAID SAS Linux Tools) for CentOS/Red Hat/Linux does NOT support PERC H710 and smartctl
does NOT support it either.
Based on Dell website, CentOS
IS not supported for this server (NX3200 PowerVault
) and I couldn't download any linux program to monitor the hard disk.
[root@server ~]# lspci | grep RAID
03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 05)
[root@server ~]# smartctl -a /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
Vendor: DELL
Product: PERC H710
Revision: 3.13
User Capacity: 299,439,751,168 bytes [299 GB]
Logical block size: 512 bytes
Logical Unit id: ....
Serial number: ....
Device type: disk
Local Time is: Tue Apr 15 16:38:30 2014 SGT
Device does not support SMART
Error Counter logging not supported
Device does not support Self Test logging
Anyone knows how to monitor the hard disk status behind hardware raid on Dell PERC H710 with CentOS 6?
You can see the SMART status of the disks with the smartctl command and it's
-d
argument. For example, to see the first disk in the array:This is on Scientific Linux 6 (another RHEL6 based OS) with smartmontools-5.43-1.el6.x86_64.
S.M.A.R.T. is not the final word in disk or storage monitoring!! It's a component, but modern RAID controllers use it along with other methods to determine drive and array health.
I'm assuming this is a PERC controller in a Dell PowerEdge server.
The normal Linux-friendly approach to health monitoring of Dell hardware is to install the Dell OMSA agents for Linux via Yum - http://linux.dell.com/wiki/index.php/Repository/OMSA#Yum_setup
yum install srvadmin-all
will install the full suite of agents. Once installed, you can use theomreport
command to get information about your array.Examples:
The accepted answer recommends the audacity that is
yum install srvadmin-all
. Blecch. Here's how to make it slightly less blecch-y (but still blecch-y nonetheless; you can get much leaner on HP's platform. But I digress...) By this I mean, only install those components necessary to manage storage on your machine.BTW, the direct answer to the user's question lies in the item "Show physical disks on vdisk 0" in the list below.
Add to root's .bashrc:
Enjoy:
RAID Commands
Show all physical disks on controller 0
Show all logical disks on controller 0
Show all physical disks on vdisk 0
Reconfigure a vdisk to be raid1 from raid0 (COOL!!!!)
Create a vdisk on a new disk:
More Info
BTW, since this IS nothing more than a Dell-branded LSI MegaCLI card, you might find Han Solo's answer even better! I have yet to try it, however.
The Sweetness
Here's an example of omreport's output, piped through grep for a delicious bundle of data:
I was struggling also to get it work in CentOS and I found a working package here http://mirror.ndchost.com/software/lsi/
called "MegaCli-8.07.10-1.noarch.rpm"
The command reference http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS
I hope it helps.
The
perccli
command can also show you a lot of drive info if you ask it nicely:This needs to be repeated for each enclosure slot, or at least I haven't found a way to print all of it at once with a single
perccli
command.It's also easy to install compared to other, more comprehensive options:
perccli
is NOT a comprehensive monitoring suite like Delll OMSA, but it sounds like many folks don't want something comprehensive and instead need a decent, simple tool.Hi I have a similar Dell PERC/LSI card and I needed to check the RAID status. LSI have a utility called sas2ircu which I found quite useful, there is also a version for Windows and Linux.