一、windows 系統
在windows系統中,可以使用fc hba卡廠家提供的管理軟件查看光纖適配器的wwn號碼,具體如下:
qlogic:sansurfer
emulex:hbanyware
二、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;
五、redhat linux as5
# cat /sys/class/fc_host/hostx/port_name
六、solaris 10
提供了fcinfo命令,可以使用 fcinfo hba-port 查看fc hba的wwn信息:
# fcinfo hba-port
查看光纖卡端口的路徑及連接狀態:
# luxadm -e port
查看端口的wwn:
# luxadm -e dump_map fibre_channel_hba_port // 上一命令的輸出
# prtconf –vp | grep -i wwn
# prtpicl –v | grep -i wwn (prtpicl - print picl tree)
六、hp-ux
# ioscan –func fc // 找到hba卡,再用fcmsutil查看hba卡信息
# fcmsutil /dev/fcd0(1)
七、aix
# lsdev -cc adapter // 找出hba卡
# lscfg –vpl fcs0 |grep network address
備注:
emulex的hba的wwn的第一個數字為1
qlogic的hba的wwn的第一個數字為2
hp tachyon hba的wwn的第一個數字為5
qlogic參數
connection options
0 - loop only
1 - point-to-point only
2 - loop preferred,otherwise point-to-point.
按服務器那邊的建議,das直連存儲時選擇loop only,通過光纖交換機連接存儲時選擇point-to-point only