Unable to discover targets.

5,848 views
Skip to first unread message

arvind ks

unread,
Mar 17, 2012, 4:55:03 PM3/17/12
to open-iscsi
Hi Guys,
I have created a Redhat 5 VM and a Openfiler VM in a VMTeam. I have
given them 2 ethernet cards. One as a lan segment and other as a
bridged. Both VMs are able to communicate. I have assigned these IPS.

Open Filer:: 192.168.10.4 HostName: "openfiler"
RedHat 5::192.168.10.1 Hostname: "arvindlinux"

Both are able to communicate with each other and i am able to SSH from
Redhat to Openfiler and from Openfiler to Redhat. I have followed the
link below for sharing a volume from Openfiler to the Redhat host.
http://www.idevelopment.info/data/Unix/Linux/LINUX_ConnectingToAniSCSITargetWithOpen-iSCSIInitiatorUsingLinux.shtml

As mentioned in the article i've created a Volume and Shared it with
Linux Host and have given ALLOW access.

But when i run this i dont see any output..

In the Configure the iSCSI (Initiator) Service step::

[root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
openfiler
[root@arvindlinux ~]#
( DONT SEE ANY OUTPUT ABOVE)

If i use openfiler-san as he has used in the example i get the below
error.

[root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
openfiler-san
iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
iscsiadm: connection to discovery address 66.114.124.140 failed
iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
iscsiadm: connection to discovery address 66.114.124.140 failed
iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
iscsiadm: connection to discovery address 66.114.124.140 failed
iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
iscsiadm: connection to discovery address 66.114.124.140 failed
iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
iscsiadm: connection to discovery address 66.114.124.140 failed
iscsiadm: connection login retries (reopen_max) 5 exceeded
[root@arvindlinux ~]#

In the link given he got the below output.
[root@linux3 ~]# iscsiadm -m discovery -t sendtargets -p openfiler1-
san
192.168.2.195:3260,1 iqn.2006-01.com.openfiler:scsi.linux3-data-1

Thanks in advance,
Arvind














Mike Christie

unread,
Mar 20, 2012, 2:47:20 PM3/20/12
to open-...@googlegroups.com, arvind ks
On 03/17/2012 03:55 PM, arvind ks wrote:
> Hi Guys,
> I have created a Redhat 5 VM and a Openfiler VM in a VMTeam. I have
> given them 2 ethernet cards. One as a lan segment and other as a
> bridged. Both VMs are able to communicate. I have assigned these IPS.
>
> Open Filer:: 192.168.10.4 HostName: "openfiler"
> RedHat 5::192.168.10.1 Hostname: "arvindlinux"
>
> Both are able to communicate with each other and i am able to SSH from
> Redhat to Openfiler and from Openfiler to Redhat. I have followed the
> link below for sharing a volume from Openfiler to the Redhat host.
> http://www.idevelopment.info/data/Unix/Linux/LINUX_ConnectingToAniSCSITargetWithOpen-iSCSIInitiatorUsingLinux.shtml
>
> As mentioned in the article i've created a Volume and Shared it with
> Linux Host and have given ALLOW access.
>
> But when i run this i dont see any output..
>
> In the Configure the iSCSI (Initiator) Service step::
>
> [root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
> openfiler
> [root@arvindlinux ~]#
> ( DONT SEE ANY OUTPUT ABOVE)
>

Do

iscsiadm -m discovery -t sendtargets -p openfiler -d 8


and send the output. This normally happens when using have set the ip
address for openfiler to a non iscsi address (so it was meant as just a
sort of admin ip on the target) or they did not have targets mapped on
the target properly or they did not have the initiatorname
(/etc/iscsi/initiatorname.iscsi) mapped on the target properly.


> If i use openfiler-san as he has used in the example i get the below
> error.
>
> [root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
> openfiler-san
> iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
> iscsiadm: connection to discovery address 66.114.124.140 failed
> iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
> iscsiadm: connection to discovery address 66.114.124.140 failed
> iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
> iscsiadm: connection to discovery address 66.114.124.140 failed
> iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
> iscsiadm: connection to discovery address 66.114.124.140 failed
> iscsiadm: cannot make connection to 66.114.124.140:3260 (111)
> iscsiadm: connection to discovery address 66.114.124.140 failed
> iscsiadm: connection login retries (reopen_max) 5 exceeded
> [root@arvindlinux ~]#
>

Are you sure you enabled the iscsi target service on openfiler and are
you sure you restarted the service?

111 is Connection refused by the target. It would not let us open a
tcp/ip connection to that address.

arvind ks

unread,
Mar 21, 2012, 6:00:23 AM3/21/12
to open-iscsi
Thanks for looking at it Mikey. Here is the output of the command that
you have mentioned. Please let me know what should be done further.

[root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
openfiler -d 8
iscsiadm: Max file limits 1024 1024

iscsiadm: updating defaults from '/etc/iscsi/iscsid.conf'
iscsiadm: updated
'discovery.sendtargets.iscsi.MaxRecvDataSegmentLength', '32768' =>
'32768'
iscsiadm: updated 'node.startup', 'manual' => 'automatic'
iscsiadm: updated 'node.session.timeo.replacement_timeout', '120' =>
'120'
iscsiadm: updated 'node.conn[0].timeo.login_timeout', '30' => '15'
iscsiadm: updated 'node.conn[0].timeo.logout_timeout', '15' => '15'
iscsiadm: updated 'node.conn[0].timeo.noop_out_interval', '5' => '5'
iscsiadm: updated 'node.conn[0].timeo.noop_out_timeout', '5' => '5'
iscsiadm: updated 'node.session.initial_login_retry_max', '4' => '4'
iscsiadm: updated 'node.session.cmds_max', '128' => '128'
iscsiadm: updated 'node.session.queue_depth', '32' => '32'
iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' =>
'262144'
iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' =>
'16776192'
iscsiadm: updated 'node.conn[0].iscsi.MaxRecvDataSegmentLength',
'131072' => '131072'
iscsiadm: starting sendtargets discovery, address openfiler:3260,
iscsiadm: sendtargets discovery to openfiler:3260 using isid
0x00023d000000
iscsiadm: discovery timeouts: login 15, reopen_cnt 5, auth 45.
iscsiadm: connecting to 192.168.10.4:3260
iscsiadm: connected local port 16734 to 192.168.10.4:3260
iscsiadm: connected to discovery address 192.168.10.4
iscsiadm: discovery session to openfiler:3260 starting iSCSI login on
fd 3
iscsiadm: sending login PDU with current stage 1, next stage 3,
transit 0x80, isid 0x00023d000000 exp_statsn 0
iscsiadm: > InitiatorName=iqn.1994-05.com.redhat:5ab50b16d8d
iscsiadm: > InitiatorAlias=arvindlinux.home.com
iscsiadm: > SessionType=Discovery
iscsiadm: > HeaderDigest=None
iscsiadm: > DataDigest=None
iscsiadm: > DefaultTime2Wait=0
iscsiadm: > DefaultTime2Retain=0
iscsiadm: > IFMarker=No
iscsiadm: > OFMarker=No
iscsiadm: > ErrorRecoveryLevel=0
iscsiadm: > MaxRecvDataSegmentLength=32768
iscsiadm: wrote 48 bytes of PDU header
iscsiadm: wrote 260 bytes of PDU data
iscsiadm: read 48 bytes of PDU header
iscsiadm: read 48 PDU header bytes, opcode 0x23, dlength 142, data
0x939a430, max 32768
iscsiadm: read 142 bytes of PDU data
iscsiadm: read 2 pad bytes
iscsiadm: finished reading login PDU, 48 hdr, 0 ah, 142 data, 2 pad
iscsiadm: login current stage 1, next stage 3, transit 0x80
iscsiadm: > TargetPortalGroupTag=1
iscsiadm: > HeaderDigest=None
iscsiadm: > DataDigest=None
iscsiadm: > DefaultTime2Wait=2
iscsiadm: > DefaultTime2Retain=0
iscsiadm: > IFMarker=No
iscsiadm: > OFMarker=No
iscsiadm: > ErrorRecoveryLevel=0
iscsiadm: login response status 0000
iscsiadm: discovery login success to 192.168.10.4
iscsiadm: sending text pdu with CmdSN 1, exp_statsn 1
iscsiadm: > SendTargets=All
iscsiadm: wrote 48 bytes of PDU header
iscsiadm: wrote 16 bytes of PDU data
iscsiadm: discovery process openfiler:3260 polling fd 3, timeout in
30.000000 seconds
iscsiadm: discovery process to openfiler:3260 returned from poll, rc 1
iscsiadm: read 48 bytes of PDU header
iscsiadm: read 48 PDU header bytes, opcode 0x24, dlength 0, data
0x939a430, max 32768
iscsiadm: discovery session to openfiler:3260 received text response,
0 data bytes, ttt 0xffffffff, final 0x80
iscsiadm: Removing config file /var/lib/iscsi/send_targets/openfiler,
3260

iscsiadm: Looking for config file /var/lib/iscsi/send_targets/
openfiler,3260

iscsiadm: Looking for config file /var/lib/iscsi/send_targets/
openfiler,3260 config st_config.
iscsiadm: Could not stat /var/lib/iscsi/send_targets/openfiler,3260
err 2.
iscsiadm: Could not open /var/lib/iscsi/send_targets/openfiler,3260
err 2

iscsiadm: adding new DB record
iscsiadm: Looking for config file /var/lib/iscsi/send_targets/
openfiler,3260

iscsiadm: discovery process to openfiler:3260 exiting
[root@arvindlinux ~]#


On Mar 20, 11:47 pm, Mike Christie <micha...@cs.wisc.edu> wrote:
> On 03/17/2012 03:55 PM, arvind ks wrote:
>
>
>
> > Hi Guys,
> > I have created a Redhat 5 VM and a Openfiler VM in a VMTeam. I have
> > given them 2 ethernet cards. One as a lan segment and other as a
> > bridged. Both VMs are able to communicate. I have assigned these IPS.
>
> > Open Filer:: 192.168.10.4 HostName: "openfiler"
> > RedHat 5::192.168.10.1 Hostname: "arvindlinux"
>
> > Both are able to communicate with each other and i am able to SSH from
> > Redhat to Openfiler and from Openfiler to Redhat. I have followed the
> > link below for sharing a volume from Openfiler to the Redhat host.
> >http://www.idevelopment.info/data/Unix/Linux/LINUX_ConnectingToAniSCS...

Mike Christie

unread,
Mar 21, 2012, 2:02:36 PM3/21/12
to open-...@googlegroups.com, arvind ks
On 03/21/2012 05:00 AM, arvind ks wrote:
> Thanks for looking at it Mikey. Here is the output of the command that
> you have mentioned. Please let me know what should be done further.
>
> [root@arvindlinux ~]# iscsiadm -m discovery -t sendtargets -p
> openfiler -d 8

For this command the target just did not return any targets.

> iscsiadm: read 48 bytes of PDU header
> iscsiadm: read 48 PDU header bytes, opcode 0x24, dlength 0, data
> 0x939a430, max 32768
> iscsiadm: discovery session to openfiler:3260 received text response,
> 0 data bytes, ttt 0xffffffff, final 0x80

It looks like the misconfig setup we normally see or the discovery to
the wrong ip.

lame...@gmail.com

unread,
Dec 16, 2019, 12:28:48 PM12/16/19
to open-iscsi
That's it. thak you so much!! you saved my time
Reply all
Reply to author
Forward
0 new messages