PC server主機與FC存儲進行鏈接時,通常須要加裝HBA卡,二者之間銜接的一個重要參數就是wwn號。redhat或suse下查看wwn號的方法以下。
1、SuSE Linux 9
查看 /proc/scsi/qla2xxx/* ,並以 adapter-port 爲關鍵字過濾便可查看FC HBA卡的WWN信息:
# cat /proc/scsi/qla2xxx/* | grep adapter-port scsi-qla0-adapter-port=21000018822c8a2c; scsi-qla1-adapter-port=21000018822c8a2d;
2、SuSE Linux 10
查看 /sys/class/fc_host/host*/port_name 文件的內容便可看到對應FC HBA卡的WWN信息:
# cat /sys/class/fc_host/host*/port_name 0x210000e08b907955 0x210000e08b902856
3、RedHat Linux AS4
# grep scsi /proc/scsi/qla2xxx/3 Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0 scsi-qla0-adapter-node=20000018822d7834; scsi-qla0-adapter-port=21000018822d7834; scsi-qla0-target-0=202900a0b8423858; scsi-qla0-port-0=200800a0b8423858:202900a0b8423858:0000e8:1;
4、suse十一、redhat五、redhat6
上面都是一些老版本系統下的查看方法,在suse十一、redhat五、redhat6上,通常均可以通進查看/sys/class/fc_host/host*/port_name文件獲取(host*通常查看到的多是host4和host5),執行結果以下:node
# cat /sys/class/fc_host/host*/port_name 0x10000090fa2a6b98 0x10000090fa2a6b99
因爲鏈接存儲,爲避免單路徑下的故障狀況,通常都須要配置多路徑,HBA卡也相應都是成對出現的,這裏查看到wwwn號也是成對出現的。server