[4981] 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 (Richard Gooch)
Fri Oct 23 08:18:15 1998

Date: 	Fri, 23 Oct 1998 22:16:13 +1000
From: Richard Gooch <rgooch@atnf.csiro.au>
To: mrfixit@clouddancer.com
Cc: Chiaki.Ishikawa@personal-media.co.jp, linux-scsi@vger.rutgers.edu,
        ncr53c810@Colorado.EDU
In-Reply-To: <199810231113.EAA00160@lennie.clouddancer.com>

Hardware Stuff writes:
>    Another thing that may complicate the procedure is what happens to the
>    /dev/sdX name assigned to the original disk.  Say, in the step 4, is
>    the newly added disk given the SAME /dev/sdX name or the next
>    available name /dev/sdX'?
> 
>    Eg. If the original disk was /dev/sdb,
>    do we get /dev/sdb for the new disk, or do we get 
>    the next free name, say, /dev/sdd if we already have /dev/sda,
>    /dev/sdb, and /dev/sdc and have just removed the /dev/sdb in step 2?.
> 
>    Naturally, we want the same name, say /dev/sdb in the above example.
>    But who knows?
> 
> And the answer is: when it's the last drive, the new drive gets the
> old drive id.  Alas, I only have two drives in the system just now
> (not the normal 5-6), so I don't really know what happens when the
> swapped drive is in the middle.  My guess would be that the ids stay
> stable, but that's a SWAG.
> 
> Plus, I'm sure that the devfs users would just in an point out that
> their system solves this problem.

You get sensible behaviour for free with devfs :-)
See: http://www.atnf.csiro.au/~rgooch/linux/kernel-patches.html

				Regards,

					Richard....

-
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