LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* scsi: Devices offlined
@ 2007-03-21 0:48 Wakko Warner
2007-03-21 1:43 ` Philippe Troin
0 siblings, 1 reply; 3+ messages in thread
From: Wakko Warner @ 2007-03-21 0:48 UTC (permalink / raw)
To: linux-kernel
[84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error recovery
Is there anyway to make the kernel "online" a device that has done this?
I've had this happen on various devices (mostly on usb where I can
unplug/replug), but this time, it's on a scsi controller and the driver is
not a module.
If it's possible to do this w/o rebooting, I'd like to know for when I have
this happen in the future.
If it matters, the driver is aic79xx, kernel 2.6.20.
--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scsi: Devices offlined
2007-03-21 0:48 scsi: Devices offlined Wakko Warner
@ 2007-03-21 1:43 ` Philippe Troin
2007-03-21 2:15 ` Wakko Warner
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Troin @ 2007-03-21 1:43 UTC (permalink / raw)
To: Wakko Warner; +Cc: linux-kernel
Wakko Warner <wakko@animx.eu.org> writes:
> [84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error recovery
>
> Is there anyway to make the kernel "online" a device that has done this?
> I've had this happen on various devices (mostly on usb where I can
> unplug/replug), but this time, it's on a scsi controller and the driver is
> not a module.
>
> If it's possible to do this w/o rebooting, I'd like to know for when I have
> this happen in the future.
Have you tried:
echo remove-single-device BUS ID LUN > /proc/scsi
echo add-single-device BUS ID LUN > /proc/scsi
?
Phil.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scsi: Devices offlined
2007-03-21 1:43 ` Philippe Troin
@ 2007-03-21 2:15 ` Wakko Warner
0 siblings, 0 replies; 3+ messages in thread
From: Wakko Warner @ 2007-03-21 2:15 UTC (permalink / raw)
To: Philippe Troin; +Cc: linux-kernel
Philippe Troin wrote:
> Wakko Warner <wakko@animx.eu.org> writes:
>
> > [84797.683873] sr 1:0:13:0: scsi: Device offlined - not ready after error recovery
> >
> > Is there anyway to make the kernel "online" a device that has done this?
> > I've had this happen on various devices (mostly on usb where I can
> > unplug/replug), but this time, it's on a scsi controller and the driver is
> > not a module.
> >
> > If it's possible to do this w/o rebooting, I'd like to know for when I have
> > this happen in the future.
>
> Have you tried:
>
> echo remove-single-device BUS ID LUN > /proc/scsi
> echo add-single-device BUS ID LUN > /proc/scsi
I tried:
echo "scsi remove-scingle-device 1 0 13 0" > /proc/scsi/scsi
<device removed from /proc/scsi/scsi list>
echo "scsi add-scingle-device 1 0 13 0" > /proc/scsi/scsi
<device does not show up in /proc/scsi/scsi list>
I also tried your method, which just gives invalid argument (using
/proc/scsi/scsi, since /proc/scsi is a directory)
According to scsi_proc.c:
/*
* Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
*/
/*
* Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
*/
Either way, nothing.
Er, on second though, I actually unplugged the power from the scsi device
and replugged it and it shows up now. Oh well.. Thanks anyway =)
--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-21 2:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-21 0:48 scsi: Devices offlined Wakko Warner
2007-03-21 1:43 ` Philippe Troin
2007-03-21 2:15 ` Wakko Warner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).