TARGETS.CONF(5) [FIXME: manual] TARGETS.CONF(5)
>>> (NAME)
targets.conf - >>>> >>>>>>>> SCSI Target >>
>>>>>>
>>>>>>> (DESCRIPTION)
>>>>> tgt-admin >>>>>> >>>>>>>
>> /etc/tgt/targets.conf >>>> >>>>>>>>
>>>>> >>>>>>>> tgtd >>>>>>>
>>>>>>. >>>>>> >>>>>> >> >>
>>>>> >>>> >> HTML >>
>>>>>>>>>>>> >> >>>>>>>>>
>>>>>> >>>> >>>>>
>>>>>>>> > LUN>> >>>> >>>>>>.
>>> >>>> >>>>>>>> (CONFIGURATION FILE SYNTAX)
>>>>>>>>>>>>>> >>>>>>>
>>>>>>>>>> >> >>>>>>>>
>>>>>>> >> >> >>> >>
>>>>>>>> tgtd >>>>> >>>>>>>>
> >>>>>> >>>>>>>>>
>>>>>>>>> >> >> >>>>
>>>>>>> target >>>>>
>>>>>>>>>.
>>>>>>> >>>>> >>>>
>>>>>>>>>>>>>> >>>>> >>
>>>>>> >>>>> >>>>>. >>>>>
LUN>>> >>>>>>>>> >> >>>>> >>
>> >>>> >>>>>>>>>>>>>>
"backing-store" > "direct-store"> > >>>>>>
>>>> >>>>>>>>> >>>>>
>>>>> >>>>> >>>>>>>.
>>>>>>>>>>>>>> LUN (>>>>
"backing-store" > "direct-store") >>>>>>>>>
>>>> >>>>>>>>> >>>>> >>
>>>> >>>>> (LUN) >>>>>>>>>
>>>>> >>>>>.
>>>>>>>>>>>>>> >>>>>> (GLOBAL
DIRECTIVES)
>>>>>>>>>>
>>>>>>>>>>>>>> >>>>>> >>
>> >> >>>>> >>> >>>> >>>>>>
>> >>> >>>>> >>>>.
>
>>>> >>>>> >> >>>>> >>
>>>> >>>>>>. >>>>> IQN >> ISCSI
Qualified Name >>>>> "iqn.2001-04.com.example:storage1"
>>>.
>>>> >>> >>>> >>>>
>>>>>>>>>>>>>> >>>
>>>>>> >>> >>>> >> >>>
>>>>> >>> >>>> >>>>
>>>>>.
>>>>> >>>>> >> "" >>
>>>>> >>>>>>.
default-driver
>> >>> >>>>> >>> >>>>>>
>>>> >> >>>>>> default-driver >>
>>>>>> >>> >>>>> (low-level driver)
>>>>>>> >> >>>> >>>>
>>>>>>>>> >>>>>>>>>
>>>>> >>>>>>. >>> >>>>>
>>>>>>>> >>>> >> >>>>>
>>>>>>> >>>>>>>
>>>>>>>> >>>. >>>>>>
>>>>> lld >>>>>>> >> "iscsi" >>
"iser". >> >>>> >> >> >>>> >>>
>>>> >>> >>>>>>>>>>>
>>>>> iscsi >> >>> >>>>>
>>>>>>> >>>>>>> >> >>
>>>>>> >>>> >>>>> >>>>
>>> >> iser >> >>>>> >>>>>>>
>>>> >>> >>>>.
include
>>>> >>>> >>>>>>>> >> >>
>>>> >>>>>>>> >>>>.
>>>>>>> >> >>>>>>>>>
>>>>> (wildcards) >>>> >>>>
>>>>>>>> >>>>> >>>>> "include
/etc/tgt/xen/*.conf" >>>> >>>>>>>.
ignore-errors yes
>>>>>> >>>> >> tgtadm >>>>>>
>>>>> >>>>>> >>. >>>>>
>>>>>>> no >>>.
control-port
>>>>> >> >>>> >>>> >>>>
>>>>>> >>>> >>>>>>>
>>>>>> >> tgtd. >>>>>
>>>>>>> 0 >>>. >>> >>>>>
>>>>>> >>>> >>>>> >>>>
>>> >> >>>>> >>>>> >> tgtd >>
>>> >>>>>>> >>>>>.
iSNSServerIP
>>>>> >>>> >>>> iSNS >> >>>>
>>>> >>>>>>>> IPv4 (dotted-quad).
>>>>> >>>>>>> >> iSNS
>>>>>> >>>> >> >>> >>>
>>>> >>>>>> >>>>> >>>>>>.
iSNSAccessControl
>>>>> >>>>> >>>>>> iSNS.
>>>>>> >>>>> "On" >> "Off"
>>>>>. >>>>> >>>>>>> >> iSNS
>>>>>> >>>> >> >>> >>>
>>>> >>>>>> >>>>> >>>>>>.
iSNSServerPort
>>>>> >> >>>> >>>>>> >>>>
>>>> iSNS. >>>>> >>>>>>> 3205
>>>. >>>>> >>>>>>> >> iSNS
>>>>>>> >>>> >> >>> >>>
>>>> >>>>>> >>>>> >>>>>>.
iSNS On
>>>>>>>>> iSNS. >>>> >>>>>
>>>>> "On" >>>. >>>>>
>>>>>>> off >>>>>>>.
incomingdiscoveryuser
>>>>> >>>>>>> >>>>> >>>>
>>> >>>>> (incoming discovery) >> iscsi.
>>> >>>>>> >>>> >>>>> >>>
>>>>> >>>>> >>>>>
>>>>>>>>.
outgoingdiscoveryuser
>>>>> >>>>>>> >>>>> >>>>
>>> >>>>> (outgoing discovery) >> iscsi.
>>> >>>>>> >>>> >>>>> >>>
>>>>> >>>>> >>>>>
>>>>>>>>.
>>>>>>>>>>>>>> >>> >>>>>
(TARGET-LEVEL DIRECTIVES)
>> >>>>> >>>>>>>> >>>>>
>>>>>> >>>>> >> >>>> >>>>>
(LUN) >> >>>>> >>>. >> >>>>>
>>>>>>>>>>> LUN>
>>>>>>>>>>>>>> backing-store >>>
>> >>>>>>>>>>>>>> direct-store
>>>>>> >>>>>>>.
backing-store
>> >>>> >>>>> (LUN)
>>>>>>>>> >>>> >>>>> >>
>>>>> >>>>>>. >>> >>>>>
>>>>>>>> >> >>>> >>>>>>
>> >> >>>>>> >>>>> >>
>>>> >>>.
direct-store
>> >>>> >>>>> (LUN) >>>>>
>>>>>> >> >> >>>>
>>>>>>>>> >>>>>> >>>>>>
(>>>>> VENDOR_ID> SERIAL_NUM > >>>>)
>>>>> >>>>>>.
driver
>>>>>> >>> >>>>> >>>>
>>>>>>> >>>> >>> >>>>> >>
>>>> >>>>>>> >>>>>> "iscsi"
>> "iser" (>>>> >>>>>>>). >>>
>>>>>>>>>> >>
>>>>>>>>>> >>>>>> "default-driver"
>>>>>> >>>> > >> >>
>>>>>>>> >>>>>>.
initiator-address
>>>> >> >>>>>>> >> >>>> IP
>>>>>>>> >>>>> >>>>>>. >>
>>>>> >> >>> >>>>>>>>>>
initiator-address >>>> >>>>> >>>>>
>>>>>>> ALL >>>.
initiator-name
>>>> >> >>>>>>> >> >>>
>>>>>> (initiator name) >>>>>>>>
>>>>> >>>>>>.
incominguser
>>>>>>> >>>>> >>>> >>>>>
iscsi >> >>>> >>>>>>. >>
>>>>> >> "incominguser" >>>>>
>>>>> >>>>>>> >>>>>> >>.
>>> >>>>>>>>>> >>>>>>>>
>>>>> >>> >>>> >> >>>>>
>>>>>>> >>>.
outgoinguser
>>>>>>> >>>>> >>>> >>>>>
iscsi >> >>>> >>>>>>. >>
>>>>> >> "outgoinguser" >>>>>
>>>>> >>>>>>> >>>>>> >>.
>>> >>>>>>>>>> >>>>>>>>
>>>>> >>> >>>> >> >>>>>
>>>>>>> >>>.
controller_tid
>>>>> tid >>>>>>>>>>> >>
>>>>> >>>>>>. >>>>>
>>>>>>> >>> >>>> >> >>>>>
>>>> >>>.
>>>>>>>>>>>>>> >>> LUN (LUN-LEVEL
DIRECTIVES)
>>>> >>> >>>>> >> >>>>>>>
>> >>> >>>>> >>>>> >>> (> >>
>>>> LUN>> >>>>> >>>>>>>) >>
>> >>>>> >> LUN >> >>> >>>>
>>>>> >>>>>> >> >>>>>>> >>
>>>>> >>>>>> >>> >>>>>>>>
>>>>> >>> >>>>> >>>> >>>>>
>> LUN >>>>> >>> >>>>:
# >>>>>>>>>>>>>> LUN >> >>>>> >>>> >>>>>>>>
# >>>>>>>>>>>>>> LUN >> >>>>> >>>> >>>>>>>>
>>>>> >>>>>> >> >> >>>>>
>>> >> >>> >> >>>>>>> >>>>>
>>>>>> >> >>>>>>>> LUN
>>>>>>> >>>. >>>>> >>>
>>>>>> >>>>>>>> >>>> >>>>
>>>> >>>>>>>>>>> (parser errors)
>>>.
write-cache
>>>>> "on" >> "off"> >>>>>>> on
>>>.
scsi_id
scsi_sn
vendor_id
product_id
product_rev
sense_format
removable
path
mode_page
readonly
device-type
bs-type
allow-in-use
block-size
>>>>>> >>>> >> >>>> >>> LUN
>>>> >>>>>>.
lbppbe
>>>> >>>>>>>> >>>>> >> >>
>>>> >>>>>> (Logical blocks per physical block
exponent) >> >>>> >>>>>>.
>>>>>> >>>>>>> TGTD >>>>>
lbppbe >> >>>> >>>>> >>>>>>
>> >>>>>> >>>>>> >>
>>>>>>>>>> >>>>>>>>
>>>>>> >>>>> >>>>. >> >>>
>>>>>>> >>>> >>>>>>>> >>
>>>>> >>>>>>> >>>>.
>>> >> >>>>> >>>>> >>> >
>>>>> >>>>>>>> >>>>>>>>
>>>.
la_lba
>>>>>>>>>> >>>> >>>>
>>>>> >>>> >>> (lowest aligned logical
block address) >> >>>> >>>>>>. >>>
>> >>>>> >>>>> >>> >
>>>>> >>>>>>>> >>>>>>>>
>>>.
optimal_xfer_gran
>>>>>>>>> >>>>> >>>>>>
(optimal transfer granularity) >> >>>>
>>>>>> >> >> Block Limits VPD >>>>>
>>>. >>> >> >>>>> >>>>>
>>> > >>>>> >>>>>>>>
>>>>>>>> >>>.
optimal_xfer_len
>>> >>>>> >>>>>> (optimal transfer
length) >> >>>> >>>>>> >> >> Block
Limits VPD >>>>> >>>. >>> >>
>>>>> >>>>> >>> > >>>>>
>>>>>>>> >>>>>>>> >>>.
params
>>>>>>>>>> >>>>> >> >> tgtadm
>>>>> >>>>>>.
>>>> >>>>> >>>>> >> '${tid}' >
'${lun}' >>>>>>>>> >>>>>> >>
>>>> >>> >>>> >>>>> >> tid >
lun >> >>> >>>>>>>> >> >>>
>>>>. >>>> >>>> >>
targets.conf.vtl.L700 >>>>>> >>>>.
>>>>> >>>> >>>>>>>> (CONFIGURATION FILE
EXAMPLE)
>>>>> >>>> >>>>>>>>:
backing-store /dev/san/monitoring
# >>> "incominguser" >>>> >>>>> >>>>>>> >>>>>> >>
incominguser backup secretpass12
# >> >>>>> >> "initiator-address" >>>> >>>>> >>>>>>> ALL >>>
initiator-address 192.168.1.2
backing-store /dev/san/xen1-disk1 # LUN1
direct-store /dev/san/xen1-disk2 # LUN2
initiator-address 192.168.1.2 # IP >>>>
initiator-address 192.168.5.6 # IP >>>>
incominguser user1 secretpass12
incominguser user2 secretpass23
outgoinguser userA secretpassA
backing-store /dev/san/xen2
backing-store /dev/san/vmware1
>>>>>>> (FILES)
/etc/tgt/targets.conf
>>>> >>>>>>>> >>>> tgt-admin.
/usr/share/doc/tgt/targets.conf.example
>>>>> >>>> >>>>>>>> >>>>
tgt-admin.
>>>>>> >>>>>> (SEE ALSO)
tgtd(8)> tgtadm(8)> tgtimg(8)> tgt-setup-lun(8).
https://github.com/fujita/tgt
>>>>> >>>>>> (REPORTING BUGS)
>>>>> >>>>>> >>
[FIXME: source] 07/09/2026 TARGETS.CONF(5)