Skip to contentSkip to conversation

Spurious HD convictions

DISCUSSION [email protected] 3 participants 6 messages Dec 13, 2009 – Dec 16, 2009 1 message not in the archive MD RAID

lore
Share & tools
lore
#0 lore raw

Hmm. I don't see how it could be either the PS or the PMs, since the drives were moved to a new enclosure when the problem started happening, yet the problem persists. The new chassis has all new PMs and of course a new PS, and the problem is happening across multiple PMs. In addition, if NCQ is the problem, why has it just started happening? This system has been up and running for the better part of a year. Regardless, I have disabled NCQ by executing echo 1 > /sys/block/sd[a-g]/device/queue_depth, and I am attempting a repair action again. We'll see how it goes.

Quoted 33 lines

Hi Leslie,

According to some of the links here:
http://www.google.com/search?hl=en&q=failed+to+read+SCR+1+(Emask%3D0x40)

It seem to be either the Power Supply Unit (PSU) or the Port Multiplier (PM).

A quick workaround seem to be disabling NCQ on all affected devices.

Quoted 2 lines · On Sun, Dec 13, 2009 at 5:02 AM, [email protected] <[email protected]>…

What's happening here? Suddenly, my backup server is suffering

apparently

Quoted 2 lines

spurious hard drive convictions. The server is running RAID5 on 7 disks under md. It has been running well for months, but suddenly it has

started

Quoted 2 lines

kicking drives from the array when under moderately heavy read or write loads. The thing is, it isn't convicting any particular drive

repeatedly,

Quoted 1 line

and the drives are not showing any errors under SMART. This is a PM

system,

Quoted 2 lines

and I have tried changing the drive adapters, changing the PMs, changing cables, moving the drives around, and moving them out of the CPU

enclosure to

Quoted 2 lines

a new external chassis. The convictions are not occurring on any one channel, over any one particular PM, or over any particular cable.

Since

Quoted 2 lines

this started happening, I have been unable to get all the way through a resync before the array dumps at least one of the drives. Here is a

sample

Quoted 1 line

from the kernel log during one of the convictions:

#1 lore raw

Hi Leslie,

I was wondering if you were able to stop the weird behavior with your disks.

Quoted 47 lines · On Sun, Dec 13, 2009 at 6:44 AM, [email protected] <[email protected]>…

Hmm.  I don't see how it could be either the PS or the PMs, since the drives were moved to a new enclosure when the problem started happening, yet the problem persists.  The new chassis has all new PMs and of course a new PS, and the problem is happening across multiple PMs.  In addition, if NCQ is the problem, why has it just started happening?  This system has been up and running for the better part of a year.  Regardless, I have disabled NCQ by executing echo 1 > /sys/block/sd[a-g]/device/queue_depth, and I am attempting a repair action again.  We'll see how it goes.

Quoted 25 lines

Hi Leslie,

According to some of the links here:
http://www.google.com/search?hl=en&q=failed+to+read+SCR+1+(Emask%3D0x40)

It seem to be either the Power Supply Unit (PSU) or the Port Multiplier (PM).

A quick workaround seem to be disabling NCQ on all affected devices.

Quoted 2 lines · On Sun, Dec 13, 2009 at 5:02 AM, [email protected] <[email protected]>…

       What's happening here?  Suddenly, my backup server is suffering

apparently

Quoted 2 lines

spurious hard drive convictions.  The server is running RAID5 on 7 disks under md.  It has been running well for months, but suddenly it has

started

Quoted 2 lines

kicking drives from the array when under moderately heavy read or write loads.  The thing is, it isn't convicting any particular drive

repeatedly,

Quoted 1 line

and the drives are not showing any errors under SMART.  This is a PM

system,

Quoted 2 lines

and I have tried changing the drive adapters, changing the PMs, changing cables, moving the drives around, and moving them out of the CPU

Quoted 8 lines

enclosure to

Quoted 2 lines

a new external chassis.  The convictions are not occurring on any one channel, over any one particular PM, or over any particular cable.

 Since

Quoted 2 lines

this started happening, I have been unable to get all the way through a resync before the array dumps at least one of the drives.  Here is a

sample

Quoted 1 line

from the kernel log during one of the convictions:

--
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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

As far as I know, the numbers in between define the queue depth of commands sent to the disks.

It's a matter of whether you want the disk(s) firmware to manage sorting & executing the commands (when the queue is > 1) or not. In all cases, as far as I know, the kernel does the sorting before sending the commands to the disk(s). So if you notice better performance (when the array is stable) with the queue=1, then keep it that way.

Quoted 13 lines · Leslie Rhorer
Quoted 4 lines

Hi Leslie,

I was wondering if you were able to stop the weird behavior with your disks.

       It seems to have done so, yes.  I've looked around the web trying to find some additional info, but I've come up empty handed.  Perhaps someone here can answer at least one of my questions?  I know that putting a value of 32 into /sys/block/<driveID>/device/queue_depth fully enables NCQ, and putting a value of 1 there disables NCQ.  What do all the numbers in between do?

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
#4 lore raw
Quoted 5 lines

As far as I know, the numbers in between define the queue depth of commands sent to the disks.

It's a matter of whether you want the disk(s) firmware to manage sorting & executing the commands (when the queue is > 1) or not.

Well, what I am wondering is whether or not some value higher than 1
might produce better performance without risking the error.

Quoted 4 lines

all cases, as far as I know, the kernel does the sorting before sending the commands to the disk(s). So if you notice better performance (when the array is stable) with the queue=1, then keep it that way.

Definitely not, it seems. At least for the resync, turning off NCQ
dropped the read rate from 35 MBps per drive to 25 MBps per drive.

#5 lore raw
In reply to Majed B.
Quoted 4 lines

Hi Leslie,

I was wondering if you were able to stop the weird behavior with your disks.

It seems to have done so, yes. I've looked around the web trying to
find some additional info, but I've come up empty handed. Perhaps someone here can answer at least one of my questions? I know that putting a value of 32 into /sys/block/<driveID>/device/queue_depth fully enables NCQ, and putting a value of 1 there disables NCQ. What do all the numbers in between do?

#6 lore raw
Quoted 7 lines · Leslie Rhorer

It seems to have done so, yes. I've looked around the web trying to
find some additional info, but I've come up empty handed. Perhaps someone here can answer at least one of my questions? I know that putting a value of 32 into /sys/block/<driveID>/device/queue_depth fully enables NCQ, and putting a value of 1 there disables NCQ. What do all the numbers in between do?

I believe the value sets the allowed queue length. A value of 1 thus effectively disables queueing. Most ATA drives have a maximum queue depth of 32 so this is usually set for fully enabling it (though I believe it's recommended only to use 31 - this seems to be the default). If you set it to 32 and the drive has a shorter maximum queue, the kernel will use the drive's maximum instead.

Setting any value is permitted, there's just generally little point in doing so.

Cheers,
Robin

Signature · 4 lines
     ___        
    ( ' }     |       Robin Hill        <[email protected]> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |