Lo strumento di raccolta dati predefinito sulla maggior parte delle versioni di Linux è SOSreport . Un SOSreport può essere raccolto usando il seguente comando (eseguito come root):
# sosreport
Una volta completato, sosreport genererà un file compresso in /tmp. Versioni diverse utilizzano schemi di compressione diversi (gz, bz2 o xz).
Ottenere WWN della porta HBA, numero di modello e versioni di driver/firmware da SOSreport
Verifica la presenza di /proc/scsi/adapter_type/n . Dove "tipo_adattatore ” è il tipo di adattatore host e “n ” è il numero dell'adattatore host per la tua carta. Il tipo di adattatore host può essere qlaxxxx per gli adattatori QLogic o lpfc per gli adattatori Emulex. Se utilizzi Qlogic HBA, cerca /proc/scsi/qla2xxx :
/proc/scsi/qla2xxx % ls ./ ../ 14 15 /proc/scsi/qla2xxx % more 14 QLogic PCI to Fibre Channel Host Adapter for QLE2462: << HBA model number Firmware version 5.03.02 [IP] [84XX] , Driver version 8.02.10.01.04.09-d << HBA firmware and driver versions ISP: ISP2432 Request Queue = 0x80b080000, Response Queue = 0x80b040000 Request Queue count = 4096, Response Queue count = 512 Total number of active commands = 0 Total number of interrupts = 353067390 Device queue depth = 0x20 Number of free request entries = 267 Number of mailbox timeouts = 0 Number of ISP aborts = 0 Number of loop resyncs = 0 Number of retries for empty slots = 0 Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0 Host adapter:loop state = , flags = 0x45a03 Dpc flags = 0x4000000 MBX flags = 0x0 Link down Timeout = 030 Port down retry = 030 Login retry count = 030 Commands retried with dropped frame(s) = 0 Product ID = 0000 0000 0000 0000 SCSI Device Information: scsi-qla0-adapter-node=2000001b321d6335; scsi-qla0-adapter-port=2100001b321d6335; << HBA port WWN
Queste informazioni si trovano spesso anche in/var/log/messages:
# more /var/log/messages ... Nov 2 08:55:05 server1 kernel: (scsi): Found a QLA2200 @ bus 1, device 0x1,irq 20, iobase 0x2300 Nov 2 08:55:10 server1 kernel: scsi(3): Configure NVRAM parameters... Nov 2 08:55:10 server1 kernel: scsi(3): Verifying loaded RISC code... Nov 2 08:55:10 server1 kernel: scsi(3): Verifying chip... Nov 2 08:55:10 server1 kernel: scsi(3): Waiting for LIP to complete... Nov 2 08:55:10 server1 kernel: scsi(3): LOOP UP detected Nov 2 08:55:10 server1 kernel: scsi3: Topology - (F_Port), Host Loop address 0xffff Nov 2 08:55:10 server1 kernel: scsi(3): Waiting for LIP to complete... Nov 2 08:55:10 server1 kernel: scsi3: Topology - (F_Port), Host Loop address 0xffff Nov 2 08:55:10 server1 kernel: scsi-qla0-adapter-node=2000001b321d6335; Nov 2 08:55:10 server1 kernel: scsi-qla0-adapter-port=2100001b321d6335; << HBA port WWN Nov 2 08:55:10 server1 kernel: scsi-qla0-target-0=50060e800545ab12
/var/log $ more dme* | grep -i driver QLogic QLE2562 - Sun StorageTek 8Gb FC PCIe HBA, dual port << HBA model number QLogic Fibre Channel HBA Driver: 8.03.07.03.06.1-k << HBA driver version var/log % more dme* | grep -i fw 18:48:00,489 INFO kernel:qla2xxx 0000:1b:00.0: firmware: requesting ql2500_fw.bin 18:48:00,526 INFO kernel: ISP2532: PCIe (5.0GT/s x4) @ 0000:1b:00.0 hdma+, host#=2, fw=5.03.16 (d5) << HBA Firmware version 5.03.16
Ottenere l'ID del sottosistema HBA (e derivare il numero del modello HBA e il fornitore)
grep per "Sottosistema ' in /sos_commands/hardware/lspci :
$ grep Subsystem /sos_commands/hardware/lspci 1077:0171 << 0171 is the Subsystem-id
o grep per 'subDeviceId ' in /etc/sysconfig/hwconf
$ grep subDeviceId /etc/sysconfig/hwconf subDeviceId: 0143 << 143 is the Subsystem-id
o grep per 'pci.subsys ' in /sos_commands/hardware/lshal
$ grep pci.subsys /sos_commands/hardware/lshal pci.subsys_product_id = 323 (0x143) (int) << 143 is the Subsystem-id