Which disks are attached to a card Fibre Channel


Is simple method check attached disk to HBA card .

1strep we net check pci of Fibre card .

dmesg | grep lpfc
#or
lspci | grep Fiber

 

 

lspci | grep "Fibre Channel"
0a:04.0 Fibre Channel: Emulex Corporation Helios-X LightPulse Fibre Channel Host Adapter (rev 01)
0a:04.1 Fibre Channel: Emulex Corporation Helios-X LightPulse Fibre Channel Host Adapter (rev 01)

 

Nex step we must list  disk by-patch and find in patch pci number

ls -l /dev/disk/by-path/ | grep 0a:04.0
[root@Ezebiusz_proliant~]# ls -l /dev/disk/by-path/ | grep 0a:04.0
... pci-0000:0a:04.0-fc-...:0x0000000000000000 -> ../../sdm
... pci-0000:0a:04.0-fc-...:0x0001000000000000 -> ../../sdn
... pci-0000:0a:04.0-fc-...:0x0002000000000000 -> ../../sdo
... pci-0000:0a:04.0-fc-...:0x0003000000000000 -> ../../sdp
... pci-0000:0a:04.0-fc-...:0x0004000000000000 -> ../../sdq
... pci-0000:0a:04.0-fc-...:0x0005000000000000 -> ../../sdr
... pci-0000:0a:04.0-fc-...:0x0006000000000000 -> ../../sds
... pci-0000:0a:04.0-fc-...:0x0007000000000000 -> ../../sdt
... pci-0000:0a:04.0-fc-...:0x0008000000000000 -> ../../sdu
... pci-0000:0a:04.0-fc-...:0x0009000000000000 -> ../../sdv
... pci-0000:0a:04.0-fc-...:0x000a000000000000 -> ../../sdw
... pci-0000:0a:04.0-fc-...:0x000b000000000000 -> ../../sdx
... pci-0000:0a:04.0-fc-...:0x0000000000000000 -> ../../sda
... pci-0000:0a:04.0-fc-...:0x0001000000000000 -> ../../sdb
... pci-0000:0a:04.0-fc-...:0x0002000000000000 -> ../../sdc
... pci-0000:0a:04.0-fc-...:0x0003000000000000 -> ../../sdd
... pci-0000:0a:04.0-fc-...:0x0004000000000000 -> ../../sde
... pci-0000:0a:04.0-fc-...:0x0005000000000000 -> ../../sdf
... pci-0000:0a:04.0-fc-...:0x0006000000000000 -> ../../sdg
... pci-0000:0a:04.0-fc-...:0x0007000000000000 -> ../../sdh
... pci-0000:0a:04.0-fc-...:0x0008000000000000 -> ../../sdi
... pci-0000:0a:04.0-fc-...:0x0009000000000000 -> ../../sdj
... pci-0000:0a:04.0-fc-...:0x000a000000000000 -> ../../sdk
... pci-0000:0a:04.0-fc-...:0x000b000000000000 -> ../../sdl
  
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s