[4976] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Howto: rescan scsi bus after a hot swap ??

daemon@ATHENA.MIT.EDU (Hardware Stuff)
Fri Oct 23 03:48:15 1998

Date: 	Fri, 23 Oct 1998 00:46:22 -0700
From: Hardware Stuff <mrfixit@clouddancer.com>
To: chrisa@ultranet.com
CC: linux-scsi@vger.rutgers.edu, ncr53c810@Colorado.EDU
In-reply-to: <Pine.LNX.4.05.9810222019260.6133-100000@chris.atenasio.net>
	(message from Chris Atenasio on Thu, 22 Oct 1998 20:22:55 -0400 (EDT))
Reply-to: mrfixit@clouddancer.com

   From: Chris Atenasio <chrisa@ultranet.com>

   On Thu, 22 Oct 1998, Hardware Stuff wrote:
   > Is there a simple command (or even a tough one) to rescan the bus to
   > determine the new ID, etc?  I've seen such a program on Macintoshes,
   > so surely Linux....

   But of course!  This is Linux we're talking about! :)

   >From /usr/src/linux/drivers:

       /*
	* 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.


Hmm, I just read my controller's README...missed that.

Plot Complications:  The Mac program I'm referring to didn't need to
know squat...and I didn't happened to look at the ID settings either
(it's on the unused bus of a dual controller).

Now, I know it's possible, since the latest RAID5 can perform a hot
reconstruction even when the drive devices reshuffle.  I also wonder
how to use the above method when I remove a drive and replace it with
a different sized drive at the same ID.

TIA.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post