Dell Broadcom NetXtreme Family of Adapters Broadcom NetXtreme II Network Adapt - Page 42

Making Connections to iSCSI Targets, Maximize Offload iSCSI Connections, Linux iSCSI Offload FAQ

Page 42 highlights

Linux Driver Software: Broadcom NetXtreme II Network Adapter User Guide iface.transport_name = bnx2i Ensure that the iface.hwaddress is in lower case format. If you wish to switch back to use the software initiator, use the following: iscsiadm --mode node --targetname iqn.2004-06.com.broadcom:tg1 \ --portal 192.168.1.100 --op=update \ --name=iface_file_name where the iface file includes the following information: iface.net_ifacename = ethX iface.iscsi_ifacename = iface.transport_name = tcp Making Connections to iSCSI Targets Refer to open-iscsi documentation for a comprehensive list of iscsiadm commands. This is a sample list of commands to discovery targets and to create iscsi connections to a target. Add static entry iscsiadm -m node -p -T iqn.2007-05.com.broadcom:target1 -o new iSCSI target discovery using 'SendTargets' iscsiadm -m discovery --type sendtargets -p Bind iSCSI target to Broadcom NX2 transport (bnx2i) iscsiadm -m node -p -T --op=update --name=iface_file_name Login to target using 'iscsiadm' command iscsiadm --mode node --targetname --portal --login List all drives active in the system fdisk -l Maximize Offload iSCSI Connections With default driver parameters set, which includes 128 outstanding commands, bnx2i can offload the following number of connections: BCM5708: 28 BCM5709: 43 BCM5771x: 128 This is not a hard limit, but just a simple on-chip resource allocation math. bnx2i will be able to offload > 28 connections on 1G devices by reducing the shared queue size, which in turn limits the maximum outstanding tasks on a connection. See Setting Values for Optional Properties for information on sq_size and rq_size. The driver logs the following message to syslog when the maximum allowed connection offload limit is reached - "bnx2i: unable to allocate iSCSI context resources". Linux iSCSI Offload FAQ Not all Broadcom NetXtreme II adapters support iSCSI offload. The iSCSI session will not recover after a hot remove and hot plug. For MPIO to work properly, iSCSI nopout should be enabled on each iSCSI session. Refer to open-iscsi documentation for procedures on setting up noop_out_interval and noop_out_timeout values. In the scenario where multiple CNIC devices are in the system and the system is booted via Broadcom's iSCSI boot solution, ensure that the iscsi node under /etc/iscsi/nodes for the boot target is bound to the NIC that is used for booting. Please read all Restrictions and Disclaimers. file:///T|/htdocs/NETWORK/BroadCom/71921/NetXtremeII/en/linux.htm[9/26/2012 3:28:46 PM]

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224

Linux Driver Software: Broadcom NetXtreme II Network Adapter User Guide
file:///T|/htdocs/NETWORK/BroadCom/71921/NetXtremeII/en/linux.htm[9/26/2012 3:28:46 PM]
iface.transport_name = bnx2i
Ensure that the iface.hwaddress is in lower case format.
If you wish to switch back to use the software initiator, use the following:
iscsiadm --mode node --targetname iqn.2004-06.com.broadcom:tg1 \
--portal 192.168.1.100 --op=update
\
--name=iface_file_name
where the iface file includes the following information:
iface.net_ifacename = ethX
iface.iscsi_ifacename = <name of the iface file>
iface.transport_name = tcp
Making Connections to iSCSI Targets
Refer to open-iscsi documentation for a comprehensive list of
iscsiadm
commands. This is a sample list of commands to
discovery targets and to create iscsi connections to a target.
Add 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]>
Bind iSCSI target to Broadcom NX2 transport (bnx2i)
iscsiadm -m node -p <ipaddr[:port]> -T <iqn.targetname> --op=update --name=iface_file_name
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
Maximize Offload iSCSI Connections
With default driver parameters set, which includes 128 outstanding commands, bnx2i can offload the following number of
connections:
BCM5708: 28
BCM5709: 43
BCM5771x: 128
This is not a hard limit, but just a simple on-chip resource allocation math. bnx2i will be able to offload > 28 connections on
1G devices by reducing the shared queue size, which in turn limits the maximum outstanding tasks on a connection. See
Setting Values for Optional Properties
for information on sq_size and rq_size. The driver logs the following message to syslog
when the maximum allowed connection offload limit is reached - "bnx2i: unable to allocate iSCSI context resources".
Linux iSCSI Offload FAQ
Not all Broadcom NetXtreme II adapters support iSCSI offload.
The iSCSI session will not recover after a hot remove and hot plug.
For MPIO to work properly, iSCSI nopout should be enabled on each iSCSI session. Refer to open-iscsi documentation
for procedures on setting up
noop_out_interval
and
noop_out_timeout
values.
In the scenario where multiple CNIC devices are in the system and the system is booted via Broadcom's iSCSI boot
solution, ensure that the iscsi node under /etc/iscsi/nodes for the boot target is bound to the NIC that is used for
booting.
Please read all
Restrictions and Disclaimers
.