⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iscsi.conf.5

📁 ISCSI user client software.Client would be used to access the IPSAN server.
💻 5
字号:
.\" iSCSI configuration file.\" Copyright (C) 2002 Cisco Systems, Inc..\" .\" $Id: iscsi.conf.5,v 1.7 2005/02/18 12:53:32 smithan Exp $.TH ISCSI.CONF 5.SH NAMEiscsi.conf \- iSCSI Driver Configuration.SH SYNOPSIS.B /etc/iscsi.conf.SH DESCRIPTIONThis manual page describes the format of \fU/etc/iscsi.conf\fR file. This file is a simple text file that 'iscsid' uses to locate iSCSI targets and configure various operational parameters.Comments are marked by lines beginning with '#'.The conf file can have entries related to following categories:A) Target Discovery via 'SendTargets' mechanism. .brB) Target Discovery via SLP mechanism..brC) Authentication settings..brD) Digest settings..brE) Connection timeouts..brF) Session timeouts..brG) Error handling timeouts..brH) iSCSI Operational Parameters..brI) TCP settings..brJ) Per Target settings.br K) Per Subnet settings..brL) Enable/Disable Targets..brM) Keeping Discovery Session Alive.SH OPTIONS OF CATEGORY A:.SS.B DiscoveryAddress=<address>IP address or hostname to use for target discovery.  A TCP portnumber may be specified by appending a colon followed by the portnumber. This entry must start in the first column, and must not contain any whitespace..SS.B TargetIpAddr=<address>A synonym for DiscoveryAddress.  .SH OPTIONS OF CATEGORY B:.SS.B SLPMulticast=all|none|IP1,IP2,...Specify the usage of SLP discovery mechanism for target discovery using Multicast. Valid options are :.TP.B allUse all network interfaces on the host machine to multicast SLP queries..TP.B noneDo not use SLP multicast..TP.B list of IP addressspecify a list of IP addresses on the host machine to be used to multicast SLP queries..SS.B SLPUnicast=<address>Specify the IP address to which SLP queries for discovering targets can beunicasted..SS.B PollInterval=<time>Specify the interval between successive SLP queries. An interval of zero means the query should be sent only once. If no value is specified, a default time of300 seconds will be used.The time value can be specified as either.B 300sfor secondsor.B 5mfor minutesor.B 1hfor hours..fi.SH OPTIONS OF CATEGORY C:.SS.B IncomingUsername=<user>Specify the CHAP authentication user name that should be received fromtarget during authentication of target by initiator..SS.B IncomingPassword=<pass>Specify the CHAP authentication password that should be received from targetduring authentication of target by initiator..SS.B OutgoingUsername=<user>Specify the CHAP authentication user name that should be sent by initiator during authentication of initiator by target..SS.B OutgoingPassword=<pass>Specify the CHAP authentication password that should be sent by initiatorduring authentication of initiator by target..SS.B Username=<user>Synonym for OutgoingUsername..SS.B Password=<pass>Synonym for OutgoingPassword..SH NOTE:IncomingPassword has to be different from OutgoingPassword. It is possible tohave initiator authentication alone, both initiator and target authenticationbut not target authentication alone..SH OPTIONS OF CATEGORY D:.SS .B HeaderDigest=always|never|prefer-on|prefer-off.SS DataDigest=always|never|prefer-on|prefer-offSpecify how to negotiate the use of CRC32C checks to detect the corruptionof iSCSI PDU header and data. The available options are:.TP.B always     require digests, and fail to login if the target requires no digests..TP.B never      require no digests, and fail to login if the target requires digests..TP.B prefer-on  prefer digests, but login with no digests if the target refuses to usedigests..TP.B prefer-off prefer no digests, but login with digests if the target insists on using them..SH NOTE:If HeaderDigest and/or DataDigest options are not specified in the conf filethen a default value of 'prefer-off' is taken by the driver..SH OPTIONS OF CATEGORY E:.SS.B LoginTimeout=<secs>Specify the time in seconds to wait for a login PDU to be sent or received before failing the login on a particular connection. If this entry is notpresent in the conf file, a default value of  15 secs is taken by driver..SS.B AuthTimeout=<secs>Specify the time in seconds to wait for a login PDU carrying Authentication information to be sent or received before failing the login on a particularconnection. If this entry is not present in the conf file, a default value of 45 seconds is taken by the driver.The below mentioned timeouts, IdleTimeout and ActiveTimeout determine when aping has to be sent so as to determine the status of the connection. 'ping' willbe sent only if there is no inbound traffic from target even after the timeout..SS.B IdleTimeout=<secs>Specify the time in secs. This timeout will be used if there are no active tasksin the session. If this entry is not present in the conf file, a default valueof 60 seconds is taken by the driver..SS.B ActiveTimeout=<secs>Specify the time in secs. This timeout will be used if there are active tasksin the session. If this entry is not present in the conf file, a default valueof 5 seconds is taken by the driver..SS.B PingTimeout=<secs>Specify the time in seconds to wait for a ping response before declaringthe session as dead and attempting a re-establishment. If this entry is not present in the conf file, a default value of 5 seconds is taken by the driver..SH OPTIONS OF CATEGORY F:The session timeout settings in iSCSI driver are tuned to maintain dataintegrity under non ideal conditions. This value can be tuned based onthe type of situation. Refer README for description of timeoutsettings and recommended timeout settings under different situations.  .SS.B ConnFailTimeout=<secs>Specify the time in seconds to wait for a session re-establishment. Ifa session is not re-established in 'ConnFailTimeout' seconds then I/Os onthe session will be failed immediately without honoring the timeout associatedwith the SCSI command. By default the timeout value is 0 which means notimeout..SH OPTIONS OF CATEGORY G:.SS.B AbortTimeout=<secs>Specify the time in seconds to wait for an abort to complete before declaringthe abort as failed. If an entry is not specified in the conf file, thena  default value of 10 seconds is taken by driver..SS.B ResetTimeout=<secs>Specify the time in seconds to wait for a reset to complete before declaringthe reset as failed. If an entry is not specified in the conf file, then adefault value of 30 seconds is taken by driver..SH OPTIONS OF CATEGORY H:The default values of these settings  have already been tuned for optimalperformance in iSCSI driver. Hence these should not be normally modified..SS.B InitialR2T=yes|noSpecify the initiator's preference for InitialR2T text key. Valid options are:.TP.B yesinitiator must wait for an R2T before transmitting data..TP.B noinitiator has an implied Initial R2T for 'FirstBurstLength' at offset 0.If not specified in conf file, a default value of 'no' is assumed..SS.SS.B ImmediateData=yes|noSpecify the initiator's preference for ImmediateData text key. Valid options are:.TP.B yesinitiator sends unsolicited data with the iSCSI command PDU. If not specified in conf file, a default value of 'yes' is assumed..TP.B noinitiator does not send unsolicited data with the iSCSI command PDU.SS.B MaxRecvDataSegmentLength=<bytes>Specify the maximum no of bytes, initiator can receive in the data segment ofan iSCSI PDU. The value specified must be in the range <512 to (2^24 -1)>. If not specified in the conf file, a default value of 128 kb is assumed..SS.B FirstBurstLength=<bytes>Specify the number of bytes of unsolicited data, the initiator can send. The value specified must be in the range <512 to (2^24 - 1)>. If not specified in the conf file, a default value of 256 kb is assumed..SS.B MaxBurstLength=<bytes>Specify the maximum SCSI payload that the initiator can receive/send in aData-In or a solicited Data-Out iSCSI sequence. The value specified must be in the range <512 to (2^24-1)>. If not specified in the conf file,  a default value of (16 * 1024 * 1024) - 1024 is taken..SH OPTIONS OF CATEGORY I:.SS.B TCPWindowSize=<number>Specify the TCP Window size to be set for the TCP socket used for iSCSI connection. If not specified in the conf file, a default value of 256 kbis taken..SH NOTE:- Configuration entries of category C to category I and category L,M can be global across all target connections..br - Entries of category D to H and category L can be specified for a particular target..br- Entries of category E,G,I can be specified per subnet..br- Entries of category C,E and M can be specified per DiscoveryAddress..br- Entries of category C can be specifed per SLP entry(SLPMulticast or SLPUnicast)..br- The parameters are global if they appear before any DiscoveryAddress or TargetName or Subnet or SLP entries. The global entries need to start at column 1. .br- Entries of category C under DiscoveryAddress are applicable to all targets discovered on this address. .br- Entries of category E and M under DiscoveryAddress are applicable only to the DiscoverySession..br- Entries that appear below a 'TargetName' entry apply for that particular target..br- If they appear below a 'Subnet' entry then they apply for sessions using that portals that fall into the subnet. .br- Entries of category C under SLP entries are applicable for targets discoveredthrough SLP on the interfaces mentioned..br- Settings which are specific to a 'DiscoveryAddress' or 'TargetName' or 'Subnet' or 'SLP' entry should NOT start at column 1 i.e., they have to be indented by atlease one whitespace character..br.brThe formats for TargetName and subnet entries are given below..SH OPTIONS OF CATEGORY J:.SS.B TargetName=<name><name> is iSCSI Target name in iqn or eui format.Target specific settings should be entered below the respective TargetName entry. These target-specific settings will be applicable for all iSCSI sessions to the target. .SH OPTIONS OF CATEGORY K:.SS.B Subnet=<subnet address>Subnet settings apply to sessions to a network portal in one of the specifiedsubnets, or whose address matches one of the specified addresses. Subnet takes the "address" and "netmask" values in the format specified below.Subnet=10.4.100.0/24.SS.B Address=<a.b.c.d>Address is a shorthand to Subnet values with a netmask of 32.Example:Address=10.4.100.0.SH OPTIONS OF CATEGORY L:.SS.B Enabled=yes|noThe above parameter can be used to globally enable or disable targetsor to selectively enable them under per Targetname option. Valid options are:.TP.B yesTargetNames mentioned after this line will be enabled by default.TP.B noTargetNames mentioned after this line will be disabled by default.SH OPTIONS OF CATEGORY M:.SS.B Continuous=yes|noSpecify whether discovery session should be kept alive or notafter doing the discovery. Valid options are:.TP.B yesiSCSI initiator waits for IdleTimeout(60 seconds, default) to get a NOP-IN from target. If initiator gets a NOP-IN from target during IdleTimeout then initiator replies with NOP-OUT. But if initiator does not get a NOP-IN from target during Idletimeout then it sends NOP-OUT and expects NOP-IN response from target within PingTimeout(5 seconds, default). If target does not respond within PingTimeout then initiator assumes the connection has been inadvertently broken, drops the current discovery session and attempts to establish a new discovery session..TP.B noiSCSI initiator closes the connection and will not attempt to establish a new one..SS.B SendAsyncText=yes|noSpecify whether async event notification needs to be sent by the target.Valid options are:.TP.B yesTarget sends vendor specific async messages when target configuration changes.The events can be target becoming available or unavailable, portal beingadded or removed..TP.B noAsync events are not sent when this option is specified.If SendAsyncText entry is not present in the conf file then a default valueof 'yes' is taken by the driver..SH SCOPE OF SETTINGSAs mentioned above,configuration entries  can be specified as either global values or per DiscoveryAddress or per target or per subnet or per SLP entry. The following paragraph explains the scope of these settings and precedence for conflicting entries..PIf entries begin at column 1 of the conf file then they will be the global.If entries need to be made specific to DiscoveryAddress or target or subnet or SLP entry they have to appear after the corresponding 'DiscoveryAddress' or 'TargetName' or 'Subnet' entry and should NOT begin at first column (i.e., they have to be indented). For simplicity we refer to them as local entries. If there is a conflict of entries between global and local, then local ones will be used.Consider the example below:.POutgoingUserName=alice.brOutgoingPassword=wonderland1342.brLoginTimeout=20.brDiscoveryAddress=192.168.250.230.br	OutgoingUserName=bob.br	OutgoingPassword=nyet1234.brLoginTimeout=15.brDiscoveryAddress=192.168.250.240.PIn the above example, OutgoingUserName will be "bob" and OutgoingPassword will be "nyet1234" for all targets discovered under 192.168.250.230. (Local values override global ones). LoginTimeout used will be 20.In case of DiscoveryAddress 192.168.250.240,  "alice" and "wonderland1342" are the username and passwords used for authentication, however the logintimeout used is 15. 'LoginTimeout=20' had scope till another global 'LoginTimeout=' appeared..PIf there is a conflict between 'local' entries under 'TargetName'  and entries under 'Subnet' then local entries under 'Subnet' entry will be considered. .brConsider the example below:.brLoginTimeout=25.brSubnet=192.168.250.0/24.br	LoginTimeout=20.brTargetName= iqn.1987-05.com.cisco:00.01c82dc85b33.fc8disk1.br	LoginTimeout=30.br.PIn the above case lets assume that Target ' iqn.1987-05.com.cisco:00.01c82dc85b33.fc8disk1' is reachable through 192.168.250.230. The 'LoginTimeout' to be used in this case will be 20 seconds..fi.SH FILES.TP\fC/etc/iscsi.conf\fR.br.SH "SEE ALSO".BR iscsid (8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -