Advertisement
Guest User

Untitled

a guest
Oct 28th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.93 KB | None | 0 0
  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. ######################
  11. # iscsid daemon config
  12. ######################
  13. # If you want iscsid to start the first time an iscsi tool
  14. # needs to access it, instead of starting it when the init
  15. # scripts run, set the iscsid startup command here. This
  16. # should normally only need to be done by distro package
  17. # maintainers.
  18. #
  19. # Default for Fedora and RHEL. (uncomment to activate).
  20. # iscsid.startup = /etc/rc.d/init.d/iscsid force-start
  21. #
  22. # Default for upstream open-iscsi scripts (uncomment to activate).
  23. iscsid.startup = /sbin/iscsid
  24.  
  25. # Check for active mounts on devices reachable through a session
  26. # and refuse to logout if there are any. Defaults to "No".
  27. # iscsid.safe_logout = Yes
  28.  
  29. #############################
  30. # NIC/HBA and driver settings
  31. #############################
  32. # open-iscsi can create a session and bind it to a NIC/HBA.
  33. # To set this up see the example iface config file.
  34.  
  35. #*****************
  36. # Startup settings
  37. #*****************
  38.  
  39. # To request that the iscsi initd scripts startup a session set to "automatic".
  40. node.startup = automatic
  41. #
  42. # To manually startup the session set to "manual". The default is manual.
  43. node.startup = manual
  44.  
  45. # For "automatic" startup nodes, setting this to "Yes" will try logins on each
  46. # available iface until one succeeds, and then stop. The default "No" will try
  47. # logins on all available ifaces simultaneously.
  48. node.leading_login = No
  49.  
  50. # *************
  51. # CHAP Settings
  52. # *************
  53.  
  54. # To enable CHAP authentication set node.session.auth.authmethod
  55. # to CHAP. The default is None.
  56. #node.session.auth.authmethod = CHAP
  57.  
  58. # To set a CHAP username and password for initiator
  59. # authentication by the target(s), uncomment the following lines:
  60. #node.session.auth.username = username
  61. #node.session.auth.password = password
  62.  
  63. # To set a CHAP username and password for target(s)
  64. # authentication by the initiator, uncomment the following lines:
  65. #node.session.auth.username_in = username_in
  66. #node.session.auth.password_in = password_in
  67.  
  68. # To enable CHAP authentication for a discovery session to the target
  69. # set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
  70. #discovery.sendtargets.auth.authmethod = CHAP
  71.  
  72. # To set a discovery session CHAP username and password for the initiator
  73. # authentication by the target(s), uncomment the following lines:
  74. #discovery.sendtargets.auth.username = username
  75. #discovery.sendtargets.auth.password = password
  76.  
  77. # To set a discovery session CHAP username and password for target(s)
  78. # authentication by the initiator, uncomment the following lines:
  79. #discovery.sendtargets.auth.username_in = username_in
  80. #discovery.sendtargets.auth.password_in = password_in
  81.  
  82. # ********
  83. # Timeouts
  84. # ********
  85. #
  86. # See the iSCSI README's Advanced Configuration section for tips
  87. # on setting timeouts when using multipath or doing root over iSCSI.
  88. #
  89. # To specify the length of time to wait for session re-establishment
  90. # before failing SCSI commands back to the application when running
  91. # the Linux SCSI Layer error handler, edit the line.
  92. # The value is in seconds and the default is 120 seconds.
  93. # Special values:
  94. # - If the value is 0, IO will be failed immediately.
  95. # - If the value is less than 0, IO will remain queued until the session
  96. # is logged back in, or until the user runs the logout command.
  97. node.session.timeo.replacement_timeout = 86400
  98.  
  99. # To specify the time to wait for login to complete, edit the line.
  100. # The value is in seconds and the default is 15 seconds.
  101. node.conn[0].timeo.login_timeout = 15
  102.  
  103. # To specify the time to wait for logout to complete, edit the line.
  104. # The value is in seconds and the default is 15 seconds.
  105. node.conn[0].timeo.logout_timeout = 15
  106.  
  107. # Time interval to wait for on connection before sending a ping.
  108. node.conn[0].timeo.noop_out_interval = 0
  109.  
  110. # To specify the time to wait for a Nop-out response before failing
  111. # the connection, edit this line. Failing the connection will
  112. # cause IO to be failed back to the SCSI layer. If using dm-multipath
  113. # this will cause the IO to be failed to the multipath layer.
  114. node.conn[0].timeo.noop_out_timeout = 0
  115.  
  116. # To specify the time to wait for abort response before
  117. # failing the operation and trying a logical unit reset edit the line.
  118. # The value is in seconds and the default is 15 seconds.
  119. node.session.err_timeo.abort_timeout = 15
  120.  
  121. # To specify the time to wait for a logical unit response
  122. # before failing the operation and trying session re-establishment
  123. # edit the line.
  124. # The value is in seconds and the default is 30 seconds.
  125. node.session.err_timeo.lu_reset_timeout = 30
  126.  
  127. # To specify the time to wait for a target response
  128. # before failing the operation and trying session re-establishment
  129. # edit the line.
  130. # The value is in seconds and the default is 30 seconds.
  131. node.session.err_timeo.tgt_reset_timeout = 30
  132.  
  133.  
  134. #******
  135. # Retry
  136. #******
  137.  
  138. # To specify the number of times iscsid should retry a login
  139. # if the login attempt fails due to the node.conn[0].timeo.login_timeout
  140. # expiring modify the following line. Note that if the login fails
  141. # quickly (before node.conn[0].timeo.login_timeout fires) because the network
  142. # layer or the target returns an error, iscsid may retry the login more than
  143. # node.session.initial_login_retry_max times.
  144. #
  145. # This retry count along with node.conn[0].timeo.login_timeout
  146. # determines the maximum amount of time iscsid will try to
  147. # establish the initial login. node.session.initial_login_retry_max is
  148. # multiplied by the node.conn[0].timeo.login_timeout to determine the
  149. # maximum amount.
  150. #
  151. # The default node.session.initial_login_retry_max is 8 and
  152. # node.conn[0].timeo.login_timeout is 15 so we have:
  153. #
  154. # node.conn[0].timeo.login_timeout * node.session.initial_login_retry_max =
  155. # 120 seconds
  156. #
  157. # Valid values are any integer value. This only
  158. # affects the initial login. Setting it to a high value can slow
  159. # down the iscsi service startup. Setting it to a low value can
  160. # cause a session to not get logged into, if there are distuptions
  161. # during startup or if the network is not ready at that time.
  162. node.session.initial_login_retry_max = 8
  163.  
  164. ################################
  165. # session and device queue depth
  166. ################################
  167.  
  168. # To control how many commands the session will queue set
  169. # node.session.cmds_max to an integer between 2 and 2048 that is also
  170. # a power of 2. The default is 128.
  171. node.session.cmds_max = 128
  172.  
  173. # To control the device's queue depth set node.session.queue_depth
  174. # to a value between 1 and 1024. The default is 32.
  175. node.session.queue_depth = 32
  176.  
  177. ##################################
  178. # MISC SYSTEM PERFORMANCE SETTINGS
  179. ##################################
  180.  
  181. # For software iscsi (iscsi_tcp) and iser (ib_iser) each session
  182. # has a thread used to transmit or queue data to the hardware. For
  183. # cxgb3i you will get a thread per host.
  184. #
  185. # Setting the thread's priority to a lower value can lead to higher throughput
  186. # and lower latencies. The lowest value is -20. Setting the priority to
  187. # a higher value, can lead to reduced IO performance, but if you are seeing
  188. # the iscsi or scsi threads dominate the use of the CPU then you may want
  189. # to set this value higher.
  190. #
  191. # Note: For cxgb3i you must set all sessions to the same value, or the
  192. # behavior is not defined.
  193. #
  194. # The default value is -20. The setting must be between -20 and 20.
  195. node.session.xmit_thread_priority = -20
  196.  
  197.  
  198. #***************
  199. # iSCSI settings
  200. #***************
  201.  
  202. # To enable R2T flow control (i.e., the initiator must wait for an R2T
  203. # command before sending any data), uncomment the following line:
  204. #
  205. #node.session.iscsi.InitialR2T = Yes
  206. #
  207. # To disable R2T flow control (i.e., the initiator has an implied
  208. # initial R2T of "FirstBurstLength" at offset 0), uncomment the following line:
  209. #
  210. # The defaults is No.
  211. node.session.iscsi.InitialR2T = No
  212.  
  213. #
  214. # To disable immediate data (i.e., the initiator does not send
  215. # unsolicited data with the iSCSI command PDU), uncomment the following line:
  216. #
  217. #node.session.iscsi.ImmediateData = No
  218. #
  219. # To enable immediate data (i.e., the initiator sends unsolicited data
  220. # with the iSCSI command packet), uncomment the following line:
  221. #
  222. # The default is Yes
  223. node.session.iscsi.ImmediateData = Yes
  224.  
  225. # To specify the maximum number of unsolicited data bytes the initiator
  226. # can send in an iSCSI PDU to a target, edit the following line.
  227. #
  228. # The value is the number of bytes in the range of 512 to (2^24-1) and
  229. # the default is 262144
  230. node.session.iscsi.FirstBurstLength = 262144
  231.  
  232. # To specify the maximum SCSI payload that the initiator will negotiate
  233. # with the target for, edit the following line.
  234. #
  235. # The value is the number of bytes in the range of 512 to (2^24-1) and
  236. # the defauls it 16776192
  237. node.session.iscsi.MaxBurstLength = 16776192
  238.  
  239. # To specify the maximum number of data bytes the initiator can receive
  240. # in an iSCSI PDU from a target, edit the following line.
  241. #
  242. # The value is the number of bytes in the range of 512 to (2^24-1) and
  243. # the default is 262144
  244. node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
  245.  
  246. # To specify the maximum number of data bytes the initiator will send
  247. # in an iSCSI PDU to the target, edit the following line.
  248. #
  249. # The value is the number of bytes in the range of 512 to (2^24-1).
  250. # Zero is a special case. If set to zero, the initiator will use
  251. # the target's MaxRecvDataSegmentLength for the MaxXmitDataSegmentLength.
  252. # The default is 0.
  253. node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
  254.  
  255. # To specify the maximum number of data bytes the initiator can receive
  256. # in an iSCSI PDU from a target during a discovery session, edit the
  257. # following line.
  258. #
  259. # The value is the number of bytes in the range of 512 to (2^24-1) and
  260. # the default is 32768
  261. #
  262. discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
  263.  
  264. # To allow the targets to control the setting of the digest checking,
  265. # with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
  266. node.conn[0].iscsi.HeaderDigest = CRC32C,None
  267. node.conn[0].iscsi.DataDigest = CRC32C,None
  268. #
  269. # To allow the targets to control the setting of the digest checking,
  270. # with the initiator requesting a preference of disabling the checking,
  271. # uncomment one or both of the following lines:
  272. #node.conn[0].iscsi.HeaderDigest = None,CRC32C
  273. #node.conn[0].iscsi.DataDigest = None,CRC32C
  274. #
  275. # To enable CRC32C digest checking for the header and/or data part of
  276. # iSCSI PDUs, uncomment one or both of the following lines:
  277. #node.conn[0].iscsi.HeaderDigest = CRC32C
  278. #node.conn[0].iscsi.DataDigest = CRC32C
  279. #
  280. # To disable digest checking for the header and/or data part of
  281. # iSCSI PDUs, uncomment one or both of the following lines:
  282. #node.conn[0].iscsi.HeaderDigest = None
  283. #node.conn[0].iscsi.DataDigest = None
  284. #
  285. # The default is to never use DataDigests or HeaderDigests.
  286. #
  287.  
  288. # For multipath configurations, you may want more than one session to be
  289. # created on each iface record. If node.session.nr_sessions is greater
  290. # than 1, performing a 'login' for that node will ensure that the
  291. # appropriate number of sessions is created.
  292. node.session.nr_sessions = 1
  293.  
  294. #************
  295. # Workarounds
  296. #************
  297.  
  298. # Some targets like IET prefer after an initiator has sent a task
  299. # management function like an ABORT TASK or LOGICAL UNIT RESET, that
  300. # it does not respond to PDUs like R2Ts. To enable this behavior uncomment
  301. # the following line (The default behavior is Yes):
  302. node.session.iscsi.FastAbort = Yes
  303.  
  304. # Some targets like Equalogic prefer that after an initiator has sent
  305. # a task management function like an ABORT TASK or LOGICAL UNIT RESET, that
  306. # it continue to respond to R2Ts. To enable this uncomment this line
  307. # node.session.iscsi.FastAbort = No
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement