Chapter 6: Installing the Linux Drivers
84
where XPORT_NAME=bcm570x-xxyyzz
xx - pci bus number of the NX2 device
yy - pci device number of the NX2 device
zz - pci function number of the NX2 device
Network interface to iscsi transport name binding can be obtained by
executing:
dmesg | grep "bnx2i: netif"
Sample output in a system with two NetXtreme II devices:
bnx2i: netif=eth1, iscsi=bcm570x-050000
bnx2i: netif=eth0, iscsi=bcm570x-030000
If you want to switch back to using the software initiator, enter the
following:
iscsiadm --mode node --targetname iqn.2004-
06.com.broadcom:tg1 \
--portal 192.168.1.100 --op=update \
--name=node.transport_name --value=tcp
Making Connections to iSCSI Targets Refer to open-iscsi documentation for a comprehensive list of iscsiadm
commands. The following is a sample list of commands to discovery
targets and to create iscsi connections to a target:
Adding static entry
iscsiadm -m node -p <ipaddr[:port]> -T iqn.2007-
05.com.broadcom:target1 -o new
iSCSI target discovery using 'SendTargets'
iscsiadm -m discovery --type sendtargets -p
<ipaddr[:port]>
Login to target using 'iscsiadm' command
iscsiadm --mode node --targetname <iqn.targetname> --
portal <ipaddr[:port]> --login
List all drives active in the system
'fdisk -l'