User Tools

Site Tools


san_fc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

san_fc [2011/06/01 12:58]
127.0.0.1 external edit
san_fc [2013/12/18 12:40] (current)
root
Line 1: Line 1:
 ====== FC ====== ====== FC ======
  
-===== Determine ​WWPN and FC firmware ​=====+===== Determine FC ID (WWN) =====
  
-RHEL 4.x or earlier, to find the WWPN run the cat /​proc/​scsi/​adapter_type/​n command, where adapter_type is the host adapter type, and n is the host adapter number for your card. In most cases, the adapter type is qla2xxx.+==== RHEL 4.x or earlier ​====
  
-  ​cat /​proc/​scsi/​adapter_type/​n+To find the WWN run the cat /​proc/​scsi/​adapter_type/​n ​command, where adapter_type is the host adapter type, and n is the host adapter number for your card. In most cases, the adapter type is qla2xxx.
  
-RHEL 5.x or later, the adapter WWPN information might not be available in the/​proc/​scsi/​adapter_type/​n ​directory because of the migration to sysfs, If so, run the following command:+  cat /​proc/​scsi/​adapter_type/​<n>
  
-  ​cat /​sys/​class/​scsi_host/​hostn/device/fchost\:hostn/port_name+==== RHEL 5.x or later ==== 
 + 
 +The adapter WWN information can be found: 
 + 
 +  cat /​sys/​class/​fc_host/​host<​n>/​port_name 
 +   
 +  cat /​sys/​class/​fc_host/​host5/​port_name 
 +  0x5001438002a30302 
 + 
 + 
 +===== Determine if FC link is online ===== 
 + 
 +==== RHEL 5.x or later ==== 
 + 
 +  cat /​sys/​class/​fc_host/​host*/​port_state 
 + 
 +   
 +===== Find HBA brand ===== 
 + 
 +==== Method 1 ==== 
 + 
 +  lspci | grep -i fibre 
 +  08:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) 
 +  08:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) 
 +   
 +==== Method 2 ==== 
 +     
 +  ​cat /​sys/​class/​scsi_host/​host<​n>​/model_name 
 +  QMH2462 
 + 
 + 
 +===== HBA firmware ===== 
 + 
 +  cat /sys/​class/​scsi_host/​host<​n>/​fw_version 
 + 
 +  cat /​sys/​class/​scsi_host/​host[4-5]/​fw_version 
 +  5.06.02 (90d5) 
 +  5.06.02 (90d5) 
 + 
 +Alternatively:​ 
 +  dmesg | grep fw 
 +  
 +  Exaample output: 
 +  qla2xxx 0000:​08:​00.0:​ firmware: requesting ql2500_fw.bin 
 +  ISP2532PCIe (2.5GT/s x8) @ 0000:​08:​00.0 hdma+, host#=4, fw=5.06.02 (90d5) 
 +  ISP2532: PCIe (2.5GT/s x8) @ 0000:​08:​00.1 hdma+, host#=5, fw=5.06.02 (90d5) 
 + 
 + 
 +  ​
  
san_fc.1306933116.txt.gz · Last modified: 2012/05/30 10:38 (external edit)