On 11/29/2011 04:34 AM, Turbo Fredriksson wrote:
> I'm trying to learn and setup iSCSI on my server at home, but I don't
> have much luck so far.
> 
> 
> I can run a discover (and almost anything else):
> 
> ----- s n i p -----
> celia:~# iscsiadm -m discovery -t isns
> [...]
> 192.168.69.8:43070,1 iqn.2011-12.com.bayour:storage.debian.lenny.64
> [...]
> ----- s n i p -----
> 
> I have setup the iface (preparing for a multihomed machine):
> 
> ----- s n i p -----
> celia:~# iscsiadm -m iface
> default tcp,default,default,unknown
> iser iser,default,default,unknown
> bnx2i bnx2i,default,default,unknown
> iface0 tcp,00:21:97:8c:8f:5f,default,iqn.1993-08.org.debian:01:97d0448a2b3c
> celia:~# iscsiadm -m iface -I iface0
> iface.iscsi_ifacename = iface0
> iface.net_ifacename = default
> iface.hwaddress = 00:21:97:8c:8f:5f
> iface.transport_name = tcp
> iface.initiatorname = iqn.1993-08.org.debian:01:97d0448a2b3c
> celia:~# ifconfig eth2
> eth2      Link encap:Ethernet  HWaddr 00:21:97:8c:8f:5f
>           inet addr:192.168.69.8  Bcast:192.168.69.255  Mask:255.255.255.0
>           inet6 addr: fe80::221:97ff:fe8c:8f5f/64 Scope:Link
>           UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
>           RX packets:12548813 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:22819953 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:50000
>           RX bytes:927858361 (884.8 MiB)  TX bytes:32070627200 (29.8 GiB)
>           Interrupt:44 Base address:0xe000
> 
> celia:~#
> ----- s n i p -----
> 
> But when i try to login to the target, it fails:
> 
> ----- s n i p -----
> celia:~# iscsiadm -m node -T
> iqn.2011-12.com.bayour:storage.debian.squeeze.64 -l
> Logging in to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,3260]
> Logging in to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,43070]
> Logging in to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,43305]
> [hangs there for x (120?) seconds]
> iscsiadm: Could not login to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,3260]:
> iscsiadm: initiator reported error (8 - connection timed out)
> iscsiadm: Could not login to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,43070]:
> iscsiadm: initiator reported error (8 - connection timed out)
> iscsiadm: Could not login to [iface: iface0, target:
> iqn.2011-12.com.bayour:storage.debian.squeeze.64, portal:
> 192.168.69.8,43305]:
> iscsiadm: initiator reported error (8 - connection timed out)
> celia:~#
> ----- s n i p -----
> 
> 
> Running iscsid in debug mode, I see some very strange output when
> starting up:
> 
> ----- s n i p -----
> celia:/etc/iscsi# ps | egrep 'iet|iscsi|isns'
> 20218 ?        Ssl    0:00 /usr/sbin/isnsd -a 192.168.69.8 -b
> 192.168.69.255
> 20238 ?        Ss     0:00 /usr/sbin/ietd --address=192.168.69.8
> celia:/etc/iscsi# iscsid -f -d8 2>&1 | tee /tmp/x
> [...]
> iscsid: Cannot resolve host . getaddrinfo error: [Servname not supported
> for ai_socktype]
> 
> iscsid: cannot resolve host name
> iscsid: destroying session
> [...]
> ----- s n i p -----
> 
> However, I can clearly see (in /tmp/x) that it - iscsiadm - is actually
> connecting, there's
> "movement" in iscsid). This keep repeating:
> 
> ----- s n i p -----

This is just internal iscsid stuff. It just means the daemon is probing
to see if there have been any events like have we connected to the iscsi
target.

Could you send all of the iscsid log you have?


> iscsid: thread 0887b9d4 removed from poll_list
> iscsid: exec thread 0887b9d4 callback
> iscsid: thread 0x887b9d4 schedule: delay 0 state 3
> iscsid: thread removed
> ----- s n i p -----
> 


> 
> Both the target(s), initiator(s) and iSNSd is running on the same
> host and changing from iSNS to sendtarget does not change anything...
> 

If you do not use ifaces does it work?

Did you change the rp_filter?

Could you also try a newer version of open-iscsi?

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to