[QCLUG] SCSI issue
Steve Langasek
vorlon@dodds.net
Tue, 21 Apr 2009 16:55:43 -0700
On Tue, Apr 21, 2009 at 11:23:51AM -0500, Jim Hall wrote:
> I have a scanner attached to an Adaptec card. Only use scanner on average
> twice a month for about 15 minutes, off and disconnedted from the card the
> rest of the time. Most of the time after connecting the scanner back to the
> card and powering it up I have to reboot for the card to be recognised
> again. I've searched the repositories with every term I can think of. Tools
> for working with the bus - yes. Working with the card - no. All I really
> want to do is be able to restart the card similar to start/stop the NIC.
> Command line, something.
keywords: "rescan scsi bus"
If you install the scsitools package, it comes with a tool called
rescan-scsi-bus.sh that will (at least in theory) let you do exactly this.
I'm assuming you don't need to scan LUNs or channels, just devices, so
something like:
rescan-scsi-bus.sh -r
before you connect the scanner, and again when you unplug it and are done
with it, should do the trick. If it doesn't, throw an extra "-w" option on
there and try again.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org