系統的/proc/scsi/qla2xxx目錄下一般存在兩個檔案:1、2或者3、4,這些檔案包含FC HBA卡的配置資訊。
[root@localhost qla2xxx]# cat 3
QLogic PCI to FibreChannel Host Adapter for QLA2342:
Firmware version 3.03.18IPX, Driver version 8.01.02-d4
ISP:ISP2312, Serial# P21735
RequestQueue = 0x11f580000,Response Queue = 0x11f4d0000
Request Queue count =4096, Response Queue count = 512
Total number of activecommands = 0
Total number ofinterrupts = 3354
Device queue depth = 0x10
Number of freerequest entries = 4094
Number of mailboxtimeouts = 0
Number of ISP aborts= 0
Number of loopresyncs = 0
Number of retries forempty slots = 0
Number of reqs inpending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Host adapter:loopstate = <READY>, flags = 0x1a03
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout =000
Port down retry = 035
Login retry count =035
Commands retried withdropped frame(s) = 0
Product ID = 49535020 2020 0002
SCSI DeviceInformation:
scsi-qla0-adapter-node=2000001882374738;
scsi-qla0-adapter-port=2100001882374738;
FC Port Information:
scsi-qla0-port-0=200000188237b206:210000188237b206:010a00:81;
SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with theOS.
其中,SCSI Device Information下面的scsi-qla0-adapter-port=2100001882374738便是主機光纖卡的WWN號。
RedHat AS5系統的/sys/class/fc_host/host*/port_name 這個檔案包含了所有已被系統發現的FC HBA卡的資訊,使用檢視命令檢視該檔案的內容即可看到FC HBA卡的資訊。
檢視WWPN:cat/sys/class/fc_host/host*/port_name
檢視WWNN:cat/sys/class/fc_host/host*/node_name
系統的/proc/scsi/qla2xxx目錄下一般存在兩個檔案:1、2或者3、4,這些檔案包含FC HBA卡的配置資訊。
[root@localhost qla2xxx]# cat 3
QLogic PCI to FibreChannel Host Adapter for QLA2342:
Firmware version 3.03.18IPX, Driver version 8.01.02-d4
ISP:ISP2312, Serial# P21735
RequestQueue = 0x11f580000,Response Queue = 0x11f4d0000
Request Queue count =4096, Response Queue count = 512
Total number of activecommands = 0
Total number ofinterrupts = 3354
Device queue depth = 0x10
Number of freerequest entries = 4094
Number of mailboxtimeouts = 0
Number of ISP aborts= 0
Number of loopresyncs = 0
Number of retries forempty slots = 0
Number of reqs inpending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Host adapter:loopstate = <READY>, flags = 0x1a03
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout =000
Port down retry = 035
Login retry count =035
Commands retried withdropped frame(s) = 0
Product ID = 49535020 2020 0002
SCSI DeviceInformation:
scsi-qla0-adapter-node=2000001882374738;
scsi-qla0-adapter-port=2100001882374738;
FC Port Information:
scsi-qla0-port-0=200000188237b206:210000188237b206:010a00:81;
SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with theOS.
其中,SCSI Device Information下面的scsi-qla0-adapter-port=2100001882374738便是主機光纖卡的WWN號。
RedHat AS5系統的/sys/class/fc_host/host*/port_name 這個檔案包含了所有已被系統發現的FC HBA卡的資訊,使用檢視命令檢視該檔案的內容即可看到FC HBA卡的資訊。
檢視WWPN:cat/sys/class/fc_host/host*/port_name
檢視WWNN:cat/sys/class/fc_host/host*/node_name