转载:地址我忘了
一、Windows 系统
在Windows系统中,可以使用FC HBA卡厂家提供的管理软件查看光纤适配器的WWN号码,具体如下:
Qlogic:SANsurfer
Emulex:HBAnyware
二、SuSE Linux 9
查看 /proc/scsi/qla2xxxport_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;BT无线网络破解教程
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
查看端口的WW N:
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
Data Rate
该配置项定义FC端口速率
0 - 1Gb/s
1 - 2Gb/s
2 - Auto
主机一
[dsg@dsgserver2 host1]$ cat port_name
0x10000000c9a257bf
[dsg@dsgserver2 host1]$ cd …
[dsg@dsgserver2 fc_host]$ ls
host1 host2
[dsg@dsgserver2 fc_host]$ cd host2
[dsg@dsgserver2 host2]$ cat port_name
0x10000000c9d060ac
[dsg@dsgserver2 host2]$ ifconfig
eth0 Link encap:Ethernet HWaddr 6C:AE:8B:77:BD:68
inet addr:134.16.16.12 Bcast:134.16.16.255 Mask:255.255.255.0
inet6 addr: fe80::6eae:8bff:fe77:bd68/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:280701851499 errors:11 dropped:65092 overruns:0 frame:11
TX packets:44438190285 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:424185899528840 (385.7 TiB) TX bytes:3119093820404 (2.8 TiB)
eth1 Link encap:Ethernet HWaddr 6C:AE:8B:77:BD:6A
inet6 addr: fe80::6eae:8bff:fe77:bd6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70064383 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4500173165 (4.1 GiB) TX bytes:270 (270.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1649427 errors:0 dropped:0 overruns:0 frame:0
TX packets:1649427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:171500542 (163.5 MiB) TX bytes:171500542 (163.5 MiB)
主机二
[dsg@dsgserver fc_host]$ cd host1/
[dsg@dsgserver host1]$ cat port_name
0x10000000c9a257c0
[dsg@dsgserver host1]$ cd …
[dsg@dsgserver fc_host]$ cd host2
[dsg@dsgserver host2]$ cat port_name
0x10000000c9d060eb
[dsg@dsgserver host2]$ ifconfig
eth0 Link encap:Ethernet HWaddr 6C:AE:8B:77:BD:58
inet addr:134.16.16.11 Bcast:134.16.16.255 Mask:255.255.255.0
inet6 addr: fe80::6eae:8bff:fe77:bd58/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87974604995 errors:0 dropped:1769779 overruns:0 frame:0
TX packets:14762445865 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:131586446535761 (119.6 TiB) TX bytes:1127769680787 (1.0 TiB)
eth1 Link encap:Ethernet HWaddr 6C:AE:8B:77:BD:5A
inet6 addr: fe80::6eae:8bff:fe77:bd5a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:319246230 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27905853969 (25.9 GiB) TX bytes:270 (270.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:55779266 errors:0 dropped:0 overruns:0 frame:0
TX packets:55779266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:516552840028 (481.0 GiB) TX bytes:516552840028 (481.0 GiB)