LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-08-2003, 09:11 PM   #1
ckoczan
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
ckoczan
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 - -
 
  


Reply


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


All times are GMT -5. The time now is 08:40 AM.

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