Q-Logic 8100 SERIES 用户手册

下载
页码 348
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 
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 
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.