You can get the Fiber Channel addresses of the HBAs by typing the following commands: # systool -c fc_host -v To check the attached LUN from a storage device in Linux, we can use the /proc/scsi/scsi file content but it will give you some information and you can not be able to distinguish # systool -c fc_host -v | grep port_name port_name = "0x500143802426baf2" port_name = "0x500143802426baf3" port_name = "0x500143802426baf4" port_name = "0x500143802426baf5" 1) Check attached LUN or SAN disk in Linux. So To find the WWNnumber of HBA card in linux use the below command : # systool -c fc_host -v | grep "port_name" Once the sysfsutils package is installed on the Linux system, run the following command to find the WWN number of fc host. Hello all, I need find in my OS (Sun10) on LUN 1Tb with WWN 6005-08b4-0010-7137-0000-e000-0076-0000 (HBA) How do it?, Thanks, | The UNIX and Linux Forums If our Linux box is connected to one or more SAN switch via Fibre HBA cards.
H ow do I find the FC ID (WWN) of a disk/LUN on Linux server? So it becomes very important to the Storage Team that they assign the storage to the correct Servers via WWN numbers of Fibre HBA Cards. To get the WWPN (World Wide Port Number) of HBA or FC card in Linux cat /sys/class/fc_host/host0/port_name0x10000000c9538d83 cat /sys/class/fc_host/host1/port_name0x10000000c9538dac If you have more HBAs, replace "host0 or host1" with "hostN ". If your server is connected to more than two SANs of the same type it is really hard to find what disk is on what SAN and how it is connected to your server.