Mike,

I am sure this used to work, and quite sure you made some comments on the 
subject
now, this isn't working and I can't find your comments, anyway:

using the suggested/similar setting for nop timesout as in the read me 
multi-pathing section, 
taking a port down causes the nop watch-dog to catch the situation 

> 14:51:33 cto-1 kernel: sd 4:0:0:1: [sdd] Attached SCSI disk
> 14:51:33 cto-1 kernel: sd 5:0:0:1: [sde] Attached SCSI disk
> 14:51:34 cto-1 iscsid: connection2:0 is operational now
> 14:51:34 cto-1 iscsid: connection3:0 is operational now
> 14:52:19 cto-1 kernel:  connection3:0: ping timeout of 10 secs expired, recv 
> timeout 5 ...
> 14:52:19 cto-1 kernel:  connection3:0: detected conn error (1011)
> 14:52:20 cto-1 iscsid: Kernel reported iSCSI connection 3:0 error (1011) 
> state (3)
> 14:52:35 cto-1 kernel:  session3: session recovery timed out after 15 secs


and change the session state such that $ iscsiadm -m session/host -P 3 yield 
for the failed session/host

>  iSCSI Connection State: TRANSPORT WAIT
>                         iSCSI Session State: FREE
>                         Internal iscsid Session State: REPOEN

where the session which is associated with the other port of the initiator 
which is UP gives

>       iSCSI Connection State: LOGGED IN
>                         iSCSI Session State: LOGGED_IN
>                         Internal iscsid Session State: NO CHANGE

BUT, for some reason the SCSI host state is still "running" and not "blocked" 
even after 30 minutes. I remember this wasn't the case in the not far away 
past...  am I doing something wrong? don't tell me its RTFM...

I got this behaviour on both RHEL5.4 and 2.6.33 with iscsi/tcp and iser. I just 
run this without multipathing around. When multipathing was used (RHEL 5.4) the 
multipath driver was aware that the device is done as of the 
path checker timeout. see more details on my config in the attach.

Or.

> # iscsiadm -m host
> tcp: [4] 10.10.5.158,[(null)],ib1 (null)
> tcp: [5] 10.10.5.157,[(null)],ib0 (null)

> # cat /sys/bus/scsi/devices/4:0:0:*/state
> running
> running

> # cat /sys/bus/scsi/devices/5:0:0:*/state
> running
> running
$ iscsiadm -m node -T tgt.1.abc

# BEGIN RECORD 2.0-871
node.name = tgt.1.abc
node.tpgt = 1
node.startup = automatic
iface.hwaddress = <empty>
iface.ipaddress = <empty>
iface.iscsi_ifacename = iface1
iface.net_ifacename = ib1
iface.transport_name = tcp
iface.initiatorname = <empty>
node.discovery_address = 10.10.1.91
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 8
node.session.xmit_thread_priority = -20
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.auth.authmethod = None
node.session.auth.username = <empty>
node.session.auth.password = <empty>
node.session.auth.username_in = <empty>
node.session.auth.password_in = <empty>
node.session.timeo.replacement_timeout = 15
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.err_timeo.host_reset_timeout = 60
node.session.iscsi.FastAbort = Yes
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.10.1.91
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 = 10
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
# END RECORD
# BEGIN RECORD 2.0-871
node.name = tgt.1.abc
node.tpgt = 1
node.startup = automatic
iface.hwaddress = <empty>
iface.ipaddress = <empty>
iface.iscsi_ifacename = iface0
iface.net_ifacename = ib0
iface.transport_name = tcp
iface.initiatorname = <empty>
node.discovery_address = 10.10.0.91
node.discovery_port = 3260
node.discovery_type = send_targets
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 8
node.session.xmit_thread_priority = -20
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.auth.authmethod = None
node.session.auth.username = <empty>
node.session.auth.password = <empty>
node.session.auth.username_in = <empty>
node.session.auth.password_in = <empty>
node.session.timeo.replacement_timeout = 15
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.err_timeo.host_reset_timeout = 60
node.session.iscsi.FastAbort = Yes
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.10.0.91
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 = 10
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
# END RECORD

$ iscsiadm -m session -P 3

iSCSI Transport Class version 2.0-870
version 2.0-871
Target: tgt.1.abc
        Current Portal: 10.10.1.91:3260,1
        Persistent Portal: 10.10.1.91:3260,1
                **********
                Interface:
                **********
                Iface Name: iface1
                Iface Transport: tcp
                Iface Initiatorname: iqn.1994-05.com.redhat:fe31368f8cc8
                Iface IPaddress: 10.10.5.158
                Iface HWaddress: (null)
                Iface Netdev: ib1
                SID: 2
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: LOGGED_IN
                Internal iscsid Session State: NO CHANGE
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 262144
                MaxXmitDataSegmentLength: 8192
                FirstBurstLength: 65536
                MaxBurstLength: 262144
                ImmediateData: Yes
                InitialR2T: Yes
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 4  State: running
                scsi4 Channel 00 Id 0 Lun: 0
                scsi4 Channel 00 Id 0 Lun: 1
                        Attached scsi disk sdd          State: running
        Current Portal: 10.10.0.91:3260,1
        Persistent Portal: 10.10.0.91:3260,1
                **********
                Interface:
                **********
                Iface Name: iface0
                Iface Transport: tcp
                Iface Initiatorname: iqn.1994-05.com.redhat:fe31368f8cc8
                Iface IPaddress: 10.10.5.157
                Iface HWaddress: (null)
                Iface Netdev: ib0
                SID: 3
                iSCSI Connection State: TRANSPORT WAIT
                iSCSI Session State: FREE
                Internal iscsid Session State: REPOEN
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 262144
                MaxXmitDataSegmentLength: 8192
                FirstBurstLength: 65536
                MaxBurstLength: 262144
                ImmediateData: Yes
                InitialR2T: Yes
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 5  State: running
                scsi5 Channel 00 Id 0 Lun: 0
                scsi5 Channel 00 Id 0 Lun: 1
                        Attached scsi disk sde          State: running

$ iscsiadm -m iface

default tcp,<empty>,<empty>,<empty>,<empty>
iser iser,<empty>,<empty>,<empty>,<empty>
iface1 tcp,<empty>,<empty>,ib1,<empty>
iface0 tcp,<empty>,<empty>,ib0,<empty>
-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to