Re: rescan scsi

Richard B. Johnson (root@analogic.com)
Fri, 20 Jun 1997 11:10:21 -0400 (EDT)


On Fri, 20 Jun 1997, Peter Svensson wrote:

> On Fri, 20 Jun 1997, Lauri Tischler wrote:
>
> > If I plug a new diskdrive into a scsicontroller on a live system, how
> > do I get the drive to be identified (as /dev/sdx or such) without
> > rebooting the bloody box ?
>
> echo "scsi add-single-device 0 0 1 0" > /proc/scsi/scsi
>
> will reprobe Card 0, Channel 0, Device 1, Lun 0, and add it if it is
> found.
>
> Peter
>

Yikes! I was not aware that this was in the kernel. I sure hope there
is a disclaimer associated with this when one of the SCSI device bits is
pulling and another is pushing. You really should not disconnect or
connect a SCSI device when it is power up!

Cheers,
DJ
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Analogic Corporation
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.42 on an i586 machine (66.15 BogoMips).
Warning : It's hard to stay on the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-