If I remove the second </target> and try to discover again I get :

root@control:/home/Administrator# iscsiadm -m discovery -t st -p
192.168.0.10:3260
iscsiadm: No portals found

Here is what I get when I look at the tgt show :

[root@NAS ~]# tgtadm --mode target --op show
Target 1: iqn.2016-03.local.seamine:server.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
            Backing store type: null <====
            Backing store path: None
            Backing store flags:
    Account information:
    ACL information:

Looks like it is missing a path to the storage image I made. Something I
need to set or should tgtd figure this out itself ?


On Fri, Mar 25, 2016 at 4:23 PM, Mike Christie <[email protected]> wrote:

> On 03/25/2016 01:27 PM, Graham Welsh wrote:
> > Also, in my poking around, I discovered a debug mode :
> >
> > iscsiadm -m discovery -t st -b8 -p 192.168.0.10:3260
> > <http://192.168.0.10:3260>
> >
> > which fives the output :
> >
> > iscsiadm: Connection to Discovery Address 192.168.0.10 closed
> > iscsiadm: Login I/O error, failed to receive a PDU
> > iscsiadm: retrying discovery login to 192.168.0.10
> > iscsiadm: disconnecting conn 0x226bde0, fd 3
> > iscsiadm: discovery session to 192.168.0.10:3260
> > <http://192.168.0.10:3260> sleeping for 1 seconds before next login
> attempt
> > iscsiadm: connecting to 192.168.0.10:3260 <http://192.168.0.10:3260>
> > iscsiadm: connected local port 43632 to 192.168.0.10:3260
> > <http://192.168.0.10:3260>
> > iscsiadm: connected to discovery address 192.168.0.10
> > iscsiadm: discovery session to 192.168.0.10:3260
> > <http://192.168.0.10:3260> starting iSCSI login
> > iscsiadm: sending login PDU with current stage 1, next stage 3, transit
> > 0x80, isid 0x00023d000000 exp_statsn 0
> > iscsiadm: >    InitiatorName=iqn.2005-03.org.open-iscsi:9b96ddaa68f4
> > iscsiadm: >    InitiatorAlias=control
> > iscsiadm: >    SessionType=Discovery
> > iscsiadm: >    HeaderDigest=None
> > iscsiadm: >    DataDigest=None
> > iscsiadm: >    DefaultTime2Wait=2
> > iscsiadm: >    DefaultTime2Retain=0
> > iscsiadm: >    IFMarker=No
> > iscsiadm: >    OFMarker=No
> > iscsiadm: >    ErrorRecoveryLevel=0
> > iscsiadm: >    MaxRecvDataSegmentLength=32768
> > iscsiadm: wrote 48 bytes of PDU header
> > iscsiadm: wrote 252 bytes of PDU data
> > iscsiadm: iscsi_login: Poll return 1
> >
> > iscsiadm: Connection to Discovery Address 192.168.0.10 closed
> > iscsiadm: Login I/O error, failed to receive a PDU
> > iscsiadm: retrying discovery login to 192.168.0.10
> > iscsiadm: connection login retries (reopen_max) 5 exceeded
> > iscsiadm: disconnecting conn 0x226bde0, fd 3
> > iscsiadm: Could not perform SendTargets discovery: encountered iSCSI
> > login failure
> >
>
> Something is not right on the target. It will let us connect, is on
> responding to iscsi requests.
>
> Is there anything in the target logs?
>
> There is also a "show" type of command for tgt. Can you send the output
> of that. It should list the targets that were setup and the LUNs mapped
> and ACLs, etc.
>
> Also, from your other mail:
>
> <target iqn.2016-03.local.seamine:server.target01>
>  backing-store /iscsi_disks/disk01.img
> </target>
> </target>
>
> This is wrong and might be a issue. You have two </target> lines there.
> Not sure if just a cut and paste error.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "open-iscsi" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/open-iscsi/oG4ByBK6Y6w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to