Blame etc/iscsid.conf

Packit eace71
#
Packit eace71
# Open-iSCSI default configuration.
Packit eace71
# Could be located at /etc/iscsi/iscsid.conf or ~/.iscsid.conf
Packit eace71
#
Packit eace71
# Note: To set any of these values for a specific node/session run
Packit eace71
# the iscsiadm --mode node --op command for the value. See the README
Packit eace71
# and man page for iscsiadm for details on the --op command.
Packit eace71
#
Packit eace71
Packit eace71
######################
Packit eace71
# iscsid daemon config
Packit eace71
######################
Packit eace71
#
Packit eace71
# If you want iscsid to start the first time an iscsi tool
Packit eace71
# needs to access it, instead of starting it when the init
Packit eace71
# scripts run, set the iscsid startup command here. This
Packit eace71
# should normally only need to be done by distro package
Packit eace71
# maintainers. If you leave the iscsid daemon running all
Packit eace71
# the time then leave this attribute commented out.
Packit eace71
#
Packit eace71
# Default for Fedora and RHEL. (uncomment to activate).
Packit eace71
# iscsid.startup = /bin/systemctl start iscsid.socket iscsiuio.soccket
Packit eace71
# 
Packit eace71
# Default if you are not using systemd (uncomment to activate)
Packit eace71
# iscsid.startup = /usr/bin/service start iscsid
Packit eace71
Packit eace71
# Check for active mounts on devices reachable through a session
Packit eace71
# and refuse to logout if there are any.  Defaults to "No".
Packit eace71
# iscsid.safe_logout = Yes
Packit eace71
Packit eace71
#############################
Packit eace71
# NIC/HBA and driver settings
Packit eace71
#############################
Packit eace71
# open-iscsi can create a session and bind it to a NIC/HBA.
Packit eace71
# To set this up see the example iface config file.
Packit eace71
Packit eace71
#*****************
Packit eace71
# Startup settings
Packit eace71
#*****************
Packit eace71
Packit eace71
# To request that the iscsi initd scripts startup a session set to "automatic".
Packit eace71
# node.startup = automatic
Packit eace71
#
Packit eace71
# To manually startup the session set to "manual". The default is manual.
Packit eace71
node.startup = manual
Packit eace71
Packit eace71
# For "automatic" startup nodes, setting this to "Yes" will try logins on each
Packit eace71
# available iface until one succeeds, and then stop.  The default "No" will try
Packit eace71
# logins on all available ifaces simultaneously.
Packit eace71
node.leading_login = No
Packit eace71
Packit eace71
# *************
Packit eace71
# CHAP Settings
Packit eace71
# *************
Packit eace71
Packit eace71
# To enable CHAP authentication set node.session.auth.authmethod
Packit eace71
# to CHAP. The default is None.
Packit eace71
#node.session.auth.authmethod = CHAP
Packit eace71
Packit eace71
# To set a CHAP username and password for initiator
Packit eace71
# authentication by the target(s), uncomment the following lines:
Packit eace71
#node.session.auth.username = username
Packit eace71
#node.session.auth.password = password
Packit eace71
Packit eace71
# To set a CHAP username and password for target(s)
Packit eace71
# authentication by the initiator, uncomment the following lines:
Packit eace71
#node.session.auth.username_in = username_in
Packit eace71
#node.session.auth.password_in = password_in
Packit eace71
Packit eace71
# To enable CHAP authentication for a discovery session to the target
Packit eace71
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
Packit eace71
#discovery.sendtargets.auth.authmethod = CHAP
Packit eace71
Packit eace71
# To set a discovery session CHAP username and password for the initiator
Packit eace71
# authentication by the target(s), uncomment the following lines:
Packit eace71
#discovery.sendtargets.auth.username = username
Packit eace71
#discovery.sendtargets.auth.password = password
Packit eace71
Packit eace71
# To set a discovery session CHAP username and password for target(s)
Packit eace71
# authentication by the initiator, uncomment the following lines:
Packit eace71
#discovery.sendtargets.auth.username_in = username_in
Packit eace71
#discovery.sendtargets.auth.password_in = password_in
Packit eace71
Packit eace71
# ********
Packit eace71
# Timeouts
Packit eace71
# ********
Packit eace71
#
Packit eace71
# See the iSCSI README's Advanced Configuration section for tips
Packit eace71
# on setting timeouts when using multipath or doing root over iSCSI.
Packit eace71
#
Packit eace71
# To specify the length of time to wait for session re-establishment
Packit eace71
# before failing SCSI commands back to the application when running
Packit eace71
# the Linux SCSI Layer error handler, edit the line.
Packit eace71
# The value is in seconds and the default is 120 seconds.
Packit eace71
# Special values:
Packit eace71
# - If the value is 0, IO will be failed immediately.
Packit eace71
# - If the value is less than 0, IO will remain queued until the session
Packit eace71
# is logged back in, or until the user runs the logout command.
Packit eace71
node.session.timeo.replacement_timeout = 120
Packit eace71
Packit eace71
# To specify the time to wait for login to complete, edit the line.
Packit eace71
# The value is in seconds and the default is 15 seconds.
Packit eace71
node.conn[0].timeo.login_timeout = 15
Packit eace71
Packit eace71
# To specify the time to wait for logout to complete, edit the line.
Packit eace71
# The value is in seconds and the default is 15 seconds.
Packit eace71
node.conn[0].timeo.logout_timeout = 15
Packit eace71
Packit eace71
# Time interval to wait for on connection before sending a ping.
Packit eace71
node.conn[0].timeo.noop_out_interval = 5
Packit eace71
Packit eace71
# To specify the time to wait for a Nop-out response before failing
Packit eace71
# the connection, edit this line. Failing the connection will
Packit eace71
# cause IO to be failed back to the SCSI layer. If using dm-multipath
Packit eace71
# this will cause the IO to be failed to the multipath layer.
Packit eace71
node.conn[0].timeo.noop_out_timeout = 5
Packit eace71
Packit eace71
# To specify the time to wait for abort response before
Packit eace71
# failing the operation and trying a logical unit reset edit the line.
Packit eace71
# The value is in seconds and the default is 15 seconds.
Packit eace71
node.session.err_timeo.abort_timeout = 15
Packit eace71
Packit eace71
# To specify the time to wait for a logical unit response
Packit eace71
# before failing the operation and trying session re-establishment
Packit eace71
# edit the line.
Packit eace71
# The value is in seconds and the default is 30 seconds.
Packit eace71
node.session.err_timeo.lu_reset_timeout = 30
Packit eace71
Packit eace71
# To specify the time to wait for a target response
Packit eace71
# before failing the operation and trying session re-establishment
Packit eace71
# edit the line.
Packit eace71
# The value is in seconds and the default is 30 seconds.
Packit eace71
node.session.err_timeo.tgt_reset_timeout = 30
Packit eace71
Packit eace71
Packit eace71
#******
Packit eace71
# Retry
Packit eace71
#******
Packit eace71
Packit eace71
# To specify the number of times iscsid should retry a login
Packit eace71
# if the login attempt fails due to the node.conn[0].timeo.login_timeout
Packit eace71
# expiring modify the following line. Note that if the login fails
Packit eace71
# quickly (before node.conn[0].timeo.login_timeout fires) because the network
Packit eace71
# layer or the target returns an error, iscsid may retry the login more than
Packit eace71
# node.session.initial_login_retry_max times.
Packit eace71
#
Packit eace71
# This retry count along with node.conn[0].timeo.login_timeout
Packit eace71
# determines the maximum amount of time iscsid will try to
Packit eace71
# establish the initial login. node.session.initial_login_retry_max is
Packit eace71
# multiplied by the node.conn[0].timeo.login_timeout to determine the
Packit eace71
# maximum amount.
Packit eace71
#
Packit eace71
# The default node.session.initial_login_retry_max is 8 and
Packit eace71
# node.conn[0].timeo.login_timeout is 15 so we have:
Packit eace71
#
Packit eace71
# node.conn[0].timeo.login_timeout * node.session.initial_login_retry_max =
Packit eace71
#								120 seconds
Packit eace71
#
Packit eace71
# Valid values are any integer value. This only
Packit eace71
# affects the initial login. Setting it to a high value can slow
Packit eace71
# down the iscsi service startup. Setting it to a low value can
Packit eace71
# cause a session to not get logged into, if there are distuptions
Packit eace71
# during startup or if the network is not ready at that time.
Packit eace71
node.session.initial_login_retry_max = 8
Packit eace71
Packit eace71
################################
Packit eace71
# session and device queue depth
Packit eace71
################################
Packit eace71
Packit eace71
# To control how many commands the session will queue set
Packit eace71
# node.session.cmds_max to an integer between 2 and 2048 that is also
Packit eace71
# a power of 2. The default is 128.
Packit eace71
node.session.cmds_max = 128
Packit eace71
Packit eace71
# To control the device's queue depth set node.session.queue_depth
Packit eace71
# to a value between 1 and 1024. The default is 32.
Packit eace71
node.session.queue_depth = 32
Packit eace71
Packit eace71
##################################
Packit eace71
# MISC SYSTEM PERFORMANCE SETTINGS
Packit eace71
##################################
Packit eace71
Packit eace71
# For software iscsi (iscsi_tcp) and iser (ib_iser) each session
Packit eace71
# has a thread used to transmit or queue data to the hardware. For
Packit eace71
# cxgb3i you will get a thread per host.
Packit eace71
#
Packit eace71
# Setting the thread's priority to a lower value can lead to higher throughput
Packit eace71
# and lower latencies. The lowest value is -20. Setting the priority to
Packit eace71
# a higher value, can lead to reduced IO performance, but if you are seeing
Packit eace71
# the iscsi or scsi threads dominate the use of the CPU then you may want
Packit eace71
# to set this value higher.
Packit eace71
#
Packit eace71
# Note: For cxgb3i you must set all sessions to the same value, or the
Packit eace71
# behavior is not defined.
Packit eace71
#
Packit eace71
# The default value is -20. The setting must be between -20 and 20.
Packit eace71
node.session.xmit_thread_priority = -20
Packit eace71
Packit eace71
Packit eace71
#***************
Packit eace71
# iSCSI settings
Packit eace71
#***************
Packit eace71
Packit eace71
# To enable R2T flow control (i.e., the initiator must wait for an R2T
Packit eace71
# command before sending any data), uncomment the following line:
Packit eace71
#
Packit eace71
#node.session.iscsi.InitialR2T = Yes
Packit eace71
#
Packit eace71
# To disable R2T flow control (i.e., the initiator has an implied
Packit eace71
# initial R2T of "FirstBurstLength" at offset 0), uncomment the following line:
Packit eace71
#
Packit eace71
# The defaults is No.
Packit eace71
node.session.iscsi.InitialR2T = No
Packit eace71
Packit eace71
#
Packit eace71
# To disable immediate data (i.e., the initiator does not send
Packit eace71
# unsolicited data with the iSCSI command PDU), uncomment the following line:
Packit eace71
#
Packit eace71
#node.session.iscsi.ImmediateData = No
Packit eace71
#
Packit eace71
# To enable immediate data (i.e., the initiator sends unsolicited data
Packit eace71
# with the iSCSI command packet), uncomment the following line:
Packit eace71
#
Packit eace71
# The default is Yes
Packit eace71
node.session.iscsi.ImmediateData = Yes
Packit eace71
Packit eace71
# To specify the maximum number of unsolicited data bytes the initiator
Packit eace71
# can send in an iSCSI PDU to a target, edit the following line.
Packit eace71
#
Packit eace71
# The value is the number of bytes in the range of 512 to (2^24-1) and
Packit eace71
# the default is 262144
Packit eace71
node.session.iscsi.FirstBurstLength = 262144
Packit eace71
Packit eace71
# To specify the maximum SCSI payload that the initiator will negotiate
Packit eace71
# with the target for, edit the following line.
Packit eace71
#
Packit eace71
# The value is the number of bytes in the range of 512 to (2^24-1) and
Packit eace71
# the defauls it 16776192
Packit eace71
node.session.iscsi.MaxBurstLength = 16776192
Packit eace71
Packit eace71
# To specify the maximum number of data bytes the initiator can receive
Packit eace71
# in an iSCSI PDU from a target, edit the following line.
Packit eace71
#
Packit eace71
# The value is the number of bytes in the range of 512 to (2^24-1) and
Packit eace71
# the default is 262144
Packit eace71
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
Packit eace71
Packit eace71
# To specify the maximum number of data bytes the initiator will send
Packit eace71
# in an iSCSI PDU to the target, edit the following line.
Packit eace71
#
Packit eace71
# The value is the number of bytes in the range of 512 to (2^24-1).
Packit eace71
# Zero is a special case. If set to zero, the initiator will use
Packit eace71
# the target's MaxRecvDataSegmentLength for the MaxXmitDataSegmentLength.
Packit eace71
# The default is 0.
Packit eace71
node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
Packit eace71
Packit eace71
# To specify the maximum number of data bytes the initiator can receive
Packit eace71
# in an iSCSI PDU from a target during a discovery session, edit the
Packit eace71
# following line.
Packit eace71
#
Packit eace71
# The value is the number of bytes in the range of 512 to (2^24-1) and
Packit eace71
# the default is 32768
Packit eace71
# 
Packit eace71
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
Packit eace71
Packit eace71
# To allow the targets to control the setting of the digest checking,
Packit eace71
# with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
Packit eace71
#node.conn[0].iscsi.HeaderDigest = CRC32C,None
Packit eace71
#node.conn[0].iscsi.DataDigest = CRC32C,None
Packit eace71
#
Packit eace71
# To allow the targets to control the setting of the digest checking,
Packit eace71
# with the initiator requesting a preference of disabling the checking,
Packit eace71
# uncomment one or both of the following lines:
Packit eace71
#node.conn[0].iscsi.HeaderDigest = None,CRC32C
Packit eace71
#node.conn[0].iscsi.DataDigest = None,CRC32C
Packit eace71
#
Packit eace71
# To enable CRC32C digest checking for the header and/or data part of
Packit eace71
# iSCSI PDUs, uncomment one or both of the following lines:
Packit eace71
#node.conn[0].iscsi.HeaderDigest = CRC32C
Packit eace71
#node.conn[0].iscsi.DataDigest = CRC32C
Packit eace71
#
Packit eace71
# To disable digest checking for the header and/or data part of
Packit eace71
# iSCSI PDUs, uncomment one or both of the following lines:
Packit eace71
#node.conn[0].iscsi.HeaderDigest = None
Packit eace71
#node.conn[0].iscsi.DataDigest = None
Packit eace71
#
Packit eace71
# The default is to never use DataDigests or HeaderDigests.
Packit eace71
#
Packit eace71
Packit eace71
# For multipath configurations, you may want more than one session to be
Packit eace71
# created on each iface record.  If node.session.nr_sessions is greater
Packit eace71
# than 1, performing a 'login' for that node will ensure that the
Packit eace71
# appropriate number of sessions is created.
Packit eace71
node.session.nr_sessions = 1
Packit eace71
Packit eace71
# When iscsid starts up it recovers existing sessions, if possible.
Packit eace71
# If the target for a session has gone away when this occurs, the
Packit eace71
# iscsid daemon normally tries to reestablish each session,
Packit eace71
# in succession, in the background, by trying again every two
Packit eace71
# seconds, until all sessions are restored. This configuration
Packit eace71
# variable can limits the number of retries for each session.
Packit eace71
# For example, setting reopen_max=150 would mean that each session
Packit eace71
# recovery was limited to about five minutes.
Packit eace71
# 
Packit eace71
node.session.reopen_max = 0
Packit eace71
Packit eace71
#************
Packit eace71
# Workarounds
Packit eace71
#************
Packit eace71
Packit eace71
# Some targets like IET prefer after an initiator has sent a task
Packit eace71
# management function like an ABORT TASK or LOGICAL UNIT RESET, that
Packit eace71
# it does not respond to PDUs like R2Ts. To enable this behavior uncomment
Packit eace71
# the following line (The default behavior is Yes):
Packit eace71
node.session.iscsi.FastAbort = Yes
Packit eace71
Packit eace71
# Some targets like Equalogic prefer that after an initiator has sent
Packit eace71
# a task management function like an ABORT TASK or LOGICAL UNIT RESET, that
Packit eace71
# it continue to respond to R2Ts. To enable this uncomment this line
Packit eace71
# node.session.iscsi.FastAbort = No
Packit eace71
Packit eace71
# To prevent doing automatic scans that would add unwanted luns to the system
Packit eace71
# we can disable them and have sessions only do manually requested scans.
Packit eace71
# Automatic scans are performed on startup, on login, and on AEN/AER reception
Packit eace71
# on devices supporting it.  For HW drivers all sessions will use the value
Packit eace71
# defined in the configuration file.  This configuration option is independent
Packit eace71
# of scsi_mod scan parameter. (The default behavior is auto):
Packit eace71
node.session.scan = auto