From: Douglas Gilbert <dougg@torque.net>
To: "Heinz, Michael" <mheinz@infiniconsys.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: HBA switching devices online status...
Date: Tue, 16 Apr 2002 09:08:47 -0400 [thread overview]
Message-ID: <3CBC225F.D75E55B4@torque.net> (raw)
In-Reply-To: 08628CA53C6CBA4ABAFB9E808A5214CB0C4D1F@mercury.infiniconsys.com
"Heinz, Michael" wrote:
>
> If the SCSI midlayer flags a device as offline due to errors, is there
> any way to restore the device once the errors have been resolved?
>
> I'm interested in either manual or automatic (i.e., in the driver)
> solutions. Looking through the source for different HBAs I didn't see
> any obvious hints.
Michael,
It has been suggested that the following sequence will work:
echo "scsi remove-single-device <h> <b> <t> <l>" > /proc/scsi/scsi
echo "scsi add-single-device <h> <b> <t> <l>" > /proc/scsi/scsi
where the host, bus, target, lun (parameters above respectively)
are obtained from "cat /proc/scsi/scsi". BTW you can see the state
of the online flag with "cat /proc/scsi/sg/devices" (last column).
My scsimon driver has an ioctl to turn it back on.
There is nothing stopping your HBA driver from setting the
online flag in the Scsi_device structure.
Doug Gilbert
next prev parent reply other threads:[~2002-04-16 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 15:54 HBA switching devices online status Heinz, Michael
2002-04-16 13:08 ` Douglas Gilbert [this message]
2002-04-16 13:22 ` Michael Heinz
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=3CBC225F.D75E55B4@torque.net \
--to=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=mheinz@infiniconsys.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.