On Tue, 11 Apr 2000, Paul Lussier wrote:
> Is there a way to probe the SCSI bus under Linux? I know it gets probed
> at boot time, but I need to re-probe periodically after the system's
> booted.
If the root disk is not on the SCSI bus, you can compile the SCSI driver as
a module, and simply unload and then reload it.
If that is not possible (other filesystems mounted on that bus, etc.), you
can look into the "/proc/scsi/scsi" command system. You (as root) can issue
commands to directly the SCSI subsystem to tell it to do things. The ones you
would be interested in are "add-single-device" and "remove-single-device". See
the "scsi.c" file in the kernel source for details. This stuff is rather
bleeding-edge right now. ;-)
If the root disk *is* on the SCSI bus, hot swapping is not recommended, as
Linux bases SCSI device numbers on the order in which it finds the devices.
Having your root partition suddenly change from sdc1 to sdb1 would be a bad
thing. :)
--
Ben Scott <[EMAIL PROTECTED]>
Net Technologies, Inc. <http://www.ntisys.com>
Voice: (800)905-3049 x18 Fax: (978)499-7839
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************