public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Hot plugging a disk in runtime
@ 2002-05-20 16:34 berthiaume_wayne
  2002-05-20 17:58 ` Doug Ledford
  0 siblings, 1 reply; 12+ messages in thread
From: berthiaume_wayne @ 2002-05-20 16:34 UTC (permalink / raw)
  To: alan; +Cc: linux-scsi, rabeeh

	Will it, possibly, cause a reordering of other sd<xx> devices
already on line when scsi_init is called?

-----Original Message-----
From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
Sent: Monday, May 20, 2002 9:14 AM
To: rabeeh@galileo.co.il
Cc: alan@lxorguk.ukuu.org.uk; linux-scsi@vger.kernel.org
Subject: Re: Hot plugging a disk in runtime


> 	 * 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.
> 	 */
> 
> 1.. What is meant by "SCSI was not designed for this ..." ?

SCSI itself is not. People had a habit of blowing up scsi kit trying to
hot plug stuff that was not meant that way. Obviously thats different for
hot plug certified SCA2 equipment

> 3.. What about the naming of /dev/sdxx naming of newly hot-plugged SCSI
disk ? which name does it get ? (supposly I'm not using the dev filesystem)

it gets the next free one


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Hot plugging a disk in runtime
@ 2002-05-20 18:11 berthiaume_wayne
  0 siblings, 0 replies; 12+ messages in thread
From: berthiaume_wayne @ 2002-05-20 18:11 UTC (permalink / raw)
  To: dledford; +Cc: alan, linux-scsi, rabeeh

	Excellent. I assume that reboot will still have its usual discovery
methodology so if you were to hot plug in a new device and its placed at the
end of the chain, it could very well end up somewhere else after the reboot?
In other words, you have two Adaptec adapters (A & B) with two drives each.
Adapter A has sda and sdb; and adapter B has sdc and sdd. You add a new
drive to adapter A and now adapter A has sda, sdb, and sde. However, on a
system reboot adapter A would now have sda, sdb, and sdc; and adapter B
would have sdd and sde. True? Therefore, the sysadmin needs to be wise to
this modality or he's hosed at the next boot.

Wayne.

-----Original Message-----
From: Doug Ledford [mailto:dledford@redhat.com]
Sent: Monday, May 20, 2002 1:58 PM
To: berthiaume_wayne@emc.com
Cc: alan@lxorguk.ukuu.org.uk; linux-scsi@vger.kernel.org;
rabeeh@galileo.co.il
Subject: Re: Hot plugging a disk in runtime


On Mon, May 20, 2002 at 12:34:46PM -0400, berthiaume_wayne@emc.com wrote:
> 	Will it, possibly, cause a reordering of other sd<xx> devices
> already on line when scsi_init is called?

No, it will not move any devices that already exist.  It will either 
insert into the chain in the first hole it finds, or append to the end of 
the chain.  This way, if you have drives sda through sdd and you remove 
sdb, then when you do an add, the new drive will take the now vacant sdb 
slot.  For the common case of wanting to replace a failed drive, this is 
the perfect behaviour.

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <rabeeh@galileo.co.il>]

end of thread, other threads:[~2002-05-21 15:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-20 16:34 Hot plugging a disk in runtime berthiaume_wayne
2002-05-20 17:58 ` Doug Ledford
  -- strict thread matches above, loose matches on Subject: below --
2002-05-20 18:11 berthiaume_wayne
     [not found] <rabeeh@galileo.co.il>
2002-05-20 10:19 ` Rabeeh Khoury
2002-05-20 11:41   ` Karl Hammar
2002-05-20 11:57   ` Alan Cox
2002-05-20 11:41     ` Kaushik Datta
2002-05-20 12:24     ` Rabeeh Khoury
2002-05-20 13:14       ` Alan Cox
2002-05-20 14:20       ` James Bottomley
2002-05-21 15:42         ` Michael Clark
2002-05-20 22:33     ` Oliver Xymoron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox