Посмотреть подключенные устройства:
[~]# cat /proc/scsi/scsi
Attached devices: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: SEAGATE Model: ST336704LC Rev: 0004 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi1 Channel: 00 Id: 06 Lun: 00 Vendor: ESG-SHV Model: SCA HSBP M16 Rev: 0.05 Type: Processor ANSI SCSI revision: 02
Добавить устройство:
[~]# echo "scsi add-single-device <h> <b> <t> <l>" > /proc/scsi/scsi
где переменные host, bus (channel), target (scsi id) и lun
Например,
[~]# echo "scsi add-single-device 1 0 1 0" > /proc/scsi/scsi
Удалить устройство:
echo "scsi remove-single-device 1 0 1 0" > /proc/scsi/scsi