Does anybody know with Redhat 7.1 (using 2.4.2-2) if theirs a way to force the scsi chain to rescan its bus (without an unload/reload) of the module? so far, I haven't found something like HPUX's ioscan. Thanks, Tim.
On Wed, Nov 28, 2001 at 01:50:01PM -0500, Keller, Tim wrote: Tim.Keller> Does anybody know with Redhat 7.1 (using 2.4.2-2) if theirs a way to force Tim.Keller> the scsi chain to rescan its bus (without an unload/reload) of the module?
On Wed, Nov 28, 2001 at 01:50:01PM -0500, Keller, Tim wrote:
Does anybody know with Redhat 7.1 (using 2.4.2-2) if theirs a way to force the scsi chain to rescan its bus (without an unload/reload) of the module?
so far, I haven't found something like HPUX's ioscan.
Unless something's changed, Linux doesn't have the capability to do that yet (the last time I checked, there needs to be some extra functionality added to the kernel SCSI code). Whenever I had to add a device live, there's a thing with /proc/scsi/scsi that you can do (this is from the SCSI Programming HOWTO): Dynamically insert and remove SCSI devices If a newer kernel and the /proc file system is running, a non-busy device can be removed and installed 'on the fly'. To remove a SCSI device: echo "scsi remove-single-device a b c d" > /proc/scsi/scsi and similar, to add a SCSI device, do echo "scsi add-single-device a b c d" > /proc/scsi/scsi where a == hostadapter id (first one being 0) b == SCSI channel on hostadapter (first one being 0) c == ID d == LUN (first one being 0) There's also a script which tries to automate this kind of stuff: http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh I've never tried it, but I've seen it mentioned on a few mailing lists that I monitor. -- Randomly Generated Tagline: "Does anyone not understand what the hell is going on?" - Prof. Bagchi
participants (3)
-
Charles R . Anderson
-
Keller, Tim
-
Theo Van Dinter