LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-02-2020, 05:28 PM   #1
drstang
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
iSCSI No portals found Debian


Hi -

I've been banging my head into a wall trying to figure this out. I'm setting up an iSCSI share on Debian, but keep getting "No portals found" on my client machine when I do: iscsiadm -m discovery -t st -p 192.168.3.21

In my google searches, I keep running into ACL solutions, but my ACL is set to "ALL". I've reinstalled my target and open-iscsi but nothing helps. I can ping my target from the client without any problems, and have put my initiator name into the initiators.conf file on the client. Any solutions will be greatly appreciated!


sudo tgtadm --mode target --op show
Code:
   Target 1: iqn.2020-04.lan.servers:target01
 System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00010000
            SCSI SN: beaf10
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            SWP: No
            Thin-provisioning: No
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 52429 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            SWP: No
            Thin-provisioning: No
            Backing store type: rdwr
            Backing store path: /iscsi/blocks/1.img
            Backing store flags: 
    Account information:
        server
        servers
    ACL information:
        ALL
        iqn.2020-04.lan.servers:initiator01
Target config file:
Code:
<target iqn.2020-04.lan.servers:target01>
    # provided devicce as a iSCSI target
    backing-store /iscsi/blocks/1.img
    # iSCSI Initiator's IQN you allow to connect to this Target
    initiator-name iqn.2020-04.lan.servers:initiator01
    # authentication info ( set any name you like for "username", "password" )
    incominguser servers install
</target>
iscsiadm -m discovery (on client/initiator):
Code:
192.168.3.21:3260 via sendtargets
iscsiadm --mode node
Code:
No records found
 
Old 05-13-2020, 09:58 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
When I worked on this I was doing everything through configfs. See http://linux-iscsi.org/wiki/ConfigFS Things may have changed since then but to me it looks like you have the SCSI device created but not the network side. See what you get from:
Code:
cat /sys/kernel/config/targetiscsi/<YOUR IQN>/<YOUR TARGET>/enable
cat /sys/kernel/config/targetiscsi/<YOUR IQN>/<YOUR TARGET>/attrib/authentication
ls /sys/kernel/config/targetiscsi/<YOUR IQN>/<YOUR TARGET>/np
Edit: Checking my old notes, to do this you may need:

Code:
modprobe configfs
mount -t configfs none /sys/kernel/config

Last edited by smallpond; 05-14-2020 at 09:26 AM.
 
  


Reply



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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
Which Linux/Security portals you usually visit? serz Linux - Security 13 09-13-2004 12:17 AM
What is a good app builder for creating portals? lostboy Programming 1 09-13-2003 09:46 AM

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

All times are GMT -5. The time now is 11:13 AM.

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