Q-Logic 8100 SERIES Network Cables User Manual


 
8–Configuring FCoE in a Linux Environment
N_Port ID Virtualization
FE0254601-00 A 8-25
A QLogic 8100 Series Adapter FCoE driver—qla2xxx, latest version.
QLogic 8100 Series Adapter FCoE firmware—the FCoE firmware is
bundled with the multi boot image. Use the latest version.
Creating Virtual Ports
This subsection describes how to create virtual adapter ports using the sysfs
interface. For more information about using sysfs to configure FCoE drivers,
refer to “Configuring Driver Parameters Using sysfs” on page 8-8.
To create a virtual adapter port, perform the following steps on the server that
houses the QLogic 8100 Series Adapter:
1. In sysfs, identify the QLogic 8100 Series Adapter port entry, which typically
resides in the directory /sys/class/scsi_host/hostX/. For
information about determining the value of X to identify the SCSI host ID,
refer to “Identifying the SCSI Host ID” on page 8-19.
2. Confirm that the link is up between the adapter port and the FCoE switch by
issuing the following command:
#cat /sys/class/scsi_host/hostX/state
Link Up - F_Port
3. Create a virtual port by typing the Echo command by issuing the following
command:
#echo wwpn:wwnn > /sys/class/scsi_host/hostX/vport_create
In this command, wwpn and wwnn are the WWPN and WWNN of the virtual
port, and X is the adapter SCSI host ID. Choose a WWPN and a WWNN
that do not conflict with another virtual or physical adapter port in the SAN.
For example:
#echo "2100001b320ff6c2:2000001b320ff6c2" >
/sys/class/scsi_host/host6/vport_create
If the echo command succeeds, there is no acknowledgement. If the echo
command fails with an invalid argument error, it is likely that there is a
problem with the link between the adapter port and the FCoE switch.
NOTE:
QLogic 8100 Series Adapters support a maximum of 63 virtual ports per
adapter port in RHEL 5 environments. This number may be limited by the
capabilities of the FCoE switch.