[stgt] [PATCH] Add support for sending iSCSI NOP-IN
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Sun Jun 16 00:43:42 CEST 2013
Very Sorry about the delay.
On Sat, 8 Jun 2013 08:13:58 -0700
Ronnie Sahlberg <ronniesahlberg at gmail.com> 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 at gmail.com>
> ---
> 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=<integer></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=<integer></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 at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list