Forum Stats

  • 3,759,867 Users
  • 2,251,608 Discussions
  • 7,870,847 Comments

Discussions

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

User_KL5EC
User_KL5EC Member Posts: 2 Red Ribbon

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

[email protected] 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:

-----------

[[email protected] 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:

---------------

[[email protected] iscsi]# cat /etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.2017-02.tn.wadhahdaouehi.node:racnode1


Storage iqn:

--------------------

[[email protected] ~]# cat /etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.2003-01.org.linux-iscsi.storage.x8664:sn.cf46131fa4fe


Storage:

--------------------

[[email protected] ~]# 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 .......................................