From 1185b00c624851afdd01d9cae808253e952114af Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Thu, 11 Oct 2018 10:31:25 -0700 Subject: Make reconnect to session on startup forever default. The daemon has traditionally tried to recover stale sessions, at startup, in serial and in a forked process. A recent commit, b9afe4709900, added the ability to limit these retries, and it made the default 32. Commit 467946a945cc added back in the ability to retry forever, if the retry count was set to 0, but left the default at 32. This commit changes the default to 0, so as not to disrupt the expected reconnection behavior by default. --- etc/iscsid.conf | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'etc') diff --git a/etc/iscsid.conf b/etc/iscsid.conf index 00ce546..70985af 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -293,12 +293,16 @@ discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768 # appropriate number of sessions is created. node.session.nr_sessions = 1 -# When iscsid starts up it recovers existing sesssions, if possible. -# If the target for a session has gone away when this occurs, this -# configuration value limits the number of retries to re-login, which -# are done every 2 seconds. A value of 0 implies to retry forever, -# which is not recommended. -node.session.reopen_max = 32 +# When iscsid starts up it recovers existing sessions, if possible. +# If the target for a session has gone away when this occurs, the +# iscsid daemon normally tries to reestablish each session, +# in succession, in the background, by trying again every two +# seconds, until all sessions are restored. This configuration +# variable can limits the number of retries for each session. +# For example, setting reopen_max=150 would mean that each session +# recovery was limited to about five minutes. +# +node.session.reopen_max = 0 #************ # Workarounds -- cgit v1.2.1