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:
- Install the
lsscsicommand if it is not already installed. This command can be used to list SCSI devices, including Fibre Channel (FC) disks and LUNs. (miedemaproduce.comsudo yum install lsscsiOn Debian/Ubuntu systems, you can install it using
sudo apt-get install lsscsi. - Run the following command to list all SCSI devices, including FC disks and LUNs:
sudo lsscsi -tThis will output a tree-like view of all SCSI devices, including the FC disks and LUNs.
- Identify the device you are interested in. It will be listed under the
fc(Fibre Channel) category. - 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 n WWN=5000d31000a0b800In 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.
