Dell EqualLogic PS6210XS EqualLogic Host Integration Tools for Linux Version 1 - Page 119

Step 3: Con ehcmd to Use the Offload iSCSI Initiator, Step 4: Discover iSCSI Targets

Page 119 highlights

eth3 Link encap:Ethernet HWaddr A4:BA:DB:38:8B:41 inet addr:x.x.x.y Bcast:x.x.x.z Mask:255.255.254.0 To determine the correct ISOE MAC address: 1. Add 1 to the hexadecimal TCP-IP MAC address reported by ifconfig. 2. Update the appropriate interface (iface) records in iscsiadm to associate each ISOE MAC address with a new, unique IP address. For example: # iscsiadm -m iface -I bnx2i.a4:ba:db:38:8b:40 -o update -n iface.ipaddress -v 1 xx.xx.x.x bnx2i.a4:ba:db:38:8b:40 updated. # iscsiadm -m iface -I bnx2i.a4:ba:db:38:8b:42 -o update -n iface.ipaddress -v xx.xx.x.y bnx2i.a4:ba:db:38:8b:42 updated. After updating the iface records, you should see output similar to the following display: # iscsiadm -m iface default tcp,,,, iser iser,,,, bnx2i.a4:ba:db:38:8b:42 bnx2i,a4:ba:db:38:8b:42,1.2.3.5,, bnx2i.a4:ba:db:38:8b:40 bnx2i,a4:ba:db:38:8b:40,1.2.3.4,, Step 3: Configure ehcmd to Use the Offload iSCSI Initiator By default, ehcmd uses the software initiator to connect to iSCSI targets. To specify using the Broadcom iSCSI offload initiator, edit the /etc/equallogic/eql.conf file and set the IscsiInitiator parameter: IscsiInitiator = tcp to: IscsiInitiator = bnx2i Restart the ehcmd daemon with the following command: # service ehcmd restart In version 2.0-872 and later of the Linux iSCSI initiator package, the iscsid service can be started on an as-needed basis. If iscsid is not running (that is, typically, because there are no currently active iSCSI sessions), ehcmd will not recognize any bnx2i adapters, even if they are properly configured with an IP address. To manually start the iscsid service, you can either log in to at least one iSCSI session with the iscsiadm command, or you can run the following command: $ service iscsid force-start Step 4: Discover iSCSI Targets After configuring the new interfaces and restarting ehcmd, rediscover the targets on the Broadcom interfaces. The iSCSI initiator initiates discovery on all interfaces using the TCP transport by default, so in this scenario it is necessary to explicitly list the bnx2i interfaces: # iscsiadm -m discovery -t st -p group-IP-address -I iface -I iface For example: # iscsiadm -m discover -t st -p xxx.x.x.xx -I bnx2i.a4:ba:db:38:8b:40 -I bnx2i.a4:ba:db:38:8b:42 Enabling iSCSI Offload on HIT/Linux 119

  • 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

eth3 Link encap:Ethernet HWaddr A4:BA:DB:38:8B:41
inet addr:x.x.x.y Bcast:x.x.x.z Mask:255.255.254.0
To determine the correct ISOE MAC address:
1.
Add 1 to the hexadecimal TCP-IP MAC address reported by
ifconfig
.
2.
Update the appropriate interface (iface) records in iscsiadm to associate each ISOE MAC address with a new, unique IP address.
For example:
# iscsiadm -m iface -I bnx2i.a4:ba:db:38:8b:40 -o update -n iface.ipaddress
-v 1 xx.xx.x.x
bnx2i.a4:ba:db:38:8b:40 updated.
# iscsiadm -m iface -I bnx2i.a4:ba:db:38:8b:42 -o update -n iface.ipaddress
-v xx.xx.x.y
bnx2i.a4:ba:db:38:8b:42 updated.
After updating the iface records, you should see output similar to the following display:
# iscsiadm -m iface
default tcp,<empty>,<empty>,<empty>,<empty>
iser iser,<empty>,<empty>,<empty>,<empty>
bnx2i.a4:ba:db:38:8b:42 bnx2i,a4:ba:db:38:8b:42,1.2.3.5,<empty>,<empty>
bnx2i.a4:ba:db:38:8b:40 bnx2i,a4:ba:db:38:8b:40,1.2.3.4,<empty>,<empty>
Step 3: Configure ehcmd to Use the Offload iSCSI
Initiator
By default, ehcmd uses the software initiator to connect to iSCSI targets. To specify using the Broadcom iSCSI offload initiator, edit
the
/etc/equallogic/eql.conf
file and set the
IscsiInitiator
parameter:
IscsiInitiator = tcp
to:
IscsiInitiator = bnx2i
Restart the ehcmd daemon with the following command:
# service ehcmd restart
In version 2.0-872 and later of the Linux iSCSI initiator package, the iscsid service can be started on an as-needed basis. If iscsid is not
running (that is, typically, because there are no currently active iSCSI sessions), ehcmd will not recognize any bnx2i adapters, even if they
are properly configured with an IP address. To manually start the iscsid service, you can either log in to at least one iSCSI session with the
iscsiadm
command, or you can run the following command:
$ service iscsid force-start
Step 4: Discover iSCSI Targets
After configuring the new interfaces and restarting ehcmd, rediscover the targets on the Broadcom interfaces. The iSCSI initiator initiates
discovery on all interfaces using the TCP transport by default, so in this scenario it is necessary to explicitly list the bnx2i interfaces:
# iscsiadm -m discovery -t st -p
group-IP-address
-I
iface
-I
iface
For example:
# iscsiadm –m discover –t st –p xxx.x.x.xx –I bnx2i.a4:ba:db:38:8b:40
–I bnx2i.a4:ba:db:38:8b:42
Enabling iSCSI Offload on HIT/Linux
119