Can't login from linux openscsi initiator - iSCSI PDU timed out

iSCSI related applications
Post Reply
irs111
New here
Posts: 2
Joined: Fri Feb 24, 2023 7:52 pm

Can't login from linux openscsi initiator - iSCSI PDU timed out

Post by irs111 »

Hello
I'm trying to configure iSCSI connectrion from Ubuntu 20.04 (open-scsi) to Qnap ts-832px-4g but, when I'm trying to login i get an error:

Code: Select all

root@c4e-backupsrv:/etc/iscsi# sudo iscsiadm -m node --login 
Logging in to [iface: default, target: iqn.2004-04.com.qnap:ts-832px:iscsi.test.7da889, portal: 10.0.0.10,3260] (multiple)
iscsiadm: Could not login to [iface: default, target: iqn.2004-04.com.qnap:ts-832px:iscsi.test.7da889, portal: 10.0.0.10,3260].
iscsiadm: initiator reported error (11 - iSCSI PDU timed out)
iscsiadm: Could not log into all portals
---
target/portal discovery seems to be fine:

Code: Select all

root@c4e-backupsrv:/etc/iscsi# sudo iscsiadm -m discovery -t sendtargets -p 10.0.0.10 
10.0.0.10:3260,1 iqn.2004-04.com.qnap:ts-832px:iscsi.test.7da889

root@c4e-backupsrv:/etc/iscsi# sudo iscsiadm -m node -o show 
# BEGIN RECORD 2.0-874
[...]
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.nr_sessions = 1
node.session.auth.authmethod = CHAP
node.session.auth.username = test
node.session.auth.password = ********
node.session.auth.username_in = <empty>
node.session.auth.password_in = <empty>
node.session.timeo.replacement_timeout = 120
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
[...]
# END RECORD
Both - target and initiator are in the same LAN segment, there is no firewall betwen them.
iSCSI ACL is default
I've checked credentials many times and they are equal.
How can I debug this issue?
Please, help!
irs111
New here
Posts: 2
Joined: Fri Feb 24, 2023 7:52 pm

Re: Can't login from linux openscsi initiator - iSCSI PDU timed out

Post by irs111 »

UPDATE: journalctl shows:

Code: Select all

Feb 24 11:59:43 c4e-backupsrv sudo[111153]:   ubuntu : TTY=pts/1 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/usr/bin/su
Feb 24 11:59:43 c4e-backupsrv sudo[111153]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 11:59:43 c4e-backupsrv su[111154]: (to root) ubuntu on pts/1
Feb 24 11:59:43 c4e-backupsrv su[111154]: pam_unix(su:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:09:49 c4e-backupsrv sudo[111169]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m discovery -t sendtargets -p 10.0.0.10
Feb 24 12:09:49 c4e-backupsrv sudo[111169]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:09:49 c4e-backupsrv sudo[111169]: pam_unix(sudo:session): session closed for user root
Feb 24 12:10:12 c4e-backupsrv sudo[111172]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m node -o show
Feb 24 12:10:12 c4e-backupsrv sudo[111172]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:10:12 c4e-backupsrv sudo[111172]: pam_unix(sudo:session): session closed for user root
Feb 24 12:10:34 c4e-backupsrv sudo[111174]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m node --login
Feb 24 12:10:34 c4e-backupsrv sudo[111174]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:10:34 c4e-backupsrv kernel: scsi host2: iSCSI Initiator over TCP/IP
Feb 24 12:12:48 c4e-backupsrv sudo[111174]: pam_unix(sudo:session): session closed for user root
Feb 24 12:12:48 c4e-backupsrv iscsid[109333]: Connection7:0 to [target: iqn.2004-04.com.qnap:ts-832px:iscsi.test.7da889, portal: 10.0.0.10,3260] through [iface: default] is shutdown.
Feb 24 12:17:01 c4e-backupsrv CRON[111189]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 24 12:17:01 c4e-backupsrv CRON[111190]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 24 12:17:01 c4e-backupsrv CRON[111189]: pam_unix(cron:session): session closed for user root
Feb 24 12:19:25 c4e-backupsrv sudo[111192]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m node --login
Feb 24 12:19:25 c4e-backupsrv sudo[111192]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:19:25 c4e-backupsrv kernel: scsi host2: iSCSI Initiator over TCP/IP
Feb 24 12:21:39 c4e-backupsrv sudo[111192]: pam_unix(sudo:session): session closed for user root
Feb 24 12:21:39 c4e-backupsrv iscsid[109333]: Connection8:0 to [target: iqn.2004-04.com.qnap:ts-832px:iscsi.test.7da889, portal: 10.0.0.10,3260] through [iface: default] is shutdown.
Feb 24 12:39:10 c4e-backupsrv sudo[111227]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m discovery -t sendtargets -p 10.0.0.10 -P 1
Feb 24 12:39:10 c4e-backupsrv sudo[111227]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:39:10 c4e-backupsrv sudo[111227]: pam_unix(sudo:session): session closed for user root
Feb 24 12:43:09 c4e-backupsrv sudo[111229]:     root : TTY=pts/1 ; PWD=/etc/iscsi ; USER=root ; COMMAND=/usr/sbin/iscsiadm -m node --login
Feb 24 12:43:09 c4e-backupsrv sudo[111229]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
Feb 24 12:43:09 c4e-backupsrv kernel: scsi host2: iSCSI Initiator over TCP/IP
Feb 24 12:43:42 c4e-backupsrv sudo[111229]: pam_unix(sudo:session): session closed for user root
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: Can't login from linux openscsi initiator - iSCSI PDU timed out

Post by FSC830 »

Just seen...

I do not have had any issues with Ubuntu and iSCSI in my environment, but I didnt use CHAP yet.
My recommendation is to start as simple as possible, use no authentication and check, if access is possible.
If this works, go on with CHAP.

Regards
Post Reply

Return to “iSCSI – Target & Virtual Disk”