Find WWN’s on Linux
To find port and node WWN’s while the system is running:
- 2.4.x Kernels
> cat /proc/scsi/[hba_type]/(n)
wherehba_typeis the driver (e.g. lpfc for Emulex) and(n)is the HBA number. - 2.6.x Kernels:
> cat /sys/class/scsi_host/host(n)/[port_name|node_name]
Hosts with multiple HBAs are enumerated via host(n) (e.ghost0).
You can use lsmod to determine which driver is in use.