To see which devices are accessible by your fibrechannel controller cards and the fabric, just use fcinfo.
First, find out which fibrechannel host adapters you have on your machine:
Here you see the firmware levels and types of your controller cards. You will also see the WWPN (port WWN) and the WWNN (Node WWN) of your controller. As each of the cards do only have one port, you will see only one WWPN per WWN.
To find out which devices can be reached by these controllers, use the remote-port option of fcinfo. You will have to give the port to be controlled as an argument to "-p":
Example:
You see through the port with the WWPN 2100001b321fe69b (which is on c5 which can be seen on the first fcinfo command output) three devices: two scsi volumes and one other target: This is the fiberchannel controller on another machine.
The fcinfo command helped me very much to find out where I have a configuration error on my fibrechannel fabric.
Just as a side note: the last scsi device in the example above has the WWNN
First, find out which fibrechannel host adapters you have on your machine:
# fcinfo hba-port
HBA Port WWN: 2100001b321fe69b
OS Device Name: /dev/cfg/c5
Manufacturer: QLogic Corp.
Model: 375-3355-01
Firmware Version: 4.2.2
FCode/BIOS Version: BIOS: 1.24; fcode: 1.24; EFI: 1.8;
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 2000001b321fe69b
HBA Port WWN: 2100001b321fbd9c
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: 375-3355-01
Firmware Version: 4.2.2
FCode/BIOS Version: BIOS: 1.24; fcode: 1.24; EFI: 1.8;
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 2000001b321fbd9cHere you see the firmware levels and types of your controller cards. You will also see the WWPN (port WWN) and the WWNN (Node WWN) of your controller. As each of the cards do only have one port, you will see only one WWPN per WWN.
To find out which devices can be reached by these controllers, use the remote-port option of fcinfo. You will have to give the port to be controlled as an argument to "-p":
Example:
# fcinfo remote-port -p 2100001b321fe69b
Remote Port WWN: 220000d0232c50ab
Active FC4 Types: SCSI
SCSI Target: yes
Node WWN: 200000d0232c50ab
Remote Port WWN: 2100001b321f9eb3
Active FC4 Types:
SCSI Target: no
Node WWN: 2000001b321f9eb3
Remote Port WWN: 210000d0231c50be
Active FC4 Types: SCSI
SCSI Target: yes
Node WWN: 200000d0231c50beYou see through the port with the WWPN 2100001b321fe69b (which is on c5 which can be seen on the first fcinfo command output) three devices: two scsi volumes and one other target: This is the fiberchannel controller on another machine.
The fcinfo command helped me very much to find out where I have a configuration error on my fibrechannel fabric.
Just as a side note: the last scsi device in the example above has the WWNN
200000d0231c50be. This is one of the paths which are constructing the virtual scsi_vhci device c6t600D0230006C1C4C0C50BE5BC9D49100d0 mentioned in my entry about scsi_vhci (MPxIO) names.
Leave a comment