How to dynamically add/remove SCSI devices?

Extracted from Web submission (SCSI Programming HOWTO)
Tip provided by David Ranch
From the command-line, the commands are:

echo "scsi remove-single-device host channel ID LUN " > /proc/scsi/scsi
echo "scsi add-single-device host channel ID LUN " > /proc/scsi/scsi

[note of maintainer : WARNING, as it is written in /usr/src/linux/drivers/scsi/scsi.c :
  * Consider this feature BETA.
  *     CAUTION: This is not for hotplugging your peripherals. As
  *     SCSI was not designed for this you could damage your
  *     hardware !
]

Follow-up :
| Previous | Next | Index of category | Main Index | Submit |


Appears in section(s) : scsi
Tip recorded : 17-01-1999 19:16:09
HTML page last changed : 27-07-1999 20:07:35