This article explains how to check HBA host and its corresponding WWPN on XenServer.
Instructions
1. 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 via
systool
command from sysfsutils package (#yum install sysfsutils), or via simple
grep
command:
# 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/host2/fabric_name:0x10000027f86bd743
/sys/class/fc_host/host2/node_name:0x20000090fa388724
/sys/class/fc_host/host2/port_name:0x10000090fa388724
/sys/class/fc_host/host2/symbolic_name:Emulex MU220 FV2.01A9 DV11.1.210.1 HN:xenserver-blade2 OS:Linux
# systool -c fc_host -v
Class = "fc_host"
Class Device = "host2"
Class Device path = "/sys/devices/pci0000:80/0000:80:02.0/0000:82:00.0/host2/fc_host/host2"
active_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "
dev_loss_tmo = "60"
fabric_name = "0x10000027f86bd743" >>>>>>switch port name, wwpn
issue_lip = <store method only>
max_npiv_vports = "255"
maxframe_size = "2048 bytes"
node_name = "0x20000090fa388724" >>>>>>HBA node name, wwnn
npiv_vports_inuse = "0"
port_id = "0x010200"
port_name = "0x10000090fa388724" >>>>>> HBA port name, wwpn
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "
supported_speeds = "2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "Emulex MU220 FV2.01A9 DV11.1.210.1 HN:xenserver-blade2 OS:Linux"
tgtid_bind_type = "wwpn (World Wide Port Name)"
.......