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 -----
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 -----
There is no iptables (everything is in ACCEPT):
----- s n i p -----
celia:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
celia:~# iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
----- 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...
Kernel: 3.0.8/x86_64
OS: Debian GNU/Linux Lenny
ZFS: ZoL 0.6.0-rc6/git 20111119
iSCSI: iscsitarget (1.4.20.2-6),
open-iscsi (2.0.870~rc3-0.4.1),
isns (2.1-01+dfsg-3)
--
... but you know as soon as Oracle starts waving its wallet at a
Company it's time to run - fast.
/illumos mailing list
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.