9–Configuring iSCSI Protocol
iSCSI Offload in Linux Server
128
83840-546-00 N
User Application, qlgc_iscsiuio
Before attempting to create iSCSI connections, install and run the qlgc_iscsiuio
daemon. The driver cannot establish connections to the iSCSI target without the
daemon's assistance.
1.
Install the qlgc_iscsiuio source package:
#
tar -xvzf iscsiuio-<version>.tar.gz
2.
Change directory to the location where iscsiuio is extracted:
#
cd iscsiuio-<version>
3.
Compile and install as follows:
#
./configure
#
make
#
make install
4.
Check that the iscsiuio version matches with the source package:
#
qlgc_iscsiuio -v
5.
Start brcm_iscsiuio:
#
qlgc_iscsiuio
Bind iSCSI Target to Cavium iSCSI Transport Name
In Linux, each iSCSI port is an interface known as
iface
. By default, the open-iscsi
daemon connects to discovered targets using a software initiator (transport name
= tcp) with the iface name
default
. To offload the iSCSI connection to the C-NIC
device, explicitly use the ifaces whose names have the prefix
bnx2i
. The bnx2i
ifaces are created automatically using the iscsiadm CLI utility to issue the
following command:
iscsiadm -m iface
For example:
linux-71lr:~ #
iscsiadm -m iface
default tcp,<empty>,<empty>,<empty>,<empty>
bnx2i.00:17:a4:77:ec:3b bnx2i,00:17:a4:77:ec:3b,<empty>,<empty>
bnx2i.00:17:a4:77:ec:3a bnx2i,00:17:a4:77:ec:3a,<empty>,<empty>
Where the
iface
file includes the following information for RHEL 5.4, RHEL 5.5,
and SLES 11 SP1:
iface.net_ifacename = ethX
iface.iscsi_ifacename = <iface file>
iface.hwaddress = XX:XX:XX:XX:XX:XX