Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-08-2003, 09:11 PM   #1
LQ Newbie
Registered: Mar 2003
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Software RAID status

I have a system running Slackware 9.0 (2.4.20 kernel). I have a RAID1 running on two drives. I want to check for the status of the array, but when I cat /proc/mdstat I get the same response when both drives are running, and when I "fail" one of the drives (kill power to the drive). What can I check to determine the health of the two drives in the array?? I want to awk and sed in order to automatically generate an email on failure of one of the drives.

Thanks in advance for you help.
Old 09-09-2003, 05:06 PM   #2
LQ Newbie
Registered: Mar 2003
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
OK - here's one way -
the command lsraid will report the status of the array.

lsraid -A -a /dev/md? will report status of the array and each component
lsraid -A -f -a /dev/md? (where ? is your raid device)
reports only failed drives.

Thanks - -


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Checking RAID status on Dell / MegaRAID MadRabbit Slackware 9 10-08-2009 06:01 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 01:33 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 10:34 AM
Monitor dpt_i2o RAID status wdingus Linux - Hardware 0 11-30-2002 01:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration