linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
To: Chris Walker <cwalker@cray.com>,
	"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: FW: change in disk failure policy for non-BBL arrays?
Date: Mon, 6 Nov 2017 09:14:53 +0100	[thread overview]
Message-ID: <a19fee9c-71bc-6c58-3730-baf24f051468@intel.com> (raw)
In-Reply-To: <294F8C1D-AFB2-4445-9F7B-18D761A6D846@cray.com>

On 11/03/2017 08:58 PM, Chris Walker wrote:
> Hello,
> I was looking at this again today and it appears that with this change, error handling no longer works correctly in RAID10 (I haven't checked the other levels yet).  Without a BBL configured, an error cycles through fix_read_error until max_read_errors is exceeded, and only then is the drive kicked out of the array.  For example, if I inject errors in response to both read and write commands at sector 16392 of /dev/sda, logs in response to a read of the corresponding md0 sector look like:
>  
> (many repeats)
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: unable to read back corrected sectors (8 sectors at 16392 on sda)
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: sda: failing drive
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: read correction write failed (8 sectors at 16392 on sda)
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: sda: failing drive
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: unable to read back corrected sectors (8 sectors at 16392 on sda)
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: sda: failing drive
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: sda: Raid device exceeded read_error threshold [cur 21:max 20]
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: sda: Failing raid device
> Oct 27 16:15:16 c1 kernel: md/raid10:md0: Disk failure on sda, disabling device.
> 
> Previously, the drive would have been failed out of the array by the call of md_error at the end of r10_sync_page_io.
> 
> Is there an appetite for a patch that takes the easy way out by reverting to the previous behavior with changes like
> 
> -       if (!rdev_set_badblocks(rdev, sector, sectors, 0))
> +       if (!rdev_set_badblocks(rdev, sector, sectors, 0) || rdev->badblocks.shift < 0)

Hi,

Some time ago I sent a patch that fixed this issue but now I see that it
never got applied:
https://marc.info/?l=linux-block&m=145986120124345&w=2. I'll resend it
and hopefully it gets applied this time.

Thanks,
Artur

  parent reply	other threads:[~2017-11-06  8:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-23 21:23 change in disk failure policy for non-BBL arrays? Chris Walker
2017-11-03 19:58 ` FW: " Chris Walker
2017-11-03 20:19   ` Sarah Newman
2017-11-03 21:59     ` Chris Walker
2017-11-06  8:14   ` Artur Paszkiewicz [this message]
2017-11-06  8:26     ` Artur Paszkiewicz
2017-11-06 13:42     ` Chris Walker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a19fee9c-71bc-6c58-3730-baf24f051468@intel.com \
    --to=artur.paszkiewicz@intel.com \
    --cc=cwalker@cray.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).