Configuring FCoE for the MZ520 in SLES
This section uses SLES 11.3 as an example. For details about the configuration on other OSs, see the OS documentation provided by the OS vendors.
To configure FCoE in SLES 11.3, perform the following steps:
- If NPAR is enabled, set the working mode of the PFs that need to use the FCoE function to FCoE (NIC+FCoE). For details, see Configuring NPAR. After the configuration, check and record the NIC MAC address of the PF working in NIC+FCoE mode.
If NPAR is disabled, skip this step.
- Install the Ethernet driver and the FCoE driver in SLES 11.3. For details, see Installing and Uninstalling the MZ520 Drivers in Linux.
- Check whether the lldpad and open-fcoe RPM packages have been installed. If yes, go to 6.Figure 4-287 Checking whether lldpad and open-fcoe RPM packages have been installed
- Copy the libconfig9, libHBAAPI2, libhbalinux2, lldpad and open-fcoe RPM packages to the system.Figure 4-288 RPM packages required for installing Open-FCoE in SLES 11.3
The OS image files contain the RPM packages required for FCoE configuration. The names of the RPM packages for different Linux systems are slightly different.
- Go to the directory where the RPM packages are located, and run the rpm -ivh command to install the RPM packages.
# rpm -ivh libHBAAPI2-2.2.7-0.7.33.x86_64.rpm # rpm -ivh libhbalinux2-1.0.14-0.7.33.x86_64.rpm # rpm -ivh libconfig9-1.4.9.0.7.32.x86_64.rpm # rpm -ivh lldpad-0.9.45-0.11.24.x86_64.rpm # rpm -ivh open-fcoe-1.0.26-0.17.4.x86_64.rpm
- Enable automatic start of lldpad and fcoe services upon server startup.
# chkconfig boot.lldpad on # chkconfig boot.fcoe on
The names of lldpad and fcoe services vary according to the Linux system. Run the following commands to enable automatic start of lldpad and fcoe services upon server startup:
# chkconfig lldpad on
# chkconfig fcoe on
- Upload FCoE drivers.
# modprobe bnx2x # modprobe cnic # modprobe bnx2fc
- Create the file /etc/fcoe /cfg-<nic_port_name> and write FCoE configurations into the file. nic_port_name in the file name indicates the name of the NIC port (or example, eth0) with FCoE enabled. You can identify the NIC port name from the NIC MAC address recorded in 1.
# echo FCOE_ENABLE=\"yes\" > /etc/fcoe/cfg-eth0 # echo DCB_REQUIRED=\"no\" >> /etc/fcoe/cfg-eth0 # echo AUTO_VLAN=\"yes\" >> /etc/fcoe/cfg-eth0
- Enable the NIC port.
# ifconfig eth0 up
- Restart the lldpad and fcoe services.
# rclldpad restart # rcfcoe restart
- Disable the lldpad service for the NIC port.
# lldptool set-lldp -i eth0 adminStatus=disabled
- Restart the lldpad and fcoe services.
# rclldpad restart # rcfcoe restart
- Run the fcoeadm -i command to query FCoE port information in the current system.Figure 4-289 Querying FCoE port information
Before running the fcoeadm -i command, ensure that an FCoE connection has been established between the MZ520 and the switch module to which the MZ520 is connected.
- Run the ifconfig command to query information of the NIC port corresponding to the FCoE port and obtain the FCoE VLAN ID (1002) allocated by the FCF.Figure 4-290 Querying information of the NIC port corresponding to the FCoE port