scsiadd − Add and remove SCSI devices
scsiadd {−a|−r} <id>
scsiadd {−a|−r} <id> <lun>
scsiadd {−a|−r} <host> <id> <lun>
scsiadd {−a|−r} <host> <channel> <id> <lun>
scsiadd [−i maxid] −s <host>
scsiadd [−i maxid] −s <host> <channel>
scsiadd −p
scsiadd adds and removes devices, scans for new devices, or prints the status of the SCSI bus. The options are:
−a |
add device |
|||
−r |
remove device |
|||
−s |
scan for new devices |
|||
−p |
print SCSI status |
|||
−i |
set maximum SCSI ID which is scanned |
scsiadd need the /proc/scsi/scsi file to send its commands to the linux kernel. In 2.6 kernels this file is considered deprecated and you have to enable the following kernel option so this file is generated:
Device Drivers−>SCSI device support−>legacy /proc/scsi/ support
scsiadd 3
add SCSI device with ID 3 on primary host
scsiadd −r 1
remove SCSI device with ID 1 from primary host
scsiadd −s
scan for new devices on primary device
scsiadd −a 1 2 13 4
add SCSI device with ID 13 and LUN 4 on host 1 channel 2
Dirk Jagdmann <doj AT cubic DOT org>
The latest version can be found at http://llg.cubic.org/tools
http://www.tldp.org/HOWTO/SCSI−2.4−HOWTO/index.html
Howto describing many aspects of the Linux 2.4.0 SCSI system