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

ht‮w//:spt‬ww.lautturi.com
Linux Find FC ID (WWN) of a disk/LUN

To find the Fibre Channel (FC) ID, also known as the World Wide Name (WWN), of a disk or LUN on a Linux system, you can use the lspci command. This command lists the PCI devices on the system, including FC controllers and disks.

To use lspci, you can run the command with the -v flag to get a verbose output, which includes detailed information about each device. You can then use the grep command to filter the output for devices with the string "Fibre Channel" in the description.

For example:

lspci -v | grep 'Fibre Channel'

This will output a list of FC controllers and disks on the system, along with their device names, vendor and device IDs, and other information. You can then use the device name to find the FC ID of the disk or LUN.

Alternatively, you can use the lshw command to list the hardware components of the system, including FC controllers and disks. To use lshw, you can run the command with the -class flag and specify the "disk" class to filter the output for disks and LUNs.

For example:

lshw -class disk

This will output a list of disks and LUNs on the system, along with their device names, sizes, and other information. You can then use the device name to find the FC ID of the disk or LUN.

Created Time:2017-10-29 22:08:54  Author:lautturi