diff options
author | Lee Duncan <lduncan@suse.com> | 2018-10-09 11:10:42 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2018-10-09 11:10:42 -0700 |
commit | 467946a945cc0f2432274a66e916959d5a5c3772 (patch) | |
tree | d57a77ac4c6dd259adc0f76275916451c2445f71 /etc | |
parent | 7d08897792353057a98f0f80e4ee29af9cc860f0 (diff) | |
download | open-iscsi-467946a945cc0f2432274a66e916959d5a5c3772.tar.gz |
When reopen_max=0 retry reopening forever.
Commit b9afe4709900 added a configuration variable for session
reconnect called reopen_max that defaults to 32. This changes the
behavior of iscsid on startup if it finds any session information
left over from previous invocations. Adding the option of setting
the retry count to zero to imply previous behavior allows those
that are counting on this behavior to continue. But, make no
mistake, it is recommended not to retry forever, as it leaves
iscsid stuck in "iscsi_sysfs_for_each_session()" in iscsid.c:main(),
so iscsid never fully gets up and running.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/iscsid.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/iscsid.conf b/etc/iscsid.conf index dec3857..00ce546 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -294,9 +294,10 @@ discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768 node.session.nr_sessions = 1 # When iscsid starts up it recovers existing sesssions, if possible. -# If the target has gone away when this occurs, this value -# limits the number of retries to re-login. -# Retries are done every 2 seconds. +# 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 #************ |