Linux Find FC ID (WWN) of a disk/LUN

To find the FC ID (WWN) of a disk/LUN on a Linux system, follow these steps:

  1. Install the lsscsi command if it is not already installed. This command can be used to list SCSI devices, including Fibre Channel (FC) disks and LUNs. (miedemaproduce.com
    sudo yum install lsscsi

    On Debian/Ubuntu systems, you can install it using sudo apt-get install lsscsi.

  2. Run the following command to list all SCSI devices, including FC disks and LUNs:
    sudo lsscsi -t

    This will output a tree-like view of all SCSI devices, including the FC disks and LUNs.

  3. Identify the device you are interested in. It will be listed under the fc (Fibre Channel) category.
  4. Look for the WWN= field in the output. This will contain the FC ID (WWN) of the device.

    For example:

    [2:0:0:1] disk 3600a0b80004b46e0000081947a003f11 /dev/sdb
    WWN=5000d31000a0b800

    In this example, the FC ID (WWN) of the disk/LUN is 5000d31000a0b800.

That’s it! You now know how to find the FC ID (WWN) of a disk/LUN on a Linux system using the lsscsi command.

Leave a Comment