# Example iscsi target configuration # # Everything until the first target definition belongs # to the global configuration. # Right now this is only the user configuration used # during discovery sessions. "IncomingUser" specifies credentials the # initiator has to provide - several of these are supported. If mutual # CHAP shall be employed, "OutgoingUser" specifies the user/pass # combination the target will provide - only one is supported. # Leave them alone (keep them commented out) if you don't want to use # authentication for discovery sessions. # Targets definitions start with "Target" and the target name. # The target name must be a globally unique name, the iSCSI # standard defines the "iSCSI Qualified Name" as follows: # # iqn.yyyy-mm.[:identifier] # # "yyyy-mm" is the date at which the domain is valid and the identifier # is freely selectable. For further details please check the iSCSI spec. # Example target #Target iqn.2001-04.com.example:storage.disk2.sys1.xyz # Users, who can access this target. The same rules as for discovery # users apply here. # Leave them alone if you don't want to use authentication. #IncomingUser joe secret #OutgoingUser jim 12charpasswd # Logical Unit definition # You must define one logical unit at least. # Block devices, regular files, LVM, and RAID can be offered # to the initiators as a block device. #Lun 0 Path=/dev/sdc,Type=fileio # Alias name for this target # Alias Test # various iSCSI parameters # (not all are used right now, see also iSCSI spec for details) #MaxConnections 1 #InitialR2T Yes #ImmediateData No #MaxRecvDataSegmentLength 8192 #MaxXmitDataSegmentLength 8192 #MaxBurstLength 262144 #FirstBurstLength 65536 #DefaultTime2Wait 2 #DefaultTime2Retain 20 #MaxOutstandingR2T 8 #DataPDUInOrder Yes #DataSequenceInOrder Yes #ErrorRecoveryLevel 0 #HeaderDigest CRC32C,None #DataDigest CRC32C,None # various target parameters #Wthreads 8 #iSNSServer 192.168.1.16 #iSNSAccessControl No # discovery authentication IncomingUser amber Yee1oonewiyo IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated # not used for discovery, i think. #OutgoingUser fishstick expurgated # awkscript diskid = ST3320620NS,9QF5K20K # /dev/sdb # User Capacity: 320,072,933,376 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd0 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = ST31000340NS,3QJ09VFE # /dev/sdc # User Capacity: 1,000,204,886,016 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd1 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = Hitachi%20HUA721075KLA330,GTE200P8G6WLZE # /dev/sdd # User Capacity: 750,156,374,016 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd2 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = ST31000340NS,9QJ0RSKG # /dev/sde # User Capacity: 1,000,204,886,016 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd3 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = HDT722525DLA380,VDB41BT4DG3HVC # /dev/sdh # User Capacity: 250,059,350,016 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd4 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = HDT722525DLA380,VDB41BT4DBJ42C # /dev/sdi # User Capacity: 250,059,350,016 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd5 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = Maxtor%207L250S0,L593BLGH # /dev/sdf # User Capacity: 251,000,193,024 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd6 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = ST3320620NS,9QF5HLPV # /dev/sdg # User Capacity: 320,072,933,376 bytes Target iqn.2006-11.chaos.inner.th3h.fishstick:sd7 IncomingUser iqn.1986-03.com.sun:01:0003ba2d0f67.46e47e5d expurgated OutgoingUser iqn.2006-11.chaos.inner.th3h.fishstick:sdh expurgated Lun 0 Path=,Type=fileio # awkscript diskid = end