sadm.magnus.pp.ru Заметки крошки-админа

11 December 2007

Работаем со SCSI-устройствами в Linux

Filed under: Компьютеры и интернет — Tags: — Magnus @ 11:16

Посмотреть подключенные устройства:

[~]# 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

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress