Windows和Linux系统查看HBA卡wwn号的方法

2012年04月13日 系统技术 暂无评论 阅读 5,278 次

一、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

评论已关闭!