LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-27-2014, 03:37 AM   #1
lamletoi
Member
 
Registered: Oct 2011
Posts: 46

Rep: Reputation: Disabled
Problem with iscsi initiator on Centos 7


After install iscsi-initiator-utils for Centos 7 box.

Dependency Installed:
iscsi-initiator-utils-iscsiuio.x86_64 0:6.2.0.873-21.el7
I used discovery mode to make a connect to a Share box.

[root@cluster01 ~]# iscsiadm --mode discovery --type sendtargets --portal 172.16.0.134
172.16.0.134:3260,-1 iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb
172.16.0.134:3260,1 iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878
Then i turn on iscsi service :

[root@cluster01 ~]# service iscsi start
Redirecting to /bin/systemctl start iscsi.service
Job for iscsi.service failed. See 'systemctl status iscsi.service' and 'journalctl -xn' for details.
And when i check

systemctl status iscsi.service
It show:

Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-12-26 22:25:07 EST; 4min 10s ago
Docs: man:iscsid(8)
man:iscsiadm(8)
Process: 11832 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
Process: 11828 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS)
Main PID: 11832 (code=exited, status=8)

Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 1....134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (8 - connection timed out)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not log into all portals
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com systemd[1]: iscsi.service: main process exited, code=exited, status=8/n/a
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Failed to start Login and scanning of iSCSI devices.
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Unit iscsi.service entered failed state.

Sorry for not wrap the code but this function did not work now on chrome
Whats wrong ?

Last edited by lamletoi; 12-27-2014 at 03:39 AM.
 
Old 12-29-2014, 03:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by lamletoi View Post
After install iscsi-initiator-utils for Centos 7 box.

Dependency Installed:
iscsi-initiator-utils-iscsiuio.x86_64 0:6.2.0.873-21.el7
I used discovery mode to make a connect to a Share box.

[root@cluster01 ~]# iscsiadm --mode discovery --type sendtargets --portal 172.16.0.134
172.16.0.134:3260,-1 iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb
172.16.0.134:3260,1 iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878
Then i turn on iscsi service :

[root@cluster01 ~]# service iscsi start
Redirecting to /bin/systemctl start iscsi.service
Job for iscsi.service failed. See 'systemctl status iscsi.service' and 'journalctl -xn' for details.
And when i check

systemctl status iscsi.service
It show:

Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-12-26 22:25:07 EST; 4min 10s ago
Docs: man:iscsid(8)
man:iscsiadm(8)
Process: 11832 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
Process: 11828 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS)
Main PID: 11832 (code=exited, status=8)

Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 1....134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (8 - connection timed out)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260].
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: iscsiadm: Could not log into all portals
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.404bfd24eedb, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com iscsiadm[11832]: Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.share.x8664:sn.ca5f207fa878, portal: 172.16.0.134,3260] (multiple)
Dec 26 22:25:07 cluster01.itech.com systemd[1]: iscsi.service: main process exited, code=exited, status=8/n/a
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Failed to start Login and scanning of iSCSI devices.
Dec 26 22:25:07 cluster01.itech.com systemd[1]: Unit iscsi.service entered failed state.

Sorry for not wrap the code but this function did not work now on chrome
Whats wrong ?
An initial guess is, are you configured to use multipath?
 
Old 12-31-2014, 02:30 AM   #3
lamletoi
Member
 
Registered: Oct 2011
Posts: 46

Original Poster
Rep: Reputation: Disabled
I solved this problem with the correct ACL for Initiator.
 
Old 09-02-2017, 10:17 AM   #4
nonyagbo
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Solved - iSCSI login failed due to authorization failure

Rebooting the initiator(the one running the iscsiadm) helped me solve the problem -
thank you
Chukwunonso Agbo
 
Old 06-07-2019, 06:47 AM   #5
ak202589
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
iscsi proble

only two service client side systemctl start iscsid.service
systemctl start iscsi.service
 
Old 08-28-2019, 01:36 PM   #6
ammarrasheed
LQ Newbie
 
Registered: Aug 2019
Posts: 1

Rep: Reputation: Disabled
@ lamletoi / other memebers,

Can you pls guide how to correctly configure ACL for Initiator ?
the redhat links told me to use Targetcli for it and that further told me to first setup iscsi target on the redhat machine.
in my case i only need to configure the initiator.

Pls help in this regard, urgently. i m stuck in a proj
thanks a ton.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iSCSI initiator discovery problem arunabh_biswas Linux - Server 0 12-13-2010 06:07 AM
iscsi initiator aclhkaclhk Linux - Hardware 1 12-11-2009 02:38 AM
iSCSI initiator gives problems after relogging initiator service devkpict Linux - Software 0 06-27-2008 08:24 AM
CentOS 4.4 iscsi-initiator IanDMac Linux - Software 0 01-01-2007 02:04 PM
iSCSI Initiator? robby2 Linux - Software 1 08-31-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration