GNU/Linux >> Linux の 問題 >  >> Cent OS

Linux SOSreport からファイバー チャネル HBA 情報を取得する方法

Linux のほとんどのバージョンのデフォルトのデータ収集ツールは SOSreport です . SOS レポートは、次のコマンドを使用して収集できます (root として実行):

# sosreport

完了すると、sosreport は圧縮されたファイルを /tmp の下に生成します。バージョンが異なれば、異なる圧縮スキーム (gz、bz2、または xz) が使用されます。

SOSreport から HBA ポートの WWN、モデル番号、ドライバー/ファームウェアのバージョンを取得する

/proc/scsi/adapter_type/n の存在を確認します .どこで「adapter_type 」はホスト アダプタのタイプで、「n」 」は、カードのホスト アダプタ番号です。ホスト アダプタのタイプは、QLogic アダプタの場合は qlaxxxx、Emulex アダプタの場合は lpfc のいずれかです。 Qlogic HBA を使用している場合は、/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

この情報は多くの場合、/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

HBA サブシステム ID の取得 (および HBA モデル番号とベンダーの取得)

サブシステム」の grep ' /sos_commands/hardware/lspci 内 :

$ grep Subsystem /sos_commands/hardware/lspci
1077:0171                     << 0171 is the Subsystem-id

または「subDeviceId」の grep ' /etc/sysconfig/hwconf

$ grep subDeviceId /etc/sysconfig/hwconf
subDeviceId: 0143                << 143 is the Subsystem-id

または「pci.subsys」の grep ' /sos_commands/hardware/lshal

$ grep pci.subsys /sos_commands/hardware/lshal
pci.subsys_product_id = 323 (0x143) (int)   << 143 is the Subsystem-id


Cent OS
  1. CコードからLinuxカーネルモジュールをロードする方法は?

  2. IP (Linux) からホスト名を取得するには?

  3. bashからネットマスクを取得するには?

  1. CentOSLinuxシステムから未使用のカーネルイメージを削除する方法

  2. Linuxでシステムとハードウェアの情報を取得する方法

  3. CentOS7にLinuxカーネル5.0をインストールする方法

  1. CentOS7でLinuxカーネルをアップグレードする方法

  2. Linuxカーネルを最初から構築する方法{ステップバイステップガイド}

  3. コンテナー自体から Docker Linux コンテナー情報を取得するにはどうすればよいですか?