【转】How to check HBA host and its corresponding WWPN on RHEL 5, 6 or 7?
https://access.redhat.com/solutions/55334
SOLUTION UNVERIFIED - 已更新 2018年二月6日05:35 -
English
环境
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- FC/FCoE Host Bus Adapter (QLogic, Emulex, Brocade, Cisco, etc.)
问题
- How to check HBA host and its corresponding WWPN?
- How do I lookup WWN of installed HBAs?
- How do I locate the world wide number of an hba WWPN (world wide port name)?
- How do I locate the world wide name of an hba?
- How to find out which Port Name is being used by an HBA Fibre Channel port?
- I need to associated my HBA ports WWPN within the Fibre Channel switch. How can I found out the correct name?
决议
For more information about setting up SAN storage refer to the appropriate storage guide:
- RHEL5: Online Storage Reconfiguration Guide
- RHEL6: Storage Administration Guide
- RHEL7: Storage Administration Guide.
The wwpn (world wide port name) and companion wwnn (world wide node name) of an hba within the current configuration are available within the sysfs tree, can be found using a
find
command and viewed either viasystool
command from sysfsutils package (#yum install sysfsutils), or via simplegrep
command:
Raw
$ find /sys/class/fc_host/*/ -name 'port_name' << retrieve path to wwpn entry $ find /sys/class/fc_host/*/ -name 'node_name' << retrieve path to wwnn entry$ grep -v "zZzZ" -H /sys/class/fc_host/host*/*_name /sys/class/fc_host/host6/fabric_name:0x100000051e900105 << switch port name, wwpn /sys/class/fc_host/host6/node_name:0x200000e08b87de9a << HBA node name, wwnn /sys/class/fc_host/host6/port_name:0x210000e08b87de9a << HBA port name, wwpn /sys/class/fc_host/host6/symbolic_name:QLE2462 FW:v7.03.00 DVR:v8.07.00.18.07.2-k : .In the case where it is insufficient to know just the WWNN/WWPN that exists for a scsi host and it is desired to know the actual pci address assigned to a particular scsi host -- then the following can be used: $ find ./sys/devices -type d -name 'host*' | egrep -v "host_busy|fc_host|scsi_host" | sort ./sys/devices/pci0000:00/0000:00:01.0/0000:04:00.0/host4 ./sys/devices/pci0000:00/0000:00:04.0/0000:08:00.0/host10 ./sys/devices/pci0000:00/0000:00:05.0/0000:0b:00.0/host5 ./sys/devices/pci0000:00/0000:00:07.0/0000:0e:00.0/host8 ./sys/devices/pci0000:00/0000:00:07.0/0000:0e:00.1/host9 ./sys/devices/pci0000:00/0000:00:0a.0/0000:14:00.0/host6 << card pci address for host6/scsi6 ./sys/devices/pci0000:00/0000:00:0a.0/0000:14:00.1/host7 : .$ systool -c fc_host -v Class = "fc_host"Class Device = "host6"Class Device path = "/sys/devices/pci0000:00/0000:00:0a.0/0000:14:00.0/host6/fc_host/host6"dev_loss_tmo = "45"fabric_name = "0x100000051e900105" << switch port name, wwpnissue_lip = max_npiv_vports = "127"node_name = "0x200000e08b87de9a" << HBA node name, wwnnnpiv_vports_inuse = "0"port_id = "0x010300"port_name = "0x210000e08b87de9a" << HBA port name, wwpnport_state = "Online"port_type = "NPort (fabric via point-to-point)"speed = "4 Gbit"supported_classes = "Class 3"supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"symbolic_name = "QLE2462 FW:v7.03.00 DVR:v8.07.00.18.07.2-k"system_hostname = ""tgtid_bind_type = "wwpn (World Wide Port Name)"uevent = : .
- Additional information is available within "How do I find the FC ID (WWN) of a disk/LUN", which discusses end-to-end transport identification (disk, scsi address, host [hba/pci address], switch port, storage port, lun). This references an unsupported/as-is utility called
mapdevs
that can be run on RHEL 5, 6, and 7 to display, among other things, an hba-to-storage wwn map.
Raw
# ./mapdevs -Hp #scsi_addr name version f/w device #----------- ---------------------- ---------------------- ------------------------- ---------------------------------------------- : 6:*:*:* qla2xxx 8.07.00.38.07.4-k1 8.06.00 (9496) /sys/devices/pci0000:00/0000:00:0a.0/0000:14:00.0/host67:*:*:* qla2xxx 8.07.00.38.07.4-k1 8.06.00 (9496) /sys/devices/pci0000:00/0000:00:0a.0/0000:14:00.1/host7# --------- PCI ------------- # subsystem model model #scsi_addr vendor device vendor device name description #----------- ------ ------ ------ ------ ------------ -------------------------------------------------- :6:*:*:* 0x1077 0x2432 0x1077 0x0138 QLE2462 PCI-Express Dual Channel 4Gb Fibre Channel HBA7:*:*:* 0x1077 0x2432 0x1077 0x0138 QLE2462 PCI-Express Dual Channel 4Gb Fibre Channel HBA#scsi_addr name speed state symbolic_name port_type #----------- ------------------ -------- -------- ---------------------------------------------- ----------------------------------------------- : 6:*:*:* qla2xxx 4 Gbit Online QLE2462 FW:v8.06.00 DVR:v8.07.00.38.07.4-k1 NPort (fabric via point-to-point)7:*:*:* qla2xxx 4 Gbit Online QLE2462 FW:v8.06.00 DVR:v8.07.00.38.07.4-k1 NPort (fabric via point-to-point): #SCSI HBA Fabric Storage Port #Addr Luns wwnn wwpn portid wwn wwnn wwpn portid info #------------- ---- ------------------/------------------/-------- ------------------ ------------------/------------------/--------/--------- 6:0:0:- 65 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x5001438005663d33 0x5001438005663d32 0x0a0400 FCP Target 6:0:1:- 67 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x5001438005663d31 0x5001438005663d30 0x0a0500 FCP Target 6:0:2:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x20000024ff0d7d65 0x21000024ff0d7d65 0x010800 FCP Target 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x2000001018d6aa11 0x2001001018d6aa11 0x0a0e01 FCP Initiator 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x200100e08ba7de9a 0x210100e08ba7de9a 0x010600 FCP Initiator 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x20000090fa1927e8 0x10000090fa1927e8 0x0a0100 FCP Initiator 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x20000090fa1927e9 0x10000090fa1927e9 0x0a0000 FCP Initiator 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x20000090fa16f41e 0x10000090fa16f41e 0x010200 FCP Initiator 6:0:x:- - 0x200000e08b87de9a 0x210000e08b87de9a 0x010300 0x100000051e900105 0x20000090fa16f41f 0x10000090fa16f41f 0x010700 FCP Initiator : .
- 产品(第)
- Red Hat Enterprise Linux
【转】How to check HBA host and its corresponding WWPN on RHEL 5, 6 or 7?相关推荐
- Could not bind with 192.168.56.1: [WinError 10049] 在其上下文中,该请求的地址无效。 (please check your host binding
在使用GNS时遇到的杂七杂八的小问题.. 前几天当我为Hadoop更改环境配置后发现了如下问题,此时无法新建项目也无法打开之前已创建的项目. 此时,我开始对Hadoop更改的环境配置进行逐步排查,最终 ...
- linux里hba状态_在Linux/Unix平台查看HBA卡的WWN号 和状态
对于不同版本的unix系统 查看你hba io状态的总结 AIX: 1,获得AIX主机连接的光纤设备: # lsdev -Cc adapter -S a | grep fcs fcs0 Ava ...
- 查看unix和linux的HBA卡的WWN地址
转载来源 : 怎样查看unix和linux的HBA卡的WWN地址 : https://blog.51cto.com/liuqun/1981222 在Linux下查看FC HBA卡的速率和状态 : ht ...
- linux rhel unix centos FreeBSD 查看CPU核数使用率 系统 位 内存大小 硬盘 HBA光纤卡号 常用命令
一:使用CentOS常用命令查看cpu more /proc/cpuinfo | grep "model name" grep "model name" / ...
- linux查询hba卡地址,怎样查看unix和linux的HBA卡的WWN地址
怎样查看unix和linux的HBA卡的WWN地址 发布时间:2020-02-24 13:04:00 来源:51CTO 阅读:1322 作者:lq2011 AIX: 1,获得AIX主机连接的光纤设备: ...
- 光纤网卡PCI-E和HBA网卡的区别?
(1):光纤网卡分以太网用的,还是存储用的,以太网用的一般简称光纤网卡,存储用的一般叫HBA卡,都是插到服务器里面用的,一个接以太网交换机,一个接存储用的光纤交换机. (2):HBA物理上你可以把它当 ...
- 软件定义存储 HBA卡 IB交换机
HBA卡一般指主机总线适配器 主机总线适配器是网络与交换,是能插入计算机或大型主机的板卡.光纤通道HBA(Host Bus Adapter)卡是将主机接入FC网络必不可少的设备. 能插入计算机.服务器 ...
- 存储控制器wwn号_查看HBA卡的WWN号
AIX: 1,获得AIX主机连接的光纤设备: # lsdev -Cc adapter -S a | grep fcs fcs0 Available 09-08 FC Adapter f ...
- 存储控制器wwn号_在Linux/Unix平台查看HBA卡的WWN号 和状态
对于不同版本的unix系统 查看你hba io状态的总结 AIX: 1,获得AIX主机连接的光纤设备: # lsdev -Cc adapter -S a | grep fcs fcs0 Ava ...
最新文章
- redis 常用配置
- easyui日期处理(开始时间和结束时间)
- php 查询datetime,急急PHP,数据库中createtime字段类型为datetime,怎样根据这个查询一段时间内的数据...
- HTTP协议和web工作原理
- JS判断页面控件是否可用
- Java入门系列-22-IO流
- Python数据库使用-SQLite
- php测试号推送消息失败,信息发送失败是什么原因
- 华为荣耀 4x 刷机体验 直奔 Android 6.0
- EF 保证线程内唯一 上下文的创建
- Win10 技巧:让任务栏时间显示 “秒”
- QQ空间自动发广告说说?可能是激活工具附带的独狼Rootkit!
- java毕业设计外卖管理系统mybatis+源码+调试部署+系统+数据库+lw
- Js核心技术——待补充
- 数据分析36计(22):分析师入门常见错误 幸存者偏差,如何用匹配和加权法规避...
- Python 打开文件对话框
- 表单中的label标签
- Camera Calibration Toolbox for Matlab使用教程
- 这样的团建,真羡慕skr人~
- 求数组中的最大差值或最小差值
热门文章
- 一个月能让“蚊子”“蟑螂”绝子绝孙的秘诀(组图)
- 1024分辨率《魔法师的学徒》BD中英双字无水印
- 公众号开发之-node响应微信token验证
- Linux海王 之 pdsh (并行管理工具)
- 微信小程序开发文本框无法输入文字
- python壁纸4k_python壁纸_python 壁纸_python主题壁纸 - 云+社区 - 腾讯云
- 给你的树莓派部署一个车牌识别系统
- 程序员如何提高自己的工作效率
- arm使用hostapd创建热点
- 如何把一个对象的颜色设置成 ByLayer