أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
We have following utilities in linux to find the hba related information.systoollsscsisg_mapUsing "systool" we can find the WWN of the HBA's installed in the linux host.systool is provided by the rpm "sysfsutils-2.1.0-1.el5".lsscsi is provided by the rpm "lsscsi-0.17-3.el5"sg_map is provided by the rpm "sg3_utils-1.25-5.el5".To list the HBA's connected to the system:
[root@unixway ~]# lspci -nn | grep -i hba91:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev02)91:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev02) d1:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev02) d1:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev02)or
[root@unixway ~]# ls -lrt /sys/class/fc_host/host*/port_name -r--r--r--1 root root4096 Nov1416:10 /sys/class/fc_host/host9/port_name -r--r--r--1 root root4096 Nov1416:10 /sys/class/fc_host/host8/port_name -r--r--r--1 root root4096 Nov1416:10 /sys/class/fc_host/host7/port_name -r--r--r--1 root root4096 Nov1416:10 /sys/class/fc_host/host10/port_nameAs we can see above there are four8Gigabit FC Adapter available in the system.Now we need to see which HBA's are connected to the fabric.We can now see which HBA ports are actually in use. As we can see below only host10 and host7 port_ids are populated here.Hence they are only connected to fabric.
[root@unixway ~]# systool -c fc_host -A "port_id" Class = "fc_host" Class Device = "host10" port_id = "0x4bc880" Device = "host10" Class Device = "host7" port_id = "0x4cc880" Device = "host7" Class Device = "host8" port_id = "0x000000" Device = "host8" Class Device = "host9" port_id = "0x000000" Device = "host9"This command will display only the HBA's connected to the fabric will be displayed.So the devices are coming from the targets target10:0:0 (host10) and target7:0:0 (host7)respectively.
[root@unixway ~]# systool -c fc_transport -v Class = "fc_transport" Class Device = "0:0" Class Device path = "/sys/class/fc_transport/target10:0:0" node_name = "0x50060e8006cfe852" port_id = "0x4bbc40" port_name = "0x50060e8006cfe852" uevent = "PHYSDEVPATH=/devices/pci0000:80/0000:80:09.0/0000:d1:00.1 PHYSDEVBUS=pci PHYSDEVDRIVER=qla2xxx" Device = "target10:0:0" Device path = "/sys/devices/pci0000:80/0000:80:09.0/0000:d1:00.1/host10/rport-10:0-0/target10:0:0" uevent = Class Device = "0:0" Class Device path = "/sys/class/fc_transport/target7:0:0" node_name = "0x50060e8006cfe842" port_id = "0x4cbc40" port_name = "0x50060e8006cfe842" uevent = "PHYSDEVPATH=/devices/pci0000:80/0000:80:01.0/0000:91:00.0 PHYSDEVBUS=pci PHYSDEVDRIVER=qla2xxx" Device = "target7:0:0" Device path = "/sys/devices/pci0000:80/0000:80:01.0/0000:91:00.0/host7/rport-7:0-0/target7:0:0" uevent =
It depends on the HBA card you are using. For Eg: if you use Qlogic HBA cards, they will give you the driver package (.tar file) which will have all the required drivers to install the HBA card.
So installing an HBA card is Brand specific.