Re: [PATCH] Add support for sending iSCSI NOP-IN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Per target?

No.
It is set globally.
I don't think this is a setting that users want/need to set for
individual targets.

If users need per individual target settings and can provide a good
rationale why this is needed, we can add this later.




On Sat, Jun 15, 2013 at 3:43 PM, FUJITA Tomonori
<fujita.tomonori@xxxxxxxxxxxxx> wrote:
> Very Sorry about the delay.
>
> On Sat,  8 Jun 2013 08:13:58 -0700
> Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx> wrote:
>
>> Add target initiated NOP-IN so we can detect when an initiator is no longer available
>> and tear down the connection.
>> Add documentation to the manpage on how to configure the use of NOP-IN, the intervals
>> between the NOP-INs and after how many consequitive failures we will tear down the connection.
>>
>> Disabled by default to preserve the current behaviour but can be enabled/configured on the TGTD
>> command line.
>>
>> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
>> ---
>>  doc/tgtd.8.xml        |   29 +++++++++++++++
>>  usr/iscsi/iscsi_tcp.c |   95 ++++++++++++++++++++++++++++++++++++++++++++++++-
>>  usr/iscsi/iscsid.c    |   46 +++++++++++++++++++----
>>  usr/iscsi/iscsid.h    |    2 +
>>  usr/iscsi/transport.h |    1 +
>>  5 files changed, 164 insertions(+), 9 deletions(-)
>>
>> diff --git a/doc/tgtd.8.xml b/doc/tgtd.8.xml
>> index ce734ce..764e3fb 100644
>> --- a/doc/tgtd.8.xml
>> +++ b/doc/tgtd.8.xml
>> @@ -129,6 +129,35 @@
>>        </screen>
>>        </para>
>>      </refsect2>
>> +    <refsect2><title>noop_interval=&lt;integer&gt;</title>
>> +      <para>
>> +     This option enables TGTD to send send NOP-OUT to check is
>> +     a connected initiator is still alive.
>> +     This parameter specifies the interval between each NOP-OUT that
>> +     TGTD will send in seconds.
>> +      </para>
>> +      <para>
>> +     This feature is disabled by default.
>> +      </para>
>> +    </refsect2>
>> +    <refsect2><title>noop_count=&lt;integer&gt;</title>
>> +      <para>
>> +     When sending NOP-OUT to the initiator, after this many consecutive
>> +     failures TGTD will terminate the connection to the client.
>> +     This feature can be used to read dead connections faster than waiting
>> +     for any TCP-Keepalive to trigger.
>> +      </para>
>> +      <para>
>> +     This feature is disabled by default.
>> +      </para>
>> +      <para>
>> +      Example: send NOP-OUT every 5 seconds and abort the session after
>> +      6 failures.
>> +      <screen format="linespecific">
>> +     tgtd --iscsi portal=192.0.2.1:3260,noop_interval=5,noop_count=6
>
> Per target?
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux