/iscsi/iscsid.conf

http://github.com/brinkman83/bashrc · Config · 265 lines · 227 code · 38 blank · 0 comment · 0 complexity · 6c6fd718faae84a4ab1b276e78fea471 MD5 · raw file

  1. #
  2. # Open-iSCSI default configuration.
  3. # Could be located at /etc/iscsi/iscsid.conf or ~/.iscsid.conf
  4. #
  5. # Note: To set any of these values for a specific node/session run
  6. # the iscsiadm --mode node --op command for the value. See the README
  7. # and man page for iscsiadm for details on the --op command.
  8. #
  9. ################
  10. # iSNS settings
  11. ################
  12. # Address of iSNS server
  13. #isns.address = 192.168.0.1
  14. #isns.port = 3205
  15. #############################
  16. # NIC/HBA and driver settings
  17. #############################
  18. # open-iscsi can create a session and bind it to a NIC/HBA.
  19. # To set this up see the example iface config file.
  20. #*****************
  21. # Startup settings
  22. #*****************
  23. # To request that the iscsi initd scripts startup a session set to "automatic".
  24. # node.startup = automatic
  25. #
  26. # To manually startup the session set to "manual". The default is manual.
  27. node.startup = manual
  28. # *************
  29. # CHAP Settings
  30. # *************
  31. # To enable CHAP authentication set node.session.auth.authmethod
  32. # to CHAP. The default is None.
  33. #node.session.auth.authmethod = CHAP
  34. # To set a CHAP username and password for initiator
  35. # authentication by the target(s), uncomment the following lines:
  36. #node.session.auth.username = username
  37. #node.session.auth.password = password
  38. # To set a CHAP username and password for target(s)
  39. # authentication by the initiator, uncomment the following lines:
  40. #node.session.auth.username_in = username_in
  41. #node.session.auth.password_in = password_in
  42. # To enable CHAP authentication for a discovery session to the target
  43. # set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
  44. #discovery.sendtargets.auth.authmethod = CHAP
  45. # To set a discovery session CHAP username and password for the initiator
  46. # authentication by the target(s), uncomment the following lines:
  47. #discovery.sendtargets.auth.username = username
  48. #discovery.sendtargets.auth.password = password
  49. # To set a discovery session CHAP username and password for target(s)
  50. # authentication by the initiator, uncomment the following lines:
  51. #discovery.sendtargets.auth.username_in = username_in
  52. #discovery.sendtargets.auth.password_in = password_in
  53. # ********
  54. # Timeouts
  55. # ********
  56. #
  57. # See the iSCSI REAME's Advanced Configuration section for tips
  58. # on setting timeouts when using multipath or doing root over iSCSI.
  59. #
  60. # To specify the length of time to wait for session re-establishment
  61. # before failing SCSI commands back to the application when running
  62. # the Linux SCSI Layer error handler, edit the line.
  63. # The value is in seconds and the default is 120 seconds.
  64. node.session.timeo.replacement_timeout = 120
  65. # To specify the time to wait for login to complete, edit the line.
  66. # The value is in seconds and the default is 15 seconds.
  67. node.conn[0].timeo.login_timeout = 15
  68. # To specify the time to wait for logout to complete, edit the line.
  69. # The value is in seconds and the default is 15 seconds.
  70. node.conn[0].timeo.logout_timeout = 15
  71. # Time interval to wait for on connection before sending a ping.
  72. node.conn[0].timeo.noop_out_interval = 5
  73. # To specify the time to wait for a Nop-out response before failing
  74. # the connection, edit this line. Failing the connection will
  75. # cause IO to be failed back to the SCSI layer. If using dm-multipath
  76. # this will cause the IO to be failed to the multipath layer.
  77. node.conn[0].timeo.noop_out_timeout = 5
  78. # To specify the time to wait for abort response before
  79. # failing the operation and trying a logical unit reset edit the line.
  80. # The value is in seconds and the default is 15 seconds.
  81. node.session.err_timeo.abort_timeout = 15
  82. # To specify the time to wait for a logical unit response
  83. # before failing the operation and trying session re-establishment
  84. # edit the line.
  85. # The value is in seconds and the default is 30 seconds.
  86. node.session.err_timeo.lu_reset_timeout = 20
  87. #******
  88. # Retry
  89. #******
  90. # To specify the number of times iscsid should retry a login
  91. # if the login attempt fails due to the node.conn[0].timeo.login_timeout
  92. # expiring modify the following line. Note that if the login fails
  93. # quickly (before node.conn[0].timeo.login_timeout fires) because the network
  94. # layer or the target returns an error, iscsid may retry the login more than
  95. # node.session.initial_login_retry_max times.
  96. #
  97. # This retry count along with node.conn[0].timeo.login_timeout
  98. # determines the maximum amount of time iscsid will try to
  99. # establish the initial login. node.session.initial_login_retry_max is
  100. # multiplied by the node.conn[0].timeo.login_timeout to determine the
  101. # maximum amount.
  102. #
  103. # The default node.session.initial_login_retry_max is 8 and
  104. # node.conn[0].timeo.login_timeout is 15 so we have:
  105. #
  106. # node.conn[0].timeo.login_timeout * node.session.initial_login_retry_max =
  107. # 120 seconds
  108. #
  109. # Valid values are any integer value. This only
  110. # affects the initial login. Setting it to a high value can slow
  111. # down the iscsi service startup. Setting it to a low value can
  112. # cause a session to not get logged into, if there are distuptions
  113. # during startup or if the network is not ready at that time.
  114. node.session.initial_login_retry_max = 8
  115. ################################
  116. # session and device queue depth
  117. ################################
  118. # To control how many commands the session will queue set
  119. # node.session.cmds_max to an integer between 2 and 2048 that is also
  120. # a power of 2. The default is 128.
  121. node.session.cmds_max = 128
  122. # To control the device's queue depth set node.session.queue_depth
  123. # to a value between 1 and 1024. The default is 32.
  124. node.session.queue_depth = 32
  125. ##################################
  126. # MISC SYSTEM PERFORMANCE SETTINGS
  127. ##################################
  128. # For software iscsi (iscsi_tcp) and iser (ib_iser) each session
  129. # has a thread used to transmit or queue data to the hardware. For
  130. # cxgb3i you will get a thread per host.
  131. #
  132. # Setting the thread's priority to a lower value can lead to higher throughput
  133. # and lower latencies. The lowest value is -20. Setting the priority to
  134. # a higher value, can lead to reduced IO performance, but if you are seeing
  135. # the iscsi or scsi threads dominate the use of the CPU then you may want
  136. # to set this value higher.
  137. #
  138. # Note: For cxgb3i you must set all sessions to the same value, or the
  139. # behavior is not defined.
  140. #
  141. # The default value is -20. The setting must be between -20 and 20.
  142. node.session.xmit_thread_priority = -20
  143. #***************
  144. # iSCSI settings
  145. #***************
  146. # To enable R2T flow control (i.e., the initiator must wait for an R2T
  147. # command before sending any data), uncomment the following line:
  148. #
  149. #node.session.iscsi.InitialR2T = Yes
  150. #
  151. # To disable R2T flow control (i.e., the initiator has an implied
  152. # initial R2T of "FirstBurstLength" at offset 0), uncomment the following line:
  153. #
  154. # The defaults is No.
  155. node.session.iscsi.InitialR2T = No
  156. #
  157. # To disable immediate data (i.e., the initiator does not send
  158. # unsolicited data with the iSCSI command PDU), uncomment the following line:
  159. #
  160. #node.session.iscsi.ImmediateData = No
  161. #
  162. # To enable immediate data (i.e., the initiator sends unsolicited data
  163. # with the iSCSI command packet), uncomment the following line:
  164. #
  165. # The default is Yes
  166. node.session.iscsi.ImmediateData = Yes
  167. # To specify the maximum number of unsolicited data bytes the initiator
  168. # can send in an iSCSI PDU to a target, edit the following line.
  169. #
  170. # The value is the number of bytes in the range of 512 to (2^24-1) and
  171. # the default is 262144
  172. node.session.iscsi.FirstBurstLength = 262144
  173. # To specify the maximum SCSI payload that the initiator will negotiate
  174. # with the target for, edit the following line.
  175. #
  176. # The value is the number of bytes in the range of 512 to (2^24-1) and
  177. # the defauls it 16776192
  178. node.session.iscsi.MaxBurstLength = 16776192
  179. # To specify the maximum number of data bytes the initiator can receive
  180. # in an iSCSI PDU from a target, edit the following line.
  181. #
  182. # The value is the number of bytes in the range of 512 to (2^24-1) and
  183. # the default is 262144
  184. node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
  185. # To specify the maximum number of data bytes the initiator can receive
  186. # in an iSCSI PDU from a target during a discovery session, edit the
  187. # following line.
  188. #
  189. # The value is the number of bytes in the range of 512 to (2^24-1) and
  190. # the default is 32768
  191. #
  192. discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
  193. # To allow the targets to control the setting of the digest checking,
  194. # with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
  195. #node.conn[0].iscsi.HeaderDigest = CRC32C,None
  196. #node.conn[0].iscsi.DataDigest = CRC32C,None
  197. #
  198. # To allow the targets to control the setting of the digest checking,
  199. # with the initiator requesting a preference of disabling the checking,
  200. # uncomment one or both of the following lines:
  201. #node.conn[0].iscsi.HeaderDigest = None,CRC32C
  202. #node.conn[0].iscsi.DataDigest = None,CRC32C
  203. #
  204. # To enable CRC32C digest checking for the header and/or data part of
  205. # iSCSI PDUs, uncomment one or both of the following lines:
  206. #node.conn[0].iscsi.HeaderDigest = CRC32C
  207. #node.conn[0].iscsi.DataDigest = CRC32C
  208. #
  209. # To disable digest checking for the header and/or data part of
  210. # iSCSI PDUs, uncomment one or both of the following lines:
  211. #node.conn[0].iscsi.HeaderDigest = None
  212. #node.conn[0].iscsi.DataDigest = None
  213. #
  214. # The default is to never use DataDigests or HeaderDigests.
  215. #
  216. #************
  217. # Workarounds
  218. #************
  219. # Some targets like IET prefer after an initiator has sent a task
  220. # management function like an ABORT TASK or LOGICAL UNIT RESET, that
  221. # it does not respond to PDUs like R2Ts. To enable this behavior uncomment
  222. # the following line (The default behavior is Yes):
  223. node.session.iscsi.FastAbort = Yes
  224. # Some targets like Equalogic prefer that after an initiator has sent
  225. # a task management function like an ABORT TASK or LOGICAL UNIT RESET, that
  226. # it continue to respond to R2Ts. To enable this uncomment this line
  227. # node.session.iscsi.FastAbort = No