hi wu,
I'm trying to set up iscsi target for mac 10.6.8. my goal is, to share partitons of my internal HD on my macbook to virtualbox.
works fine with linux tools,
but under Mac OSX, where I used your pyTarget 1.5.7.1, I encounter problems, that neither vbox, nor the globalsan initiator could connect to pyTarget.
so I moved to linux (debian wheezy) for testing. using open-iscsi 2.0.87.3-6 as an initiator (on linxu 2.6.38-2) for pyTarget.
I get the following pbls.
using the example config (more or less), drops an iscsiadm discovery with the following
iscsiadm -m discovery -p 192.168.33.1 -t st -d 3
iscsiadm: Max file limits 1024 1024
iscsiadm: starting sendtargets discovery, address 192.168.33.1:3260,
iscsiadm: connecting to 192.168.33.1:3260
DEBUG: create connect
DEBUG: destroy connect 0
iscsiadm: connected local port 50014 to 192.168.33.1:3260
iscsiadm: connected to discovery address 192.168.33.1
INFO: initiator 192.168.33.1:50014 connect.
NEGOTIATION: SessionType = Discovery
WARNING: initiator name or target name is INVAILD iqn.2011-07.local.dei:radika
DEBUG: connect 0 finish.
iscsiadm: login response status 0200
iscsiadm: discovery login to 192.168.33.1 rejected: initiator error (02/00), non-retryable, giving up
iscsiadm: disconnecting conn 0x6b2de0, fd 3
iscsiadm: Could not perform SendTargets discovery.
WARNING: initiator name or target name is INVAILD iqn.2011-07.local.dei:radika
DEBUG: connect 0 finish.
config:
cat config.xml
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<root>
<!-- configure target console -->
<console ip="" port="3260" debug_level="6" />
<!-- configure the first target -->
<target name="iqn.2011-07.1.python.iscsi.target-1" ip="192.168.33.1" port="3260" portal="1">
<!-- the first iqn of this target configured for disk array -->
<host name="iqn.2011-07.1" target_pwd="" initiator_pwd="">
<lun id="0" type="0" path="Disk-1" capacity="102400" />
<lun id="1" type="0" path="Disk-2" capacity="102400" />
</host>
<!-- negotiation parameter for this target -->
<item key="MaxConnections" value="8" />
<item key="InitialR2T" value="Yes" />
<item key="ImmediateData" value="Yes" />
<item key="FirstBurstLength" value="65536" />
<item key="MaxBurstLength" value="262144" />
<item key="DefaultTime2Wait" value="2" />
<item key="DefaultTime2Retain" value="20" />
<item key="MaxOutstandingR2T" value="16" />
<item key="DataPDUInOrder" value="Yes" />
<item key="DataSequenceInOrder" value="Yes" />
<item key="ErrorRecoveryLevel" value="2" />
<item key="MaxRecvDataSegmentLength" value="65536" />
</target>
<!-- configure isns client -->
<isns enable="no" isns_server_ip="192.168.33.1" isns_server_port="3205" isns_client_port="6006">
<isns_target name="iqn.2011-07.1.python.iscsi.target-1" dd="dd" />
</isns>
</root>
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I tested again on mac, and get the same errors there, with the latest globalsan initiator.
<host name="iqn.2011-07.1" target_pwd="" initiator_pwd="">
---> the host name is "initiator name", please change your open-iscsi config, initiator name to iqn.2011-07.1