public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: Random scsi disk disappearing
Date: Thu, 17 Aug 2006 05:35:37 -0600	[thread overview]
Message-ID: <20060817113537.GK4340@parisc-linux.org> (raw)
In-Reply-To: <44E44B3E.10708@tls.msk.ru>

On Thu, Aug 17, 2006 at 02:55:58PM +0400, Michael Tokarev wrote:
> From time to time, an scsi disk just disappears from
> the bus, without any [error] messages whatsoever.
> The only relevant stuff in dmesg is logging from md
> (softraid) layer, about "error updating superblock"
> and later "giving up and removing the disk from the
> array" - not even error number.
> 
> When I try to access such a disk (/dev/sdX device),
> I got "No such device or address" error back.
> 
> It's still listed in /sys/block and /proc/scsi/scsi,
> but any access to the device gives this error.
> 
> But the disk is here, I know it is.  Deleting it from
> kernel:
> 
>   echo y > /sys/block/sdX/device/delete
> 
> and adding it back:
> 
>   echo scsi add-single-device x y z > /proc/scsi/scsi
> 
> works just fine, linux finds "new" scsi device and it
> happily works again.
> 
> This happens on alot of different machines, with different
> disk drives (ok, most of them are from Seagate, but not
> all).  I can't say for sure that it happens on different
> scsi controllers - at least majority of them are adaptecs,
> using aic7xxx or aix79xx driver.
> 
> I suspected the disks are too hot - nope, according to
> smartctrl, the themp is far from bad (typically about
> 25..35 Celsius, and the themperature is not changing much).
> Bad cables, bad power supply, bad anything else?  Not sure
> either, at least I can't guess more: the machines are
> really different, some has good, under-loaded power supplies
> (and server chassis/motherboards/allthestuff) some has less
> good ones - makes no difference.  And the thing is - having
> in mind really sporadic disappearing, not depending on current
> load, time of day (eg, during nights, there's no one on site
> so no one to touch cables etc), ...  Well, I just can't think
> of any reason, at all.
> 
> But one thing bothers me most: there's NO LOGGING from scsi
> layer.  None, zero, not at all.
> 
> Has anyone else seen something similar?  Any pointers on how
> to debug the issue?

I'd recommend turning on scsi logging; it might give you a clue about
which bit of scanning is failing to work properly.

Try booting with scsi_mod.scsi_logging_level = 448 (I think I have that
number right; 7 shifted left by 6) and then you can compare failing and
non-failing runs and see if there's any difference.

  reply	other threads:[~2006-08-17 11:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 10:55 Random scsi disk disappearing Michael Tokarev
2006-08-17 11:35 ` Matthew Wilcox [this message]
2006-08-17 11:43   ` Michael Tokarev
2006-08-17 11:53     ` Matthew Wilcox
2006-08-17 13:41       ` Jan Engelhardt
2006-08-17 16:48         ` Andreas Herrmann
2006-08-17 22:33           ` Stefan Richter
2006-08-30 19:40     ` Michael Tokarev
  -- strict thread matches above, loose matches on Subject: below --
2006-08-18  9:11 Andreas Herrmann

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=20060817113537.GK4340@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /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