[7833] in linux-scsi channel archive
Re: rescan devices command?
daemon@ATHENA.MIT.EDU (Matthias Andree)
Sat Jan 15 20:39:35 2000
To: "casler, heather" <casler_heather@emc.com>
Cc: 'linux-scsi' <linux-scsi@vger.rutgers.edu>
In-Reply-To: "casler, heather"'s message of "Fri, 14 Jan 2000 14:17:39 -0500"
From: Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
Date: 15 Jan 2000 13:20:50 +0100
Message-ID: <m3puv3mspp.fsf@emma1.emma.line.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
"casler, heather" <casler_heather@emc.com> writes:
> Hello,
> Is there a command that will rescan the devices out on the SCSI bus? In
> short, I have a system attached to an external storage box with multiple
> devices in it. I wanted to be able to add additional devices and try to
> rescan the bus without having to reboot. Is there a simple command that will
> allow me to do that?
You can either (as root) send commands to /proc/scsi/scsi (you have
/proc support in your kernel, don't you?) like this:
echo "scsi add-single-device 0 0 3 0" >/proc/scsi/scsi
Numbers are Host Channel Id LUN in that order. This one would add SCSI
ID #3 LUN #0 at the first ("0") channel of the first SCSI adaptor (given
it's connected and switched on). dmesg and /proc/scsi are your friends.
or you can compile your SCSI driver as a module, unload and reload it,
provided you don't need the driver to boot and you don't have other
devices driven by that same driver which need to be mounted
permanently.
Mind the bus termination when playing with external hardware!
--
Matthias Andree
Hi! I'm the infamous .signature virus!
Copy me into your ~/.signature to help me spread!
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu