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)
    where hba_type is 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.g host0).

You can use lsmod to determine which driver is in use.

08. December 2008 by Jason
Categories: Linux | Tags: | Leave a comment

Leave a Reply

Required fields are marked *

*