iscsi connection error 1020

2012-11-07 Thread guidry . matt


I have several other clients connecting to this equallogic san, but this one 
will not and I could use some advice on where to proceed.


[root@holly ~]# uname -r

2.6.32-279.11.1.el6.x86_64

[root@holly ~]# iscsiadm --version
iscsiadm version 2.0-872.41.el6

[root@holly ~]# iscsiadm --mode discovery --portal 172.16.50.1 --type 
sendtargets
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-fa55b5707-ac6000425bb4d7e6-cronos-misc
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-8725b5707-8c7000425be4d7fd-pmf-data
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-fa45b5707-21a000425c24d99d-calypso-ftp
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-40a5b5707-b4c000427454dff9-cronos-pcbi-data
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-0a311c608-a68ae6e4ebd6-cronos-amanda-holdingdisk
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-23611c608-37d000e7aed4fd63-xena-files
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-d51fb8606-96b00154be08-zoe1-oracle
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-42afb8606-72b00224bf1b-zoe2-oracle
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-591db8506-c5e7a084bf94-calypso-mail
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-bafdb8506-1df4f6c4c616-cronos-amanda-diskbuffer
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-c76228806-52b00754d08e-zoe1-zoe2-oracle-backups
172.16.50.1:3260,1 
iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6

[root@holly ~]# iscsiadm -m node -p 172.16.50.1 -T 
iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6
 
--login
Logging in to [iface: eth1, target: 
iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6,
 
portal: 172.16.50.1,3260] (multiple)
iscsiadm: Could not login to [iface: eth1, target: 
iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6,
 
portal: 172.16.50.1,3260].
iscsiadm: initiator reported error (8 - connection timed out)
iscsiadm: Could not log into all portals

[root@holly ~]# tail /var/log/messages
Nov  6 10:21:22 holly kernel: session55: session recovery timed out after 
120 secs
Nov  6 10:21:26 holly iscsid: semop down failed 22
Nov  6 10:25:05 holly kernel: scsi64 : iSCSI Initiator over TCP/IP
Nov  6 10:25:14 holly kernel: connection56:0: detected conn error (1020)
Nov  6 10:25:42 holly kernel: connection56:0: detected conn error (1020)
Nov  6 10:26:09 holly kernel: connection56:0: detected conn error (1020)
Nov  6 10:26:36 holly kernel: connection56:0: detected conn error (1020)
Nov  6 10:27:03 holly kernel: connection56:0: detected conn error (1020)
Nov  6 10:27:15 holly kernel: session56: session recovery timed out after 
120 secs
Nov  6 10:27:19 holly iscsid: semop down failed 22

[root@holly ~]# grep -v \# /etc/iscsi/iscsid.conf | grep [a-z]
iscsid.startup = /etc/rc.d/init.d/iscsid force-start
node.startup = automatic
node.leading_login = No
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
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.initial_login_retry_max = 8
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.xmit_thread_priority = -20
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.conn[0].iscsi.HeaderDigest = None
node.session.nr_sessions = 1
node.session.iscsi.FastAbort = Yes

[root@holly ~]# cat /var/lib/iscsi/ifaces/eth1 
# BEGIN RECORD 2.0-872.41.el6
iface.iscsi_ifacename = eth1
iface.net_ifacename = eth1
iface.transport_name = tcp
iface.vlan_id = 0
iface.vlan_priority = 0
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
# END RECORD

[root@holly ~]# cat 
/var/lib/iscsi/nodes/iqn.2001-05.com.equallogic\:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6/172.16.50.1\,3260\,1/eth1
 
# BEGIN RECORD 2.0-872.41.el6
node.name = 
iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6
node.tpgt = 1
node.startup = automatic
node.leading_login = No
iface.iscsi_ifacename = eth1
iface.net_ifacename = eth1
iface.transport_name = tcp
iface.vlan_id = 0
iface.vlan_priority = 0
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
node.discovery_address = 172.16.50.1
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

Re: iscsi connection error 1020

2012-11-07 Thread Michael Christie

On Nov 6, 2012, at 9:54 AM, guidry.m...@gmail.com wrote:
 [root@holly ~]# iscsiadm -m node -p 172.16.50.1 -T 
 iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6
  --login
 Logging in to [iface: eth1, target: 
 iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6,
  portal: 172.16.50.1,3260] (multiple)
 iscsiadm: Could not login to [iface: eth1, target: 
 iqn.2001-05.com.equallogic:0-8a0906-172228806-45a001b4e1a50980-workflow-software-6,
  portal: 172.16.50.1,3260].
 iscsiadm: initiator reported error (8 - connection timed out)
 iscsiadm: Could not log into all portals
 
 [root@holly ~]# tail /var/log/messages
 Nov  6 10:21:22 holly kernel: session55: session recovery timed out after 120 
 secs
 Nov  6 10:21:26 holly iscsid: semop down failed 22
 Nov  6 10:25:05 holly kernel: scsi64 : iSCSI Initiator over TCP/IP
 Nov  6 10:25:14 holly kernel: connection56:0: detected conn error (1020)
 Nov  6 10:25:42 holly kernel: connection56:0: detected conn error (1020)
 Nov  6 10:26:09 holly kernel: connection56:0: detected conn error (1020)
 Nov  6 10:26:36 holly kernel: connection56:0: detected conn error (1020)
 Nov  6 10:27:03 holly kernel: connection56:0: detected conn error (1020)
 Nov  6 10:27:15 holly kernel: session56: session recovery timed out after 120 
 secs
 Nov  6 10:27:19 holly iscsid: semop down failed 22

So are some sessions getting setup ok and some are not?

Could you send all of the /var/log/messages?

When you see the 1020 errors above, what is in the target's log?

Did you try changing the rp_filter value? See the iscsi README and your kernel 
documentation.

-- 
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.