Skip to Main Content

Issue in Sharing Storage between two machines by using Oracle linux 7.9

User_KL5ECAug 20 2021

Hi,
I am sharing storage between 2 machines, follow the steps and stuck in the last of sharing storage. I am using Oracle Linux 7.9 on both machines (storage and node) and sharing storage using targetcli on it, all the things run smoothly. I discovered the storage from node but when trying to login, it shows an this error.
Please Guide
root@racnode1 iscsi]# iscsiadm -m discovery -t sendtargets -p 192.168.1.15
192.168.1.15:3260,1 iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe

Error:
-----------
[root@racnode1 iscsi]# iscsiadm -m node -T iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe 192.168.1.15 -l
Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe, portal: 192.168.1.15,3260] (multiple)
iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe, portal: 192.168.1.15,3260].
iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)
iscsiadm: Could not log into all portals
==============================================================
Other info:
========
ssh configured, firewall stopped, pining successfully

Node iqn:
---------------
[root@racnode1 iscsi]# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2017-02.tn.wadhahdaouehi.node:racnode1

Storage iqn:
--------------------
[root@storage ~]# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe

Storage:
--------------------
[root@storage ~]# targetcli
targetcli shell version 2.1.53
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- block .................................................................................................. [Storage Objects: 1]
| | o- newlun_sdb .......................................

Comments
Post Details
Added on Aug 20 2021
0 comments
23 views