Setting firmware/offload engine parameter "Large_Frames" on QLogic HBAs

117 views
Skip to first unread message

Frank Fegert

unread,
Aug 5, 2015, 4:33:26 PM8/5/15
to open-...@googlegroups.com
Hello all,

the short version of my question:

Is it possible to set firmware/offload engine parameters like e.g.
"Large_Frames" on QLogic HBAs via the "iscsiadm -m fw [...]" command?


The slightly longer version of my question ;-)

I'm having some difficulties trying to configure some HBA settings -
namely the IP address, subnet mask, iSCSI alias, iSCSI "Large_Frames"
and possibly other parameters too - from within the server OS using
the qaucli utility. The system parameters are:
- HBAs: QME/QMD8262, Dell OEM, FW Version: 4.18.04
- QConvergeConsole CLI "qaucli": Version 1.1.3 (Build 49)
- OS:
- Debian 7
- open-iscsi-2.0.873-3 (also tried a newer version from GIT)
- Kernel 3.16.7
- Driver "qla4xxx" v5.04.00-k6

I try to set e.g. the "Large_Frames" parameter in the iSCSI offload
engine of a HBA, which is already configured like shown below in the
example output titled "Before qaucli", with the command:
/opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli -iscsi -n 0 LRGFRM on

After this, the "Large_Frames" parameter ends up being set correctly,
but in the process, the IP address, subnet mask, gateway and iSCSI
name become corrupted like shown below in the example output titled
"After qaucli".

From QLogic support i got a referral towards Dell, since it's a OEM
HBA. From Dell i got the answer that Debian isn't a supported OS. So
no help from the vendor side of this issue :-/

I'd rather refrain from using the qaucli utility altogether, but un-
fortunately i haven't been able to figure out if and how this can be
achieved with the "iscsiadm -m fw [...]" or a similar command.

Thanks & best regards,

Frank Fegert



#### Before qaucli - Begin ###########################################
hostname:~# /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli -iscsi -c 0
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /root
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/iscli.cfg
Loading iSCSI Data ...
Loading iSCSI Instance: 1 HBA: 1 Physical Port: 1 (QME8262 , 84-8F-69-35-FC-70) ...
Loading iSCSI Instance: 2 HBA: 1 Physical Port: 2 (QME8262 , 84-8F-69-35-FC-71) ...

*******************************
*** Displaying Port inst=0 ***
*******************************
*** Displaying HBA (Adapter) Level Information inst=0 ***
HBA_Alias :
*** Displaying Port General Summary Information inst=0 ***
0. HBA: 0 Port: 0 HBA Port Instance: 0 HBA Model: QME8262
HBA Serial Number: (RFE1449L34695) FW Version: 4.18.04 Type: Fiber
IP Address: 10.0.0.5
Alias:
iSCSI Name: iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4
PCI Function Number: 4
User Defined IP Address.
IPv4 Address : 10.0.0.5
Gateway : 0.0.0.0
Subnet Mask : 255.255.255.0

iSNS : Disabled.
*** Displaying ISCSI Settings inst=0 ***
Force_Negotiate_Main_iSCSI_Keys : off
iSCSI_Send_Markers : off(*)
iSCSI_Header_Digests : on
iSCSI_Data_Digests : on
iSCSI_Immediate_Data : on
iSCSI_Initial_R2T : on
iSCSI_Data_Seq_In_Order : on(*)
iSCSI_Data_PDU_In_Order : on(*)
iSCSI_CHAP_Auth : off(*)
iSCSI_Bidi_CHAP_Auth : on(*)
iSCSI_Snack : off
iSCSI_Discovery_Logout : on
iSCSI_Strict_Login : off
iSCSI_Error_Recovery_Level : 0(*)
iSCSI_Name : iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4
iSCSI_Alias :
*** Displaying Firmware Settings inst=0 ***
FW_Marker : on(*)
FW_Stat_Alarm : off(*)
FW_Accept_AEN : off(*)
FW_Access_Control : off(*)
FW_Session_Mode : on(*)
FW_Initiator_Mode : on(*)
FW_Target_Mode : off(*)
FW_Fast_Posting : off(*)
FW_Sense_Buffer_Desc : off(*)
AFW_Device_Timeouts : on
AFW_AutoConnect : off
AFW_Serlz_Task_Mngmt : on
Large_Frames : on
DevType : 0(*)
ExeThrottle : 0
FirstBurstLen : 32764
KeepAliveTO : 0
DefaultTime2Retain : 0(*)
DefaultTime2Wait : 0(*)
MaxBurstLen : 32764
MaxOutstandingR2T : 0
MaxRxDataSegmentLen : 2016(*)
Port : 38368(*)
ACB_Version : 2(*)
*** Displaying IPv4 Settings inst=0 ***
AFW_Delayed_Ack : on
IP_Fragmentation : on(*)
IP_ARP_Redirect : off
VLAN_Enable : off
802.1pPriority : 4
VLAN_ID : 2000
Gratuitous_ARP : off
Enable_Type_of_Service : off
TCP_DHCP : off
TCP_Nagle : on
TCP_Timer_Scale : 4(*)
TCP_Time_Stamp : off
TCP_Window_Scale_Enable : off
TCP_Window_Scale : 165
Secondary_DNS : (*)
Secondary_IP_Address : (*)
Task_Management_Timeout : 10
IPv4TOS : 191
IPv4TTL : 6
P3P_TCP_Max_Window_Size : 0
*** Displaying Remaining parameters inst=0 ***
ACB_Supported : off(*)
Values noted with (*) are read only.
#### Before qaucli - End #############################################

#### After qaucli - Begin ############################################
hostname:~# /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli -iscsi -c 0
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /root
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/iscli.cfg
Loading iSCSI Data ...
Loading iSCSI Instance: 1 HBA: 1 Physical Port: 1 (QME8262 , 84-8F-69-35-FC-70) ...
Loading iSCSI Instance: 2 HBA: 1 Physical Port: 2 (QME8262 , 84-8F-69-35-FC-71) ...

*******************************
*** Displaying Port inst=0 ***
*******************************
*** Displaying HBA (Adapter) Level Information inst=0 ***
HBA_Alias :
*** Displaying Port General Summary Information inst=0 ***
0. HBA: 0 Port: 0 HBA Port Instance: 0 HBA Model: QME8262
HBA Serial Number: (RFE1449L34695) FW Version: 4.18.04 Type: Fiber
IP Address: 252.127.0.0 (Not Active)
Alias:
iSCSI Name: <&=EF=BF=BDx
PCI Function Number: 4
User Defined IP Address.
IPv4 Address : 252.127.0.0
Gateway : 66.130.0.0
Subnet Mask : 166.107.209.120

iSNS : Disabled.
*** Displaying ISCSI Settings inst=0 ***
Force_Negotiate_Main_iSCSI_Keys : off
iSCSI_Send_Markers : off(*)
iSCSI_Header_Digests : off
iSCSI_Data_Digests : on
iSCSI_Immediate_Data : off
iSCSI_Initial_R2T : off
iSCSI_Data_Seq_In_Order : on(*)
iSCSI_Data_PDU_In_Order : on(*)
iSCSI_CHAP_Auth : off(*)
iSCSI_Bidi_CHAP_Auth : on(*)
iSCSI_Snack : on
iSCSI_Discovery_Logout : off
iSCSI_Strict_Login : on
iSCSI_Error_Recovery_Level : 3(*)
iSCSI_Name : <&=EF=BF=BDx
iSCSI_Alias :
*** Displaying Firmware Settings inst=0 ***
FW_Marker : on(*)
FW_Stat_Alarm : off(*)
FW_Accept_AEN : off(*)
FW_Access_Control : off(*)
FW_Session_Mode : on(*)
FW_Initiator_Mode : on(*)
FW_Target_Mode : off(*)
FW_Fast_Posting : off(*)
FW_Sense_Buffer_Desc : off(*)
AFW_Device_Timeouts : on
AFW_AutoConnect : off
AFW_Serlz_Task_Mngmt : on
Large_Frames : off
DevType : 0(*)
ExeThrottle : 0
FirstBurstLen : 0
KeepAliveTO : 0
DefaultTime2Retain : 0(*)
DefaultTime2Wait : 0(*)
MaxBurstLen : 0
MaxOutstandingR2T : 0
MaxRxDataSegmentLen : 128(*)
Port : 0(*)
ACB_Version : 2(*)
*** Displaying IPv4 Settings inst=0 ***
AFW_Delayed_Ack : on
IP_Fragmentation : on(*)
IP_ARP_Redirect : off
VLAN_Enable : off
802.1pPriority : 3
VLAN_ID : 2064
Gratuitous_ARP : off
Enable_Type_of_Service : off
TCP_DHCP : off
TCP_Nagle : on
TCP_Timer_Scale : 0(*)
TCP_Time_Stamp : on
TCP_Window_Scale_Enable : off
TCP_Window_Scale : 54
Secondary_DNS : (*)
Secondary_IP_Address : (*)
Task_Management_Timeout : 10
IPv4TOS : 2
IPv4TTL : 64
P3P_TCP_Max_Window_Size : 0
*** Displaying Remaining parameters inst=0 ***
ACB_Supported : off(*)
Values noted with (*) are read only.
#### After qaucli - End ##############################################

Anish Bhatt

unread,
Aug 5, 2015, 4:49:41 PM8/5/15
to open-...@googlegroups.com
Not via the iscsiadm -m fw command, that mode is currently only used to fetch ibft/discovery information from fw and proceed to login if requested.
-Anish
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+...@googlegroups.com.
> To post to this group, send email to open-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.

Michael Christie

unread,
Aug 6, 2015, 11:49:31 AM8/6/15
to open-...@googlegroups.com

On Aug 5, 2015, at 3:33 PM, Frank Fegert <fra.no...@gmx.de> wrote:

> achieved with the "iscsiadm -m fw [...]" or a similar command.

You want the iscsiadm host flashnode mode, and I think the setting is the iface mtu one. I do not have a qlogic card handy, but I think the command would be something like:

iscsiadm -m $host_number -C flashnode -A ipv4 -x flashnode_index -o update -n iface.mtu -v 8192


for 8192 replace with whatever frame size you wanted that the card supports. For -A the possible settings are ipv4 or ipv6.

For the -X flashnode_index setting then you do

iscsiadm -m host_number -C flashnode

This will print out the targets stored in the card. The number after qla4xxx will be the index of each entry in flash that you would use for -x.


I think there is also a way to set it as the default for all targets on a host/iface by using the iscsiadm -m iface mode, but I cannot remember.

Adheer Chandravanshi

unread,
Aug 7, 2015, 6:49:59 AM8/7/15
to open-...@googlegroups.com


> -----Original Message-----
> From: open-...@googlegroups.com [mailto:open-...@googlegroups.com]
> On Behalf Of Michael Christie
> Sent: Thursday, August 06, 2015 9:19 PM
> To: open-...@googlegroups.com
> Subject: Re: Setting firmware/offload engine parameter "Large_Frames" on
> QLogic HBAs
>
>
Frank,
As Mike suggested, you can use the `iscsiadm -m iface` command to set the MTU size for the iscsi iface.

Run:
# iscsiadm -m iface -I <iface_name> -o update -n iface.mtu -v <mtu_value>
# iscsiadm -m iface -I <iface_name> -o apply

The flashnode option lets user manage only the node entries in the adapter flash.
But that does not have the option to modify MTU.

--
Adheer


Frank Fegert

unread,
Aug 7, 2015, 10:41:31 AM8/7/15
to open-...@googlegroups.com
Hello Anish, Mike and Adheer,

first of all, thank you very much for your kind and prompt replies!


On Fri, Aug 07, 2015 at 10:49:48AM +0000, Adheer Chandravanshi wrote:
> Frank,
> As Mike suggested, you can use the `iscsiadm -m iface` command to set the MTU size for the iscsi iface.
>
> Run:
> # iscsiadm -m iface -I <iface_name> -o update -n iface.mtu -v <mtu_value>
> # iscsiadm -m iface -I <iface_name> -o apply
>
> The flashnode option lets user manage only the node entries in the adapter flash.
> But that does not have the option to modify MTU.

Sorry, i should have mentioned that i've already tried this ... mea
culpa! Anyway, just to be really sure, i tried this suggestion again.
Unfortunately this does not yield the expected result, please see the
output below.

Once i manage to set the "Large_Frames" with the qaucli to "on", i get
a report in the storage array log about a successful login with "Jumbo
Frame length". As described in my initial post, setting parameters with
"qaucli" unfortunately messes up other unrelated parameters in the HBA
firmware beyond recognition, though. Comparing the before and after HBA
firmware settings it looks - to my non-coder eye ;-) - like there is
some kind of bit-shift issue going on with qaucli.

From the two documents provided by QLogic:
"QLogic iSCSI Solution for Transitioning to the Open-iSCSI Model"
"User's Guide: IOCTL to Open-iSCSI Management"
i was under the impression, that all qaucli functionality would be
moved to iscsiadm. Or was this just supposed to cover the generic
target/initiator configuration?

Thanks & best regards,

Frank Fegert


#### Begin: Initial interface configuration (non-jumbo frames) ######
user@host$ iscsiadm -m node -T iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 -I qla4xxx.84:8f:69:35:fc:70.ipv4.0
# BEGIN RECORD 2.0-873
node.name = iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002
node.tpgt = 1
node.startup = manual
node.leading_login = No
iface.hwaddress = 84:8f:69:35:fc:70
iface.ipaddress = 10.0.0.5
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:70.ipv4.0
iface.net_ifacename = <empty>
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
node.discovery_address = target-fqdn
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 12
node.session.xmit_thread_priority = -20
node.session.cmds_max = 1024
node.session.queue_depth = 128
node.session.nr_sessions = 1
node.session.auth.authmethod = None
node.session.auth.username = ********
node.session.auth.password = ********
node.session.auth.username_in = ********
node.session.auth.password_in = ********
node.session.timeo.replacement_timeout = 10
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 30
node.session.err_timeo.tgt_reset_timeout = 30
node.session.err_timeo.host_reset_timeout = 60
node.session.iscsi.FastAbort = No
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.session.iscsi.DefaultTime2Retain = 0
node.session.iscsi.DefaultTime2Wait = 2
node.session.iscsi.MaxConnections = 1
node.session.iscsi.MaxOutstandingR2T = 1
node.session.iscsi.ERL = 0
node.conn[0].address = 10.0.0.2
node.conn[0].port = 3260
node.conn[0].startup = manual
node.conn[0].tcp.window_size = 524288
node.conn[0].tcp.type_of_service = 0
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.auth_timeout = 45
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.DataDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
# END RECORD

user@host$ iscsiadm -m node -T iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 -I qla4xxx.84:8f:69:35:fc:71.ipv4.0
# BEGIN RECORD 2.0-873
node.name = iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002
node.tpgt = 1
node.startup = manual
node.leading_login = No
iface.hwaddress = 84:8f:69:35:fc:71
iface.ipaddress = 10.0.0.6
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:71.ipv4.0
iface.net_ifacename = <empty>
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
node.discovery_address = target-fqdn
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 12
node.session.xmit_thread_priority = -20
node.session.cmds_max = 1024
node.session.queue_depth = 128
node.session.nr_sessions = 1
node.session.auth.authmethod = None
node.session.auth.username = ********
node.session.auth.password = ********
node.session.auth.username_in = ********
node.session.auth.password_in = ********
node.session.timeo.replacement_timeout = 10
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 30
node.session.err_timeo.tgt_reset_timeout = 30
node.session.err_timeo.host_reset_timeout = 60
node.session.iscsi.FastAbort = No
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.session.iscsi.DefaultTime2Retain = 0
node.session.iscsi.DefaultTime2Wait = 2
node.session.iscsi.MaxConnections = 1
node.session.iscsi.MaxOutstandingR2T = 1
node.session.iscsi.ERL = 0
node.conn[0].address = 10.0.0.2
node.conn[0].port = 3260
node.conn[0].startup = manual
node.conn[0].tcp.window_size = 524288
node.conn[0].tcp.type_of_service = 0
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.auth_timeout = 45
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.DataDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
# END RECORD
#### End: Initial interface configuration (non-jumbo frames) ########

#### Begin: Test login with initial interface configuration #########
#### (non-jumbo frames) #############################################
#### Output from the target storage (Dell EqualLogic) ###############

115531:1017:sto1-han:MgmtExec: 7-Aug-2015 13:38:17.471017:targetAttr.cc:827:INFO:7.2.13:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.5:29667, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' successful, using standard frame length.
115535:1018:sto1-han:MgmtExec: 7-Aug-2015 13:39:01.161018:targetAttr.cc:827:INFO:7.2.47:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.6:30408, iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5' successful using standard-sized frames.

115540:1019:sto1-han:MgmtExec: 7-Aug-2015 13:39:41.591019:targetAttr.cc:1117:INFO:7.2.15:iSCSI session to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.6:30408, iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5' was closed.
Logout request was received from the initiator.
115542:1020:sto1-han:MgmtExec: 7-Aug-2015 13:39:47.051020:targetAttr.cc:1117:INFO:7.2.15:iSCSI session to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.5:29667, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' was closed.
Logout request was received from the initiator.
#### End: Test login with initial interface configuration ###########

#### Begin: Configure jumbo frame mtu size on the interfaces ########
user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:70.ipv4.0 -o update -n iface.mtu -v 9000
qla4xxx.84:8f:69:35:fc:70.ipv4.0 updated.
user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:71.ipv4.0 -o update -n iface.mtu -v 9000
qla4xxx.84:8f:69:35:fc:71.ipv4.0 updated.

user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:70.ipv4.0
# BEGIN RECORD 2.0-873
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:70.ipv4.0
iface.net_ifacename = <empty>
iface.ipaddress = 10.0.0.5
iface.hwaddress = 84:8f:69:35:fc:70
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 9000
iface.port = 0
# END RECORD

user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:71.ipv4.0
# BEGIN RECORD 2.0-873
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:71.ipv4.0
iface.net_ifacename = <empty>
iface.ipaddress = 10.0.0.6
iface.hwaddress = 84:8f:69:35:fc:71
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 9000
iface.port = 0
# END RECORD
#### End: Configure jumbo frame mtu size on the interfaces ##########

#### Begin: Apply jumbo frame mtu size on the interfaces ############
user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:70.ipv4.0 -o apply
qla4xxx.84:8f:69:35:fc:70.ipv4.0 applied.

user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:71.ipv4.0 -o apply
qla4xxx.84:8f:69:35:fc:71.ipv4.0 applied.

user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:70.ipv4.0
# BEGIN RECORD 2.0-873
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:70.ipv4.0
iface.net_ifacename = <empty>
iface.ipaddress = 10.0.0.5
iface.hwaddress = 84:8f:69:35:fc:70
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 9000
iface.port = 0
# END RECORD

user@host$ iscsiadm -m iface -I qla4xxx.84:8f:69:35:fc:71.ipv4.0
# BEGIN RECORD 2.0-873
iface.iscsi_ifacename = qla4xxx.84:8f:69:35:fc:71.ipv4.0
iface.net_ifacename = <empty>
iface.ipaddress = 10.0.0.6
iface.hwaddress = 84:8f:69:35:fc:71
iface.transport_name = qla4xxx
iface.initiatorname = <empty>
iface.bootproto = <empty>
iface.subnet_mask = 255.255.255.0
iface.gateway = <empty>
iface.ipv6_autocfg = <empty>
iface.linklocal_autocfg = <empty>
iface.router_autocfg = <empty>
iface.ipv6_linklocal = <empty>
iface.ipv6_router = <empty>
iface.state = <empty>
iface.vlan_id = 0
iface.vlan_priority = 0
iface.vlan_state = <empty>
iface.iface_num = 0
iface.mtu = 9000
iface.port = 0
# END RECORD
#### End: Apply jumbo frame mtu size on the interfaces ##############

#### Begin: Check, but the Large_Frames parameter is still off ######
user@host$ /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli -c 0
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /var/tmp
Warning: No FC/FCoE driver detected.
Large_Frames : off
DevType : 0(*)
ExeThrottle : 0
FirstBurstLen : 32764
KeepAliveTO : 0
DefaultTime2Retain : 0(*)
DefaultTime2Wait : 0(*)
MaxBurstLen : 32764
MaxOutstandingR2T : 0
MaxRxDataSegmentLen : 2016(*)
Port : 3260(*)
user@host$ /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli -c 1
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /var/tmp
Warning: No FC/FCoE driver detected.
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/iscli.cfg
Loading iSCSI Data ...
Loading iSCSI Instance: 1 HBA: 1 Physical Port: 1 (QME8262 , 84-8F-69-35-FC-70) ...
Loading iSCSI Instance: 2 HBA: 1 Physical Port: 2 (QME8262 , 84-8F-69-35-FC-71) ...

*******************************
*** Displaying Port inst=1 ***
*******************************
*** Displaying HBA (Adapter) Level Information inst=1 ***
HBA_Alias :
*** Displaying Port General Summary Information inst=1 ***
1. HBA: 0 Port: 1 HBA Port Instance: 1 HBA Model: QME8262
HBA Serial Number: (RFE1449L34695) FW Version: 4.18.04 Type: Fiber
IP Address: 10.0.0.6
Alias:
iSCSI Name: iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5
PCI Function Number: 5
User Defined IP Address.
IPv4 Address : 10.0.0.6
Gateway : 0.0.0.0
Subnet Mask : 255.255.255.0

iSNS : Disabled.
*** Displaying ISCSI Settings inst=1 ***
Force_Negotiate_Main_iSCSI_Keys : off
iSCSI_Send_Markers : on(*)
iSCSI_Header_Digests : on
iSCSI_Data_Digests : on
iSCSI_Immediate_Data : on
iSCSI_Initial_R2T : on
iSCSI_Data_Seq_In_Order : on(*)
iSCSI_Data_PDU_In_Order : on(*)
iSCSI_CHAP_Auth : on(*)
iSCSI_Bidi_CHAP_Auth : off(*)
iSCSI_Snack : on
iSCSI_Discovery_Logout : off
iSCSI_Strict_Login : off
iSCSI_Error_Recovery_Level : 0(*)
iSCSI_Name : iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5
iSCSI_Alias :
*** Displaying Firmware Settings inst=1 ***
FW_Marker : on(*)
FW_Stat_Alarm : off(*)
FW_Accept_AEN : off(*)
FW_Access_Control : off(*)
FW_Session_Mode : on(*)
FW_Initiator_Mode : on(*)
FW_Target_Mode : off(*)
FW_Fast_Posting : off(*)
FW_Sense_Buffer_Desc : off(*)
AFW_Device_Timeouts : on
AFW_AutoConnect : off
AFW_Serlz_Task_Mngmt : on
Large_Frames : off
DevType : 0(*)
ExeThrottle : 0
FirstBurstLen : 32765
KeepAliveTO : 0
DefaultTime2Retain : 0(*)
DefaultTime2Wait : 0(*)
MaxBurstLen : 32765
MaxOutstandingR2T : 0
MaxRxDataSegmentLen : 2016(*)
Port : 52016(*)
ACB_Version : 2(*)
*** Displaying IPv4 Settings inst=1 ***
AFW_Delayed_Ack : on
IP_Fragmentation : on(*)
IP_ARP_Redirect : off
VLAN_Enable : off
802.1pPriority : 4
VLAN_ID : 1896
Gratuitous_ARP : off
Enable_Type_of_Service : off
TCP_DHCP : off
TCP_Nagle : on
TCP_Timer_Scale : 1(*)
TCP_Time_Stamp : off
TCP_Window_Scale_Enable : off
TCP_Window_Scale : 11
Secondary_DNS : (*)
Secondary_IP_Address : (*)
Task_Management_Timeout : 10
IPv4TOS : 191
IPv4TTL : 22
P3P_TCP_Max_Window_Size : 0
*** Displaying Remaining parameters inst=1 ***
ACB_Supported : off(*)
Values noted with (*) are read only.
#### End: Check, but the Large_Frames parameter is still off ########

#### Begin: Test login with jumbo frames interface configuration ####
#### Output from the target storage (Dell EqualLogic) ###############
115566:1021:sto1-han:MgmtExec: 7-Aug-2015 13:50:18.961021:targetAttr.cc:827:INFO:7.2.13:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.5:29669, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' successful, using standard frame length.

115568:1022:sto1-han:MgmtExec: 7-Aug-2015 13:50:24.871022:targetAttr.cc:827:INFO:7.2.47:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.6:30410, iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5' successful using standard-sized frames.
#### End: Test login with jumbo frames interface configuration ######

#### Begin: Test login session with jumbo frames interface config ###
user@host$ iscsiadm -m session
qla4xxx: [8] 10.0.0.2:3260,1 iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 (non-flash)
qla4xxx: [9] 10.0.0.2:3260,1 iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 (non-flash)

user@host$ iscsiadm -m session -r 8 -P3
iSCSI Transport Class version 2.0-870
version 2.0-873
Target: iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 (non-flash)
Current Portal: 10.0.0.2:3260,1
Persistent Portal: 10.0.0.2:3260,1
**********
Interface:
**********
Iface Name: qla4xxx.84:8f:69:35:fc:70.ipv4.0
Iface Transport: qla4xxx
Iface Initiatorname: iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4
Iface IPaddress: 10.0.0.5
Iface HWaddress: 84:8f:69:35:fc:70
Iface Netdev: <empty>
SID: 8
iSCSI Connection State: LOGGED IN
iSCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
*********
Timeouts:
*********
Recovery Timeout: 10
Target Reset Timeout: <empty>
LUN Reset Timeout: <empty>
Abort Timeout: <empty>
*****
CHAP:
*****
username: ********
password: ********
username_in: ********
password_in: ********
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: Yes
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 1 State: running
scsi1 Channel 00 Id 0 Lun: 0
Attached scsi disk sdc State: running

user@host$ iscsiadm -m session -r 9 -P3
iSCSI Transport Class version 2.0-870
version 2.0-873
Target: iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002 (non-flash)
Current Portal: 10.0.0.2:3260,1
Persistent Portal: 10.0.0.2:3260,1
**********
Interface:
**********
Iface Name: qla4xxx.84:8f:69:35:fc:71.ipv4.0
Iface Transport: qla4xxx
Iface Initiatorname: iqn.2000-04.com.qlogic:isp8214.000e1e37da2d.5
Iface IPaddress: 10.0.0.6
Iface HWaddress: 84:8f:69:35:fc:71
Iface Netdev: <empty>
SID: 9
iSCSI Connection State: LOGGED IN
iSCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
*********
Timeouts:
*********
Recovery Timeout: 10
Target Reset Timeout: <empty>
LUN Reset Timeout: <empty>
Abort Timeout: <empty>
*****
CHAP:
*****
username: ********
password: ********
username_in: ********
password_in: ********
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: Yes
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 2 State: running
scsi2 Channel 00 Id 0 Lun: 0
Attached scsi disk sdd State: running
#### End: Test login session with jumbo frames interface config #####

Frank Fegert

unread,
Aug 11, 2015, 5:01:54 PM8/11/15
to open-...@googlegroups.com
Hello all,

another day, another issue ;-)

In the meantime i moved on trying to get access to the storage LUNs
without jumbo frames, but with CHAP-authentification in the iSCSI off-
load engine of the HBA enabled. It seems - see output below - i can
set the outgoing username and password just fine by either directly
setting the parameters:

flashnode.session.username
flashnode.session.password

or by indirectly referencing a CHAP table entry via the parameter:

flashnode.session.chap_out_idx

Both ways for incoming CHAP-authentification via the parameters:

flashnode.session.chap_in_idx
flashnode.session.username_in
flashnode.session.password_in

do not seem to work properly - see error messages below. This was
tested with Debian 8 and Open-iSCSI build from the latest git commit
(1dfb88a4df).

According to the "-h" output there seems to be no debug flag to the
"host" command. So just to verify, before i dig into the sources, are
the "flashnode.session.(username|password)_in" parameters supposed to
work at all and if yes are they analogous to the "node.session.auth.
(username|password)_in" parameters?

Thanks again & best regards,

Frank Fegert


#####################################################################
user@host$ iscsiadm -m host -H 3 -C flashnode -x 2 -o update -n flashnode.session.chap_out_idx -v 4
Update flashnode 2.
Update for flashnode 2 of host 3 successful.

user@host$ iscsiadm -m host -H 3 -C flashnode -x 2 -o update -n flashnode.session.username_in -v 1234
iscsiadm: Build flashnode config failed.
iscsiadm: Update for flashnode 2 of host 3 failed.

user@host$ iscsiadm -m host -H 3 -C flashnode -x 2 -o update -n flashnode.session.password_in -v 1234
iscsiadm: Build flashnode config failed.
iscsiadm: Update for flashnode 2 of host 3 failed.

user@host$ iscsiadm -m host -H 3 -C flashnode -x 2 -o update -n flashnode.session.chap_in_idx -v 5
iscsiadm: Build flashnode config failed.
iscsiadm: Update for flashnode 2 of host 3 failed.

user@host$ iscsiadm -m host -H 3 -C flashnode -x 2 -o show
# BEGIN RECORD 2.0-873
flashnode.session.auto_snd_tgt_disable = 0
flashnode.session.discovery_session = 0
flashnode.session.portal_type = ipv4
flashnode.session.entry_enable = 0
flashnode.session.immediate_data = 1
flashnode.session.initial_r2t = 0
flashnode.session.data_seq_in_order = 1
flashnode.session.data_pdu_in_order = 1
flashnode.session.chap_auth_en = 1
flashnode.session.discovery_logout_en = 1
flashnode.session.bidi_chap_en = 1
flashnode.session.discovery_auth_optional = 0
flashnode.session.erl = 0
flashnode.session.first_burst_len = 131072
flashnode.session.def_time2wait = 0
flashnode.session.def_time2retain = 0
flashnode.session.max_outstanding_r2t = 1
flashnode.session.isid = 000e1e17da2c
flashnode.session.tsid = 65535
flashnode.session.max_burst_len = 262144
flashnode.session.def_taskmgmt_tmo = 10
flashnode.session.targetalias = <empty>
flashnode.session.targetname = "targetname"
flashnode.session.discovery_parent_idx = 65535
flashnode.session.discovery_parent_type = Unknown
flashnode.session.tpgt = 0
flashnode.session.chap_out_idx = 4
flashnode.session.chap_in_idx = 65535
flashnode.session.username = "out_username"
flashnode.session.username_in = <empty>
flashnode.session.password = "out_password"
flashnode.session.password_in = <empty>
flashnode.session.is_boot_target = 0
flashnode.conn[0].is_fw_assigned_ipv6 = 0
flashnode.conn[0].header_digest_en = 0
flashnode.conn[0].data_digest_en = 0
flashnode.conn[0].snack_req_en = 0
flashnode.conn[0].tcp_timestamp_stat = 0
flashnode.conn[0].tcp_nagle_disable = 1
flashnode.conn[0].tcp_wsf_disable = 0
flashnode.conn[0].tcp_timer_scale = 3
flashnode.conn[0].tcp_timestamp_en = 1
flashnode.conn[0].fragment_disable = 0
flashnode.conn[0].max_xmit_dlength = 0
flashnode.conn[0].max_recv_dlength = 65536
flashnode.conn[0].keepalive_tmo = 0
flashnode.conn[0].port = 3260
flashnode.conn[0].ipaddress = 10.0.0.2
flashnode.conn[0].redirect_ipaddr = 0.0.0.0
flashnode.conn[0].max_segment_size = 0
flashnode.conn[0].local_port = 0
flashnode.conn[0].ipv4_tos = 0
flashnode.conn[0].ipv6_traffic_class = 0
flashnode.conn[0].ipv6_flow_label = 0
flashnode.conn[0].link_local_ipv6 = <empty>
flashnode.conn[0].tcp_xmit_wsf = 0
flashnode.conn[0].tcp_recv_wsf = 0
flashnode.conn[0].statsn = 0
flashnode.conn[0].exp_statsn = 0
# END RECORD
#####################################################################

Frank Fegert

unread,
Aug 13, 2015, 9:37:38 AM8/13/15
to open-...@googlegroups.com
Hello all,

answering to my own posting ;-) I updated the system to Debian 8, which
in turn allowed me to build the most recent git commit (1dfb88a4df) of
open-iscsi. With the version from git, open-iscsi (non-flash) logins
as well as offload engine (flash) logins are registered on the target
side (Dell EqualLogic) as jumbo frames enabled sessions. So, no need
for qaucli anymore!

The issue with incoming CHAP-authentification on offload engine (flash)
logins, which i described below, is still persisting though. I also
tried enabling the bidirectional CHAP option in the HBA firmware through
the Dell System Setup, but this didn't change the behaviour described
below.

Thanks & best regards,

Frank Fegert

Adheer Chandravanshi

unread,
Aug 14, 2015, 7:05:27 AM8/14/15
to open-...@googlegroups.com


> -----Original Message-----
> From: open-...@googlegroups.com [mailto:open-...@googlegroups.com]
> On Behalf Of Frank Fegert
> Sent: Thursday, August 13, 2015 7:07 PM
> To: open-...@googlegroups.com
> Subject: Re: Setting firmware/offload engine parameter "Large_Frames" on
> QLogic HBAs
>
> Hello all,
>
> answering to my own posting ;-) I updated the system to Debian 8, which in
> turn allowed me to build the most recent git commit (1dfb88a4df) of open-
> iscsi. With the version from git, open-iscsi (non-flash) logins as well as offload
> engine (flash) logins are registered on the target side (Dell EqualLogic) as
> jumbo frames enabled sessions. So, no need for qaucli anymore!
>
> The issue with incoming CHAP-authentification on offload engine (flash)
> logins, which i described below, is still persisting though. I also tried enabling
> the bidirectional CHAP option in the HBA firmware through the Dell System
> Setup, but this didn't change the behaviour described below.
>

Frank,

You can verify the bidirectional chap entry using the `chap` submode of `iscsiadm -m host` command.
For details, refer the " Host mode with chap submode " section in the open-iscsi README for this.

A bidi chap entry cannot be directly associated with any flashnode entry.
You just need to create a bidi chap entry in the chap table and associate the flashnode with the local (unidirectional) chap entry, as you have already done.
I see parameters `flashnode.session.chap_auth_en` and `flashnode.session.bidi_chap_en` enabled in your config. So you are good there.

Frank Fegert

unread,
Aug 17, 2015, 10:45:05 AM8/17/15
to open-...@googlegroups.com
Hello Adheer,

On Fri, Aug 14, 2015 at 11:06:18AM +0000, Adheer Chandravanshi wrote:
> You can verify the bidirectional chap entry using the `chap` submode of
> `iscsiadm -m host` command.
> For details, refer the " Host mode with chap submode " section in the
> open-iscsi README for this.
>
> A bidi chap entry cannot be directly associated with any flashnode entry.
> You just need to create a bidi chap entry in the chap table and associate the
> flashnode with the local (unidirectional) chap entry, as you have already
> done.
> I see parameters `flashnode.session.chap_auth_en` and
> `flashnode.session.bidi_chap_en` enabled in your config. So you are good
> there.

thanks for taking the time and your explaination! Unfortunately this does
not seem to work in my environment :-( The CHAP table entries in my previous
examples were not manually created by me, but rather were leftovers created
by previous "iscsiadm -m node" commands.
I tried to verify your suggestion, cleared out the CHAP tables and created
entirely new entires. Please see the output shown below. This does not seem
to work with bi-directional authentication, though. But as soon as i switch
off the "flashnode.session.bidi_chap_en" option, the login works with the
newly created CHAP tables.
Starting from a clean open-iscsi configuration, i also tested logins with
the "iscsiadm -m node [...] -l" command over the qla4xxx interfaces. Those
also fail as soon as the "node.session.auth.(username|password)_in" para-
meters are set.
A login to the same targets, with the same username and password combination
over the interfaces of the ethernet network function of the same HBA works
fine, even with bi-directional authentication.
Is there some more detailed information available on how the CHAP table
entries are chosen for incoming authentication? Or do you have any other
suggestion on what i might be missing here?

Thanks & best regards,

Frank


#### Clear all CHAP table enties
user@host:# for IDX in $(seq 1 7); do iscsiadm -m host -H 1 -C chap -o delete -x $IDX; done
Deleteing CHAP index: 1
Deleteing CHAP index: 2
Deleteing CHAP index: 3
Deleteing CHAP index: 4
Deleteing CHAP index: 5
Deleteing CHAP index: 6
Deleteing CHAP index: 7

user@host:# for IDX in $(seq 1 7); do iscsiadm -m host -H 2 -C chap -o delete -x $IDX; done
Deleteing CHAP index: 1
Deleteing CHAP index: 2
Deleteing CHAP index: 3
Deleteing CHAP index: 4
Deleteing CHAP index: 5
Deleteing CHAP index: 6
Deleteing CHAP index: 7

user@host:# iscsiadm -m host -H 1 -C chap -o show

user@host:# iscsiadm -m host -H 2 -C chap -o show

#### Create new outgoing CHAP entry for target1
user@host:# iscsiadm -m host -H 1 -C chap -x 1 -o new -n host.auth.username -v <username> -n host.auth.password -v <password-on-target1>

user@host:# iscsiadm -m host -H 2 -C chap -x 1 -o new -n host.auth.username -v <username> -n host.auth.password -v <password-on-target1>

user@host:# iscsiadm -m host -H 1 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD

user@host:# iscsiadm -m host -H 2 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD
# END RECORD

#### Associate new outgoing CHAP entry with flash node
user@host:# iscsiadm -m host -H 1 -C flashnode -x 2 -o update -n flashnode.session.chap_out_idx -v 1
Update flashnode 2.
Update for flashnode 2 of host 1 successful.

user@host:# iscsiadm -m host -H 2 -C flashnode -x 2 -o update -n flashnode.session.chap_out_idx -v 1
Update flashnode 2.
Update for flashnode 2 of host 2 successful.

user@host:# iscsiadm -m host -H 1 -C flashnode -x 2
# BEGIN RECORD 2.0-873
flashnode.session.auto_snd_tgt_disable = 0
flashnode.session.discovery_session = 0
flashnode.session.portal_type = ipv4
flashnode.session.entry_enable = 0
flashnode.session.immediate_data = 1
flashnode.session.initial_r2t = 0
flashnode.session.data_seq_in_order = 1
flashnode.session.data_pdu_in_order = 1
flashnode.session.chap_auth_en = 1
flashnode.session.discovery_logout_en = 1
flashnode.session.bidi_chap_en = 1
flashnode.session.discovery_auth_optional = 0
flashnode.session.erl = 0
flashnode.session.first_burst_len = 131072
flashnode.session.def_time2wait = 0
flashnode.session.def_time2retain = 0
flashnode.session.max_outstanding_r2t = 1
flashnode.session.isid = 000e1e17da2c
flashnode.session.tsid = 65535
flashnode.session.max_burst_len = 262144
flashnode.session.def_taskmgmt_tmo = 10
flashnode.session.targetalias = <empty>
flashnode.session.targetname = iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4
flashnode.session.discovery_parent_idx = 65535
flashnode.session.discovery_parent_type = Unknown
flashnode.session.tpgt = 0
flashnode.session.chap_out_idx = 1
flashnode.session.chap_in_idx = 65535
flashnode.session.username = <username>
flashnode.session.username_in = <empty>
flashnode.session.password = <password-on-target1>
user@host:# iscsiadm -m host -H 2 -C flashnode -x 2
# BEGIN RECORD 2.0-873
flashnode.session.auto_snd_tgt_disable = 0
flashnode.session.discovery_session = 0
flashnode.session.portal_type = ipv4
flashnode.session.entry_enable = 0
flashnode.session.immediate_data = 1
flashnode.session.initial_r2t = 0
flashnode.session.data_seq_in_order = 1
flashnode.session.data_pdu_in_order = 1
flashnode.session.chap_auth_en = 1
flashnode.session.discovery_logout_en = 1
flashnode.session.bidi_chap_en = 1
flashnode.session.discovery_auth_optional = 0
flashnode.session.erl = 0
flashnode.session.first_burst_len = 131072
flashnode.session.def_time2wait = 0
flashnode.session.def_time2retain = 0
flashnode.session.max_outstanding_r2t = 1
flashnode.session.isid = 000e1e17da2d
flashnode.session.tsid = 65535
flashnode.session.max_burst_len = 262144
flashnode.session.def_taskmgmt_tmo = 10
flashnode.session.targetalias = <empty>
flashnode.session.targetname = iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4
flashnode.session.discovery_parent_idx = 65535
flashnode.session.discovery_parent_type = Unknown
flashnode.session.tpgt = 0
flashnode.session.chap_out_idx = 1
flashnode.session.chap_in_idx = 65535
flashnode.session.username = <username>
flashnode.session.username_in = <empty>
flashnode.session.password = <password-on-target1>
#### Create new incoming CHAP entry for target1
user@host:# iscsiadm -m host -H 1 -C chap -x 2 -o new -n host.auth.username_in -v <username-from-target1> -n host.auth.password_in -v <password-from-target1>

user@host:# iscsiadm -m host -H 2 -C chap -x 2 -o new -n host.auth.username_in -v <username-from-target1> -n host.auth.password_in -v <password-from-target1>

user@host:# iscsiadm -m host -H 1 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 2
host.auth.username_in = <username-from-target1>
host.auth.password_in = <password-from-target1>
# END RECORD

user@host:# iscsiadm -m host -H 2 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 2
host.auth.username_in = <username-from-target1>
host.auth.password_in = <password-from-target1>
# END RECORD

#### Create new incoming and outgoing CHAP entry for target2
user@host:# iscsiadm -m host -H 1 -C chap -x 3 -o new -n host.auth.username -v <username> -n host.auth.password -v <password-on-target2>

user@host:# iscsiadm -m host -H 2 -C chap -x 3 -o new -n host.auth.username -v <username> -n host.auth.password -v <password-on-target2>

user@host:# iscsiadm -m host -H 1 -C chap -x 4 -o new -n host.auth.username_in -v <username-from-target2> -n host.auth.password_in -v <password-from-target2>

user@host:# iscsiadm -m host -H 2 -C chap -x 4 -o new -n host.auth.username_in -v <username-from-target2> -n host.auth.password_in -v <password-from-target2>

user@host:# iscsiadm -m host -H 1 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 2
host.auth.username_in = <username-from-target1>
host.auth.password_in = <password-from-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 3
host.auth.username = <username>
host.auth.password = <password-on-target2>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 4
host.auth.username_in = <username-from-target2>
host.auth.password_in = <password-from-target2>
# END RECORD

user@host:# iscsiadm -m host -H 2 -C chap -o show
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 1
host.auth.username = <username>
host.auth.password = <password-on-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 2
host.auth.username_in = <username-from-target1>
host.auth.password_in = <password-from-target1>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 3
host.auth.username = <username>
host.auth.password = <password-on-target2>
# END RECORD
# BEGIN RECORD 2.0-873
host.auth.tbl_idx = 4
host.auth.username_in = <username-from-target2>
host.auth.password_in = <password-from-target2>
# END RECORD

#### Associate new outgoing CHAP entry with flash node
user@host:# iscsiadm -m host -H 1 -C flashnode -x 3 -o update -n flashnode.session.chap_out_idx -v 3
Update flashnode 3.
Update for flashnode 3 of host 1 successful.

user@host:# iscsiadm -m host -H 2 -C flashnode -x 3 -o update -n flashnode.session.chap_out_idx -v 3
Update flashnode 3.
Update for flashnode 3 of host 2 successful.

user@host:# iscsiadm -m host -H 1 -C flashnode -x 3
# BEGIN RECORD 2.0-873
flashnode.session.auto_snd_tgt_disable = 0
flashnode.session.discovery_session = 0
flashnode.session.portal_type = ipv4
flashnode.session.entry_enable = 0
flashnode.session.immediate_data = 1
flashnode.session.initial_r2t = 0
flashnode.session.data_seq_in_order = 1
flashnode.session.data_pdu_in_order = 1
flashnode.session.chap_auth_en = 1
flashnode.session.discovery_logout_en = 1
flashnode.session.bidi_chap_en = 1
flashnode.session.discovery_auth_optional = 0
flashnode.session.erl = 0
flashnode.session.first_burst_len = 131072
flashnode.session.def_time2wait = 0
flashnode.session.def_time2retain = 0
flashnode.session.max_outstanding_r2t = 1
flashnode.session.isid = 000e1e17da2c
flashnode.session.tsid = 65535
flashnode.session.max_burst_len = 262144
flashnode.session.def_taskmgmt_tmo = 10
flashnode.session.targetalias = <empty>
flashnode.session.targetname = iqn.2001-05.com.equallogic:0-fe83b6-00e24d5c0-b3a00473c74559fc
flashnode.session.discovery_parent_idx = 65535
flashnode.session.discovery_parent_type = Unknown
flashnode.session.tpgt = 0
flashnode.session.chap_out_idx = 3
flashnode.session.chap_in_idx = 65535
flashnode.session.username = <username>
flashnode.session.username_in = <empty>
flashnode.session.password = <password-on-target2>
flashnode.session.password_in = <empty>
flashnode.session.is_boot_target = 0
flashnode.conn[0].is_fw_assigned_ipv6 = 0
flashnode.conn[0].header_digest_en = 0
flashnode.conn[0].data_digest_en = 0
flashnode.conn[0].snack_req_en = 0
flashnode.conn[0].tcp_timestamp_stat = 0
flashnode.conn[0].tcp_nagle_disable = 1
flashnode.conn[0].tcp_wsf_disable = 0
flashnode.conn[0].tcp_timer_scale = 3
flashnode.conn[0].tcp_timestamp_en = 1
flashnode.conn[0].fragment_disable = 0
flashnode.conn[0].max_xmit_dlength = 0
flashnode.conn[0].max_recv_dlength = 65536
flashnode.conn[0].keepalive_tmo = 0
flashnode.conn[0].port = 3260
flashnode.conn[0].ipaddress = 10.0.0.4
flashnode.conn[0].redirect_ipaddr = 0.0.0.0
flashnode.conn[0].max_segment_size = 0
flashnode.conn[0].local_port = 0
flashnode.conn[0].ipv4_tos = 0
flashnode.conn[0].ipv6_traffic_class = 0
flashnode.conn[0].ipv6_flow_label = 0
flashnode.conn[0].link_local_ipv6 = <empty>
flashnode.conn[0].tcp_xmit_wsf = 0
flashnode.conn[0].tcp_recv_wsf = 0
flashnode.conn[0].statsn = 0
flashnode.conn[0].exp_statsn = 0
# END RECORD

user@host:# iscsiadm -m host -H 2 -C flashnode -x 3
# BEGIN RECORD 2.0-873
flashnode.session.auto_snd_tgt_disable = 0
flashnode.session.discovery_session = 0
flashnode.session.portal_type = ipv4
flashnode.session.entry_enable = 0
flashnode.session.immediate_data = 1
flashnode.session.initial_r2t = 0
flashnode.session.data_seq_in_order = 1
flashnode.session.data_pdu_in_order = 1
flashnode.session.chap_auth_en = 1
flashnode.session.discovery_logout_en = 1
flashnode.session.bidi_chap_en = 1
flashnode.session.discovery_auth_optional = 0
flashnode.session.erl = 0
flashnode.session.first_burst_len = 131072
flashnode.session.def_time2wait = 0
flashnode.session.def_time2retain = 0
flashnode.session.max_outstanding_r2t = 1
flashnode.session.isid = 000e1e17da2d
flashnode.session.tsid = 65535
flashnode.session.max_burst_len = 262144
flashnode.session.def_taskmgmt_tmo = 10
flashnode.session.targetalias = <empty>
flashnode.session.targetname = iqn.2001-05.com.equallogic:0-fe83b6-00e24d5c0-b3a00473c74559fc
flashnode.session.discovery_parent_idx = 65535
flashnode.session.discovery_parent_type = Unknown
flashnode.session.tpgt = 0
flashnode.session.chap_out_idx = 3
flashnode.session.chap_in_idx = 65535
flashnode.session.username = <username>
flashnode.session.username_in = <empty>
flashnode.session.password = <password-on-target2>
flashnode.session.password_in = <empty>
flashnode.session.is_boot_target = 0
flashnode.conn[0].is_fw_assigned_ipv6 = 0
flashnode.conn[0].header_digest_en = 0
flashnode.conn[0].data_digest_en = 0
flashnode.conn[0].snack_req_en = 0
flashnode.conn[0].tcp_timestamp_stat = 0
flashnode.conn[0].tcp_nagle_disable = 1
flashnode.conn[0].tcp_wsf_disable = 0
flashnode.conn[0].tcp_timer_scale = 3
flashnode.conn[0].tcp_timestamp_en = 1
flashnode.conn[0].fragment_disable = 0
flashnode.conn[0].max_xmit_dlength = 0
flashnode.conn[0].max_recv_dlength = 65536
flashnode.conn[0].keepalive_tmo = 0
flashnode.conn[0].port = 3260
flashnode.conn[0].ipaddress = 10.0.0.4
flashnode.conn[0].redirect_ipaddr = 0.0.0.0
flashnode.conn[0].max_segment_size = 0
flashnode.conn[0].local_port = 0
flashnode.conn[0].ipv4_tos = 0
flashnode.conn[0].ipv6_traffic_class = 0
flashnode.conn[0].ipv6_flow_label = 0
flashnode.conn[0].link_local_ipv6 = <empty>
flashnode.conn[0].tcp_xmit_wsf = 0
flashnode.conn[0].tcp_recv_wsf = 0
flashnode.conn[0].statsn = 0
flashnode.conn[0].exp_statsn = 0
# END RECORD

#### Try a login on target1
ser@host:# iscsiadm -m host -H 1 -C flashnode -x 2 -o login
Login to flashnode 2.
Login to flashnode 2 of host 1 successful.

target1>
134496:1161:target1:MgmtExec:17-Aug-2015 11:20:47.531161:targetAttr.cc:585:ERROR:7.4.3:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4-v-han-000002' from initiator '10.0.0.5:29546, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' failed for the following reason: Initiator disconnected from target during login.

134499:1162:target1:MgmtExec:17-Aug-2015 11:20:53.531162:targetAttr.cc:585:ERROR:7.4.3:iSCSI login to target '10.0.0.1:3260, iqn.2001-05.com.equallogic:0-fe83b6-a35c152cc-c72004e10ff558d4' from initiator '10.0.0.5:29548, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' failed for the following reason: Initiator disconnected from target during login.

user@host:# iscsiadm -m host -H 1 -C flashnode -x 2 -o logout
Logout flashnode 2.
Logout of flashnode 2 of host 1 successful.

#### Try a login on target2
user@host:# iscsiadm -m host -H 1 -C flashnode -x 3 -o login
Login to flashnode 3.
Login to flashnode 3 of host 1 successful.

target2>
108149:721:target2:MgmtExec:17-Aug-2015 11:21:17.580721:targetAttr.cc:585:ERROR:7.4.3:iSCSI login to target '10.0.0.3:3260, iqn.2001-05.com.equallogic:0-fe83b6-00e24d5c0-b3a00473c74559fc' from initiator '10.0.0.5:29550, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' failed for the following reason: Initiator disconnected from target during login.
108152:722:target2:MgmtExec:17-Aug-2015 11:21:23.550722:targetAttr.cc:585:ERROR:7.4.3:iSCSI login to target '10.0.0.3:3260, iqn.2001-05.com.equallogic:0-fe83b6-00e24d5c0-b3a00473c74559fc' from initiator '10.0.0.5:29552, iqn.2000-04.com.qlogic:isp8214.000e1e37da2c.4' failed for the following reason: Initiator disconnected from target during login.

user@host:# iscsiadm -m host -H 1 -C flashnode -x 3 -o logout
Logout flashnode 3.
Logout of flashnode 3 of host 1 successful.

####
Reply all
Reply to author
Forward
0 new messages