echo "scsi add-single-device a b c d" >/proc/scsi/scsi
for scsi bus a, channel b, address c, lun d .. the kernel code is there
there is also a remove-single-device to deconfigure a device...
i required this when i was working with a zip drive using its parallel
port scsi driver.. though it should work for any scsi.
> I use this trick on my Suns. When I boot a Sun, I hook up an external
> tape drive. Once it is "up", I disconnect the drive (I only have 1 to share
> over a bunch of Suns).
>
> If I have to use the tape drive on a Sun, I reconnect it. It will work
> because the Sun "saw" it during initialization.
this isn't needed.. i've hot added many devices to suns... you simply get
the sun to rescan the scsi bus and rebuild the device information
tables...
/usr/sbin/drvconfig
/usr/sbin/devlinks
/usr/sbin/tapes # /usr/sbin/disks if it's a disk that's added
/usr/ucb/ucblinks
this has worked great.. i've added several disks and tape drives using
these commands.
-- Gerald Britton gbritton@nih.gov