From: Mike Anderson <andmike@us.ibm.com>
To: "Cameron, Steve" <Steve.Cameron@hp.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] 2.5.65, cciss_scsi, scsi error handling
Date: Wed, 19 Mar 2003 12:32:09 -0800 [thread overview]
Message-ID: <20030319203209.GA3241@beaverton.ibm.com> (raw)
In-Reply-To: <45B36A38D959B44CB032DA427A6E106404513385@cceexc18.americas.cpqcorp.net>
Cameron, Steve [Steve.Cameron@hp.com] wrote:
> Anyway, I talked this (doing aborts and device resets)
> over with the firmware guys here, they seemed be of the
> opinion (off the top of their heads) that aborting commands and
> so on in the face of timeouts generally tends to make things worse,
> not better, but said it wouldn't really hurt. (especially I was
> worried about i/o the array controller was doing to disks on the
> same bus as the tape drive, disks of which linux knows nothing.)
>
The key thing the SCSI mid needs is the command canceled to ensure that
the LLDD will not reference the scsi_cmnd anymore. Secondary it would be
nice if the BDR got the device sane again, but the probability is low
in response to a timeout that this would be the case.
> Hmm. If the tape drive were set off line, I wonder could I hot
> plug it to get it back?
>
> e.g.
> echo scsi revmove-single-device 0 0 0 0 > /proc/scsi/scsi
> (physically hot unplug tape drive)
> echo rescan > /proc/scsi/cciss1/1
> (physically hot re-plug tape drive)
> echo rescan > /proc/scsi/cciss1/1
> echo scsi add-single-device 0 0 0 0 > /proc/scsi/scsi
If the device is ok and all you want is to set the online flag you
can:
echo 1 > /sys/bus/scsi/devices/0:1:15:0/online
YMMV :-).
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2003-03-19 20:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 23:22 [PATCH] 2.5.65, cciss_scsi, scsi error handling Cameron, Steve
2003-03-18 23:34 ` Doug Ledford
2003-03-19 20:32 ` Mike Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-18 10:06 Stephen Cameron
2003-03-18 22:13 ` James Bottomley
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=20030319203209.GA3241@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=Steve.Cameron@hp.com \
--cc=linux-scsi@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