Skip to contentSkip to conversation

raid failure question

DISCUSSION Tim Bock 7 participants 8 messages Jan 11, 2010 – Feb 1, 2010 MD RAID

lore
Share & tools
lore

Tim Bock

author
#0 lore raw

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Tim

#1 lore raw

Voltage spikes, disks heating (monitored by smartd) & sector corruption (monitored by smartd) are what I can think of for the time being.

Quoted 19 lines · Tim Bock

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again.  I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Tim

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
       Majed B.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 3 lines · Majed B.

Voltage spikes, disks heating (monitored by smartd) & sector corruption (monitored by smartd) are what I can think of for the time being.

Would that actually make it so a hot spare wouldn't get used automatically? I thought the point of a hot spare was to take over for a failed disk /no matter what/. Doesn't really make much sense is many of the more common error cases cause a hot spare to be ignored.

Quoted 20 lines · Tim Bock
Quoted 18 lines

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Tim

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thomas Fjellstrom
[email protected]
#3 lore raw
In reply to Tim Bock
Quoted 5 lines · Tim Bock

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

Quoted 7 lines

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Any failure where the disk doesn't actually return an error (within a reasonable time). For example, consumer grade disks often have very long retry times - this can mean the array in unusable for a long time until the disk eventually fails the read.

If the disk actually returns an error then, AFAIK, the RAID array should always be able to recover from it.

Cheers,
Robin

Signature · 4 lines
     ___        
    ( ' }     |       Robin Hill        <[email protected]> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |
#4 lore raw
Quoted 19 lines · Robin Hill
Quoted 5 lines · Tim Bock

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

Quoted 7 lines

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Any failure where the disk doesn't actually return an error (within a reasonable time). For example, consumer grade disks often have very long retry times - this can mean the array in unusable for a long time until the disk eventually fails the read.

Quoted 5 lines

If the disk actually returns an error then, AFAIK, the RAID array should always be able to recover from it.

Cheers,
Robin

The OS will time the disk out at about 30 seconds if it does not answer, and then the disk gets treated as "BAD".

On fiber channel this is a fairly common type of failure, if something fails in the fabric such that the disk can no longer talk to the machine.

author
#5 lore raw

First, thanks for the replies.

The problem is that the drive is not marked as failed by the array, but "something" happens to the drive which drives the load avg to 12+ and makes the array (and server) largely unusable. It is as if the {OS, array} is waiting for something to time out. The first time this happened, there was a "Medium Error" in the log at 2 am (during an rsync backup), and I didn't even know about the problem until 7 am. So it should have had plenty of time to "time out" if it was going to, yes? There was a logged error the second time as well, but I didn't save it before the logs rotated out.

Similarly, upon reboot during this problem, something was happening with the disk which prevented the system from coming up when the array was in the fstab. When I took it out of the fstab, system came up and I was able to manually fail the disk, the array automatically rebuilt with the hot spare, birds started singing, and life went on.

I've replaced the offending disk, but as this has happened twice (with two different disks in a 4+1 array), I'm just trying to figure out what is going on...and more importantly, how I can fix it, if possible. As Thomas implies, the joy of a hot spare is that a disk failure is hopefully transparent to your users...

Thanks for your time,
Tim

Quoted 35 lines · Roger Heflin
Quoted 19 lines · Robin Hill
Quoted 5 lines · Tim Bock

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

Quoted 7 lines

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Any failure where the disk doesn't actually return an error (within a reasonable time). For example, consumer grade disks often have very long retry times - this can mean the array in unusable for a long time until the disk eventually fails the read.

Quoted 5 lines

If the disk actually returns an error then, AFAIK, the RAID array should always be able to recover from it.

Cheers,
Robin

The OS will time the disk out at about 30 seconds if it does not answer, and then the disk gets treated as "BAD".

On fiber channel this is a fairly common type of failure, if something fails in the fabric such that the disk can no longer talk to the machine. --
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Robin Hill
Quoted 16 lines · Robin Hill
Quoted 5 lines · Tim Bock

Hello,

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

Quoted 8 lines

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

Thanks for any comments or suggestions.

Quoted 8 lines

Any failure where the disk doesn't actually return an error (within a reasonable time). For example, consumer grade disks often have very long retry times - this can mean the array in unusable for a long time until the disk eventually fails the read.

If the disk actually returns an error then, AFAIK, the RAID array should always be able to recover from it.

The problem is that the admin should be able to set a timeout after which recovery takes place even if the drive hasn't returned a bad status. And some form of counter could be kept such that after a number of these the drive is failed. There is no solution, Neil says the timeout should be in the driver, the driver writers say that if it hurts md the timeout should be there. Everyone points the finger at some other code and says "there."

This is not lazyness or buck passing, Neil feels that md is not the place, but putting it elsewhere causes other problems. Until someone says "perfect is the enemy of good enough" and puts a timer where it will solve the problem, this behavior will continue.

Signature · 3 lines
Bill Davidsen <[email protected]>
 "We can't solve today's problems by using the same thinking we
  used in creating them." - Einstein
#7 lore raw
In reply to Tim Bock
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Tim Bock
Sent: Monday, January 11, 2010 12:01 PM
To: [email protected]
Subject: raid failure question

Hello,

Quoted 7 lines

Excluding the obvious multi-disk or bus failures, can anyone describe what type of disk failure a raid cannot detect/recover from?

I have had two disk failures over the last three months, and in spite of having a hot spare, manual intervention was required each time to make the raid usable again. I'm just not sure if I'm not setting something up right, or if there is some other issue.

I think you are trying to ask two different questions, here. The
first concerns errors which make an array unrecoverable without intervention by an admin. The second concerns not promoting a hot standby whenever a drive is failed by the array, even though the array itself is automatically recoverable.