mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Slootman <paul+nospam@wurtel.net>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] SCSI disk won't spinup, so boot hangs
Date: Tue, 18 Jul 2006 12:47:16 +0000 (UTC)	[thread overview]
Message-ID: <e9il8k$n71$1@news.cistron.nl> (raw)
In-Reply-To: <20060712144848.GD7328@harddisk-recovery.com>

Erik Mouw  <erik@harddisk-recovery.com> wrote:
>On Wed, Jul 12, 2006 at 04:14:41PM +0200, Paul Slootman wrote:
>> I was recently confronted by a SCSI disk that had crashed somehow
>> ("mechanical positioning error" during the first signs of trouble). The
>> kernel hung after that, despite the fact that everything was on RAID-1
>> and the first disk still was working...
>
>Sounds like a worn bearing or a head crash.

Probably a head crash, this was a 5 month old 15krpm 73GB scsi disk.

>> I reasoned that if the spinup fails, it doesn't make much sense to try
>> and read the capacity, the partition tables, etc..  Hence I came up with
>> the patch below that sets media_present to 0 when the spinup doesn't
>> respond. It works for me (TM); there may be a better way, however the
>> current behaviour sucks big time.
>
>I've seen disks where the 100s timeout is not enough and which only
>came into a useful state after 10 minutes or even longer. Your patch

I'd consider disks that take 10 minutes or more to become ready
extremely obsolete :-)

>would make those disks useless, even though they can be used. Also I'm

Not really, wait your 10 minutes, echo "scsi remove-single-device a b c
d" > /proc/scsi/scsi; echo "scsi add-single-device a b c d" >
/proc/scsi/scsi; and there it is.

>not sure your patch is the right approach: a disk doesn't have
>removable media and yet it reports that there's no media present.

For all intents and purposes, the media isn't there...
Do you really think that the current behaviour (wait until eternity for
the drive to become ready on read capacity) to be the correct behaviour?
If so, why bother with the delay (of max. 100s) until spinup? Simply
issue the spinup command, and start trying to read the capacity would be
enough then.


Paul Slootman


      reply	other threads:[~2006-07-18 12:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 14:14 Paul Slootman
2006-07-12 14:48 ` Erik Mouw
2006-07-18 12:47   ` Paul Slootman [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='e9il8k$n71$1@news.cistron.nl' \
    --to=paul+nospam@wurtel.net \
    --cc=linux-kernel@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

Powered by JetHome