topologia física do scsi linux

1

Existe alguma maneira de encontrar a topologia física de uma unidade no barramento SCSI no linux?

aqui está um exemplo:

>: for drive in $(find /dev/disk/by-path -name \*0|sort); do udevadm info --query=path --name $drive  ; done
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:0/0:2:0:0/block/sda
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:1/0:2:1:0/block/sdb
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:2/0:2:2:0/block/sdc
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:3/0:2:3:0/block/sdd
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:4/0:2:4:0/block/sde
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:5/0:2:5:0/block/sdf
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:6/0:2:6:0/block/sdg
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:7/0:2:7:0/block/sdh
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:8/0:2:8:0/block/sdi
/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:9/0:2:9:0/block/sdj

Eu posso rastreá-los até a placa RAID

>: lspci | egrep 02.2\|03.00
00:02.2 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2c (rev 07)
03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 01)

mas não consigo mais rastrear (porta no cartão de ataque ou no expansor), os números de destino do scsi são sequenciais, lembre-se de que eu tenho quatro slots vazios, então eu esperava que os números de destino "pulassem" alguns. / p>

obrigado.

    
por Christian 20.06.2016 / 22:46

3 respostas

1

Experimente lsscsi .
Especialmente lsscsi -c e lsscsi -H .

    
por 20.06.2016 / 23:20
1

Ah, você tem o MegaRAID.

Experimente a MegaCLI.

link

link

link

Pode fazer muita coisa. Você precisa "MegaCli -pdList-aALL"

    
por 21.06.2016 / 00:40
0

Obrigado, mas eu tentei todas as opções para lsscsi, mas elas ainda são incrementais.

>: lsscsi -H
[0]    megaraid_sas
>: lsscsi -c
Attached devices:
Host: scsi0 Channel: 02 Target: 00 Lun: 00
  Vendor: DELL     Model: PERC H710        Rev: 3.13
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Target: 01 Lun: 00
  Vendor: DELL     Model: PERC H710        Rev: 3.13
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Target: 02 Lun: 00
  Vendor: DELL     Model: PERC H710        Rev: 3.13
  Type:   Direct-Access                    ANSI SCSI revision: 05
    
por 21.06.2016 / 00:28