LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2009, 08:16 PM   #1
Marjonel Montejo
LQ Newbie
 
Registered: Sep 2009
Location: Hamilton, New Zealand
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed


Problem Description: mdadm does not update the /proc/mdstat when a drive fails or removed for RAID 0 case. When mdadm --detail /dev/md0 is executed, the information is not updated. It is as if there were no drive failures or drive removal.

I have tried testing drive fail/drive removal for RAID 5 and /proc/mdstat and mdadm --detail returns the expected result (it is displayed in /proc/mdstat that the drive failed).

I would like to ask why the behavior of drive failure/drive removal is not as expected in RAID 0 case.

Ideas deeply appreciated.
 
Old 09-30-2009, 08:27 PM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
My suspicion is that this is because a RAID0 can suffer no failures.

When one disk of a RAID1 or RAID5 fails, the remaining drives continue operating normally. But as soon as one drive of a RAID0 fails, Linux can no longer perform any operations on the array.

If Linux does nothing, instead of marking the drive as failed, then there is a chance you can repair/replace/recover the failed drive and restart the array.
 
Old 09-30-2009, 10:23 PM   #3
Marjonel Montejo
LQ Newbie
 
Registered: Sep 2009
Location: Hamilton, New Zealand
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply.

If this is the case, how can the user check what drive failed or confirm the status of the RAID 0 when either one of its drives fails? Is there a way wherein a DeviceDisappeared event or Fail event will be sent through mdadm --monitor --mail when a RAID 0 mdadm array fails or a way wherein the /proc/mdstat file will be updated?
I am using mdadm v2.6.7.1 (ubuntu distribution)
 
Old 10-01-2009, 09:20 AM   #4
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
Yes, you're exactly right. Running mdadm in monitor mode should produce a DeviceDisappeared event. See this section of the man page:


http://man-wiki.net/index.php/8:mdadm#MONITOR_MODE
 
Old 10-04-2009, 06:15 PM   #5
Marjonel Montejo
LQ Newbie
 
Registered: Sep 2009
Location: Hamilton, New Zealand
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks. Got the DeviceDisappeared working.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID mdadm - Sending E-Mails on RAID Failure? rootking Linux - General 1 12-25-2007 03:59 AM
replace failure disk and rebuild RAID with mdadm ufmale Linux - Software 0 11-15-2007 02:24 PM
RAID-1 with mdadm. Disk fails sometime. jostmart Linux - Server 5 08-15-2007 05:13 AM
Major problem with software raid (mdadm) and disk failure norwolf Linux - Server 8 07-27-2007 06:14 AM
Software Raid Setup Ok - Reboot fails on disk failure test ikke Linux - General 2 05-11-2003 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:52 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
Open Source Consulting | Domain Registration