GNU/Linux >> Linux Esercitazione >  >> Linux

HBA WWN:come trovare l'indirizzo WWN della scheda HBA Qlogic o Emulex su Linux

Domanda: Come faccio a cercare l'indirizzo wwn della mia scheda HBA installata sul sistema Linux. Ho bisogno di queste informazioni per creare la suddivisione in zone del mio switch Fibre Channel.

Risposta: Utilizzare uno dei metodi seguenti per visualizzare l'indirizzo WWN HBA su Linux.

Metodo 1:/sys/class/scsi_host/host{n}/device/fc_host:host{n}/file nome_porta

Su Redhat 5 e versioni successive (inclusi OEL e CentOS), il file /sys/class/scsi_host/host{n}/device/fc_host:host{n}/port_name contiene le informazioni HBA WWN come mostrato di seguito. Sostituisci n con 0, 1 o 2 in base al tuo sistema.

Ad esempio:

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)


$ cat /sys/class/scsi_host/host1/device/fc_host:host1/port_name
0x2100001c111111c1

Metodo 2:/proc/scsi/{adapter-type}/{n} File

In Redhat 4 e versioni precedenti (inclusi OEL e CentOS), il file /proc/scsi/{adapter-type}/{n} contiene le informazioni HBA WWN come mostrato di seguito.

{adapter-type} può essere qlaxxxx per gli adattatori QLogic (o) lpfc per gli adattatori Emulex.
Per favore sostituisci n con 0, 1 o 2 in base al tuo sistema.

L'esempio seguente mostra il numero WWN dell'adattatore qlogic 2300 su RedHat 3.

$ cat /etc/redhat-release
Enterprise Linux Enterprise Linux AS release 3 (Update 9)

$ cat /proc/scsi/qla2300/1
QLogic PCI to Fibre Channel Host Adapter for QLA2460:
        Firmware version:  4.00.23, Driver version 7.07.05
Entry address = f888d060

Request Queue = 0x37280000, Response Queue = 0x37270000
Request Queue count= 512, Response Queue count= 512
Total number of active commands = 2
Total number of interrupts = -1635473967
Total number of active IP commands = 0
Total number of IOCBs (used/max) = (0/0)
Total number of queued commands = 2
    Device queue depth = 0x20
Number of free request entries = 454
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= 0x70013
Dpc flags = 0x0
MBX flags = 0x0
SRB Free Count = 4094
Link down Timeout = 045
Port down retry = 045
Login retry count = 045
Commands retried with dropped frame(s) = 0
Configured data rate: 4 Gb/sec


SCSI Device Information:
scsi-qla0-adapter-node=2000002c222c2cc2;
scsi-qla0-adapter-port=2100002c222c2cc2;
scsi-qla0-target-0=5006016022c22c2c;
scsi-qla0-target-1=5006016822c22c2c;

SCSI LUN Information:
(Id:Lun)  * - indicates lun is not registered with the OS.
( 0: 0): Total reqs -877237672, Pending reqs 0, flags 0x0, 0:0:81,
( 0: 1): Total reqs 1074740881, Pending reqs 2, flags 0x0, 0:0:81,
( 0: 2): Total reqs 439861869, Pending reqs 0, flags 0x0, 0:0:81,
( 0: 3): Total reqs 417766757, Pending reqs 0, flags 0x0, 0:0:81,
( 1: 0): Total reqs 1174574, Pending reqs 0, flags 0x0, 0:0:82,
( 1: 1): Total reqs 1906876572, Pending reqs 0, flags 0x0, 0:0:82,
( 1: 2): Total reqs 1175529, Pending reqs 0, flags 0x0, 0:0:82,
( 1: 3): Total reqs 1173331, Pending reqs 0, flags 0x0, 0:0:82,

Linux
  1. Come trovare il tuo indirizzo IP in Linux

  2. Come trovare file in Linux

  3. trova WWN Numero di scheda HBA in Redhat Linux e CentOS

  4. Come identificare le schede/porte HBA e WWN in Linux

  5. Come trovare l'indirizzo IP del gateway in Linux

Come trovare il tuo indirizzo IP in Linux

Come trovare quale scheda grafica hai in Linux?

Come modificare l'indirizzo IP su Linux

Come trovare l'indirizzo IP nella riga di comando di Linux

Come trovare l'indirizzo IP in Linux

Come trovare il tuo indirizzo IP (IPv4 e IPv6) su Rocky Linux