[Stgt-devel] RFC: tgt service script
Dan Bar Dov
bardov
Fri Aug 10 18:34:50 CEST 2007
Attached is a fedora service script that starts tgt daemon and iscsi-tgt
targets.
The configuration is saved is /etc/iscsi_tgt.conf which looks like that:
# -*-Shell-script-*-
# DEBUG=yes
# flags to pass to tgtd
TGTDARGS=
# list of targets to configure (symbolic names)
TARGETS="FIRST"
# for each target, setup values specific for that target
FIRST_name="iqn.2001-04.com.example:1"
# target id (tid)
FIRST_id=1
# list of devices for the named target. Order of devices
# determines LUN (first being #1)
FIRST_lus="/dev/sda2"
# list of access permissions
FIRST_acl="ALL"
On my setup (FC6, kernel 2.6.22.1) this script works
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/stgt-devel/attachments/20070810/a26a0b6d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iscsi_tgt.conf
Type: application/octet-stream
Size: 380 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/stgt-devel/attachments/20070810/a26a0b6d/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iscsi_tgt
Type: application/octet-stream
Size: 1862 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/stgt-devel/attachments/20070810/a26a0b6d/attachment-0001.obj
More information about the stgt
mailing list