Link to home
Start Free TrialLog in
Avatar of RickEpnet
RickEpnetFlag for United States of America

asked on

Linux and iSCSI Initiator

I am new to Linux. I have setup a Ubuntu server. Then I installed the iSCSI. Then I ran this command

sudo iscsiadm -m discovery -t st -p 10.100.0.98

This found the iSCSI no problem. Then I ran this command.

sudo iscsiadm -m node --login
I then get this error.

iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)

I am not sure where to put the login credentials.

Please help... Thanks!!
ASKER CERTIFIED SOLUTION
Avatar of morsun
morsun
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RickEpnet

ASKER

I ran this command
iscsiadm -m node --targetname "iqn.2010-09.com.phdvirtual:6eb3206a-0e0c-4d73-83aa-4c366af46b" --portal "10.100.0.98:3260" --login

I got this
Could not lock discovery DB: /run/lock/iscsi/lock.write: Permission denied iscsiadm: no records found!
Are you running it as root?
OK I did it now with sudo and I get this

no records found!
ok, did you run all previous commands with CHAP, node.session.auth.authmethod etc sucessfully ?
There is no CHAP on the target do you still have to use it. How does that work?
From your previous inputs I thought you are trying to login, so to login to the target usually CHAP mechanism is used.
Yes there is no CHAP at all being used. So what do you think the issue is?