Re: How to rescan scsi bus

Trevor Johnson (trevor@jpj.net)
Tue, 28 Jul 1998 01:33:06 -0400 (EDT)


Xia Hao wrote:

> Hi there,
>
> i need to add a few scsi disks on a production system and i don't wish
> to take it down. is there any magic in /proc/scsi that i can use to
> rescan the scsi bus? i'm not on the list so please reply to me
> personally.

This should be in the FAQ. The text below is from drivers/scsi/scsi.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".
* Consider this feature BETA.
* CAUTION: This is not for hotplugging your peripherals. As
* SCSI was not designed for this you could damage your
* hardware !
* However perhaps it is legal to switch on an
* already connected device. It is perhaps not
* guaranteed this device doesn't corrupt an ongoing data transfer.
*/

For a typical discussion of this topic, see
http://jpj.net/~trevor/linux/rescan_scsi.txt.gz.
___
Trevor Johnson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html