linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Andrew Paprocki <andrew@ishiboo.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: Permanent disk shutdown instead of soft/hard reset?
Date: Tue, 23 Oct 2007 17:18:00 +0900	[thread overview]
Message-ID: <471DAE38.6070906@gmail.com> (raw)
In-Reply-To: <76366b180710101712j177e17beqa244226420722a5a@mail.gmail.com>

Andrew Paprocki wrote:
> I'm currently running into a situation where I have 4 SATA drives in a
> striped array where one of the drives is failing (/ has failed). The
> single drive failure manifests itself as ext3 errors and libata SCSI
> media errors which occur non-stop as software attempts to read/write
> to the mounted array. Because libata is seeing media errors, the bad
> drive endlessly soft resets while the software is still running and
> attempting to access the drive. This winds up hanging the entire
> system because the software (consider it a 'find' command running on
> the drive) occurs in the init.d boot scripts. The end result is that a
> login prompt is never reached until the software finishes what it is
> doing and hours of soft resets have occurred.
> 
> Is there any way that this behavior can be stopped by permanently
> disconnecting the drive after a configurable number of errors that
> would otherwise soft reset? Does the layer allow for the concept of a
> full disk shutdown rather than a reset? I assume this would have to
> forcefully unmount any active mounts which use the drive/array to
> ensure that no subsequent cmds would cause libata to attempt to
> reconnect to the bad drive(s). Is this even possible?

If it's a RAID array, that's the job of md (or dm).  If it isn't a RAID
array, giving up on the drive doesn't really help anybody.  As long as
the drive is up and willing to talk, libata talks to the drive as
requested by upper layers.

-- 
tejun

      reply	other threads:[~2007-10-23  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11  0:12 Permanent disk shutdown instead of soft/hard reset? Andrew Paprocki
2007-10-23  8:18 ` Tejun Heo [this message]

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=471DAE38.6070906@gmail.com \
    --to=htejun@gmail.com \
    --cc=andrew@ishiboo.com \
    --cc=linux-ide@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).