linux下如何檢視伺服器wwn號
PC server主機與FC儲存進行連線時,一般需要加裝HBA卡,兩者之間銜接的一個重要引數就是wwn號。redhat或suse下檢視wwn號的方法如下。
一、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;
二、SuSE Linux 10
檢視 /sys/class/fc_host/host*/port_name 檔案的內容即可看到對應FC HBA卡的WWN資訊:
# cat /sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b902856
三、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;
四、suse11、redhat5、redhat6
上面都是一些老版本系統下的檢視方法,在suse11、redhat5、redhat6上,一般都可以通進檢視/sys/class/fc_host/host*/port_name檔案獲取(host*一般檢視到的可能是host4和host5),執行結果如下:
# cat /sys/class/fc_host/host*/port_name
0x10000090fa2a6b98
0x10000090fa2a6b99
由於連線儲存,為避免單路徑下的故障情況,一般都需要配置多路徑,HBA卡也相應都是成對出現的,這裡檢視到wwwn號也是成對出現的。