# ioscan -fnC fc ClassI H/WPathDriver S/WState H/WType Description ============ fc 00/3/1/0 fcd CLAIMEDINTERFACEHP A6826-600012Gb DualPort PCI/PCI-XFibreChannel Adapter (FCPort1)/dev/fcd0 fc 10/3/1/1 fcdCLAIMED INTERFACEHP A6826-600012GbDual Port PCI/PCI-XFibreChannel Adapter (FCPort2)/dev/fcd1
由此图可以看到,/dev/fcd0和/dev/fcd1是两个光纤卡 2, 查看光纤卡的WWN号
# fcmsutil /dev/fcd0VendorIDis=0x001077DeviceIDis=0x002312PCISub-system VendorIDis=0x00103cPCI Sub-system IDis=0x0012baPCI Mode = PCI-X133MHzISPCode version =3.3.18ISPChip version =3Topology =PTTOPT_FABRICLink Speed =2GbLocalN_Port_idis=0xa10500PreviousN_Port_idis=NoneN_PortNodeWorldWide Name =0x50060b00001db241N_PortPortWorldWide Name =0x50060b00001db240SwitchPortWorldWide Name =0x205e000dec0e2e00SwitchNodeWorldWide Name =0x2001000dec0e2e01Driver state =ONLINEHardwarePathis=0/3/1/0MaximumFrame Size =2048Driver-FirmwareDump Available=NODriver-FirmwareDump Timestamp= N/ADriver Version = @(#) libfcd.a HPFibreChannelISP23xx &24xx DriverB.11.23.04/ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Oct182005,08:21:11显示了HBA卡的WWNN和WWPN号,另外还能看到该HBA卡连接的光纤交换机端口的WWN号
Solaris:
solaris上用luxadm命令来管理存储设备以及光纤相关设备.
1, 查询现有存储设备和光纤设备,可以读到包括磁盘设备的WWN号
# luxadm probe
2, 查看HBA的prot,可以得到HBA卡的port值以及连接属性:
# luxadm -e port/devices/pci@0,0/pci1022,7450@2/pci1077,101@1/fp@0,0:devctl NOT CONNECTED/devices/pci@0,0/pci1022,7450@2/pci1077,101@1,1/fp@0,0:devctl CONNECTED
# grep scsi /proc/scsi/qla2300/1 Number of reqs in pending_q=0, retry_q=0, done_q=0,scsi_retry_q=0 scsi-qla0-adapter-node=200000e08b9cf661; scsi-qla0-adapter-port=210000e08b9cf661;
HBA卡里面的Node WWN 和Port WWN
HBA,字面理解是主机总线适配卡,我觉得现在狭义的叫做 FC HBA,在的HBA也就是Fibre Channel HostBus Adapter,因为网卡是不是也可以叫做NETWORK HBA呢,在FC网络中,主机(如服务器)需要和FC网络、FC存储设备(如SAN)连接时,需要使用一种接口卡,就如同连接以太网需要以太网卡一样。这 种接口卡就叫做FC HBA,简称HBA
本文介绍了在Linux中执行.sh脚本时出现/bin/sh^M: bad interpreter: No such file or directory异常的原因分析,并提供了两种解决方法:在Windows下进行编码格式转换,或在Linux中修改文件格式和执行权限。具体操作步骤也在摘要中给出。 ...
[详细]