public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* HBA switching devices online status...
@ 2002-04-15 15:54 Heinz, Michael
  2002-04-16 13:08 ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Heinz, Michael @ 2002-04-15 15:54 UTC (permalink / raw)
  To: linux-scsi

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.

--
Now, where is that clue? I know I had one a minute ago....
--
mheinz@infiniconsys.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HBA switching devices online status...
  2002-04-15 15:54 HBA switching devices online status Heinz, Michael
@ 2002-04-16 13:08 ` Douglas Gilbert
  2002-04-16 13:22   ` Michael Heinz
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2002-04-16 13:08 UTC (permalink / raw)
  To: Heinz, Michael; +Cc: linux-scsi

"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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HBA switching devices online status...
  2002-04-16 13:08 ` Douglas Gilbert
@ 2002-04-16 13:22   ` Michael Heinz
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Heinz @ 2002-04-16 13:22 UTC (permalink / raw)
  To: Douglas Gilbert; +Cc: linux-scsi

Douglas Gilbert wrote:

>
>There is nothing stopping your HBA driver from setting the
>online flag in the Scsi_device structure.
>
>Doug Gilbert
>
Doug,

Thanks - my main concern was that non of the drivers in drivers/scsi 
actually do that - I was worried that that meant setting the flag was a 
Bad Thing. :-P

-- 
knock knock.

Michael Heinz <mheinz@infiniconsys.com>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-16 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-15 15:54 HBA switching devices online status Heinz, Michael
2002-04-16 13:08 ` Douglas Gilbert
2002-04-16 13:22   ` Michael Heinz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox