Solved

How to monitor drive health for a HW RAID 1 Array under linux

Posted on 2004-09-25
10
1,612 Views
Last Modified: 2013-12-16
I recently setup a Linux server running RH9.  The server includes a SATA RAID controller.  I setup a RAID 1 array with two drives in the BIOS and I used 'linux dd' with an aarich driver disk to install the OS.  Everything seems to be working OK, but I would like to know if there is any way to monitor the health of the array.  For example, if one of the drives fail, how will I know that it failed.  I assume that the computer will continue to function normally (with the RAID array in degraded mode), but I would like to be notified by the machine that one of the drives has failed so that I can replace and rebuild the failed drive.  It would also be nice if the log contained enough information to tell me which of the two drives had failed.  Does anyone have any experience with this setup.  I have included a copy of the output I receive at boot time for the RAID controller.

scsi0 : Vendor: ADAPTEC  Model: AAR-ICHx  Version: 2.01.016
  Vendor: ADAPTEC   Model: RAID 1            Rev: 1.0
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0

Thanks in advance.
0
Comment
Question by:ivyfranklin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12153223
Check with Adaptec and see if they have any Linux tools for this. I know that there are Linux tools for some of the SCSI & IDE raid controllers than can  be used for RAID array monitoring and management.
0
 
LVL 2

Expert Comment

by:fulp02
ID: 12154321
Alright well this is quit simple but you can do it

make a cron job to run every morning before you come in

and in the script write this

mail  -s array_drive_status1 < fsck -t file_system      drive one location  such as /dev/sd0
mail  -s array_drive_status2 < fsck -t file_system      drive one location  such as /dev/sd1

it will check the file system for you and give you the report on the drives in the form of an email every morning
better then another process taking cpu time.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12155494
I don't believe this RAID controller will allow the system direct access to the drives. Only the RAID volume(s) will be accessible. To find out if the drives that comprise the RAID volume are healthy requires interrogating the RAID controller.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 3

Author Comment

by:ivyfranklin
ID: 12171442
So is there any way to iterrogate the controller without rebooting the system?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12171765
What model RAID controller is it?
0
 
LVL 3

Author Comment

by:ivyfranklin
ID: 12176784
The motherboard is a Supermicro P4sCi (http://www.supermicro.com/products/motherboard/P4/E7210/P4SCi.cfm).  I believe the controller is an Adaptec ICH5-R / 6300ESB controller.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12180965
Hmm, the 6300ESB is an Intel SATA controller. And a search of Adaptec's site doesn't run up anything for ICH5-R or AAR-ICH. All of the Adaptec RAID products are ID'd with a four-five digit number (e.g., 2410SA, 21610SA, etc). So I don't know what you have.
0
 
LVL 3

Author Comment

by:ivyfranklin
ID: 12182594
I think it is an Intel ICH5 controller, that uses Adaptec technology.  Perhaps the Intel chipset talks to an Adaptec RAID chip on the mother board.  Any more ideas?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 12183739
> Perhaps the Intel chipset talks to an Adaptec RAID chip on the mother board

Nope. That's purely a software RAID implemented by the aarich driver. It might have Adaptec technology in it (algorithms or code).

From what I can find about the aarich driver it doesn't look like there's any way of interrogating the driver as to the health of the volume. Interestingly, I did find a number of articles that suggested that Linux software RAID on SATA drives out performs any of the "winraid" drivers.
0
 
LVL 3

Author Comment

by:ivyfranklin
ID: 12194565
ok thanks.  I am also looking into smartmontools to see if I can get any help there.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question