<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On Friday 14 September 2012 03:36 PM,
      Laszlo Fekete wrote:<br>
    </div>
    <blockquote cite="mid:1701112.cmD8xv0E5o@blondie" type="cite">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">I have fresh debian squeeze with standard
          2.6.32-5-amd64 kernel and iscsitarget + iscsitarget-dkms
          packages and have some other squeeze with open-iscsi
          initiators.</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">The problem is after a long testing, that if
          there is more than 32 active sessions when try
          /etc/init.d/iscsitarget restart, it sometimes fails, so no
          more than 32 initiator can reconnect.</span></p>
    </blockquote>
    <br>
    What is the error you see on the initiator? Does it report that the
    connection already exists?<br>
    <br>
    <blockquote cite="mid:1701112.cmD8xv0E5o@blondie" type="cite">
      <p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px; "> </p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">For more details:</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">I have 16 targets with summary 40 active
          sessions, try to restart the iscsi target and sometimes (not
          all the time, 20-60% of the tries for me) it fail. first 32
          clients can reconnect without problem, but the others don't
          get answer from the target and don't working. There is no
          error on target or initiator side, just the initiators try to
          reconnect.</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">There is two type of the initiators:</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">- using one session to access the target with
          only one ip, open-iscsi config limits and timeout are the
          default</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">- using 4 session to access the two target
          (some of the targets are duplicated within 2 servers with
          drbd) with 2 session/ip per target. These initiators using
          multipath and minimal (1sec) timeouts.</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">Both type contains sessions which are just
          connected, but the target isn't mounted on that client which
          failed to reconnect.</span></p>
      <p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px; "> </p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">If the iscsi target restart fail it random
          which initiator stuck, I think it only depend on who is the
          faster to be in the first 32 session.</span></p>
    </blockquote>
    <br>
    I am not sure here. The open-iscsi default replacement timeout is
    120 secs. Even then, when the target is back, it will poll it.<br>
    <br>
    <blockquote cite="mid:1701112.cmD8xv0E5o@blondie" type="cite">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">Tried to check, maybe this is a network
          connection, but if the restart fail and try to telnet to them
          sometimes it also don't answer (tcpdump show, that the target
          server got the request, but don't send any answer).</span></p>
      <p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px; "> </p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">Checked that maybe on the iscsi target stop
          stucked, but it seems to be okay, the session closed, the
          modules unloaded, there isn't any error, tried to raise the
          sleep time before start to 10 sec from 1, but got the same
          error.</span></p>
    </blockquote>
    <br>
    What 1 sec setting are you referring here?<br>
    <br>
    <blockquote cite="mid:1701112.cmD8xv0E5o@blondie" type="cite">
      <p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px; "> </p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">So I think there is a limit somewere that the
          in a short time no more than 32 initiator can connect, but
          don't find any of this.</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">Checked the newer iscsi targets changelog and
          don't see any report that describe this problem, so don't
          tried to upgrade wheezy.</span></p>
      <p style="-qt-paragraph-type:empty; margin-top:0px;
        margin-bottom:0px; margin-left:0px; margin-right:0px;
        -qt-block-indent:0; text-indent:0px; "> </p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;"><span style=" font-family:'Courier
          New,courier';">Debian GNU/Linux 6.0, kernel 2.6.32-5-amd64,
          libc 2.11.3-3</span></p>
    </blockquote>
    <br>
    <br>
    There are settings in ietd.conf where you can set the Max number of
    connections/sessions. Have you explored them?<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ritesh Raj Sarraf | <a class="moz-txt-link-freetext" href="http://people.debian.org/~rrs">http://people.debian.org/~rrs</a>
Debian - The Universal Operating System
</pre>
  </body>
</html>