[Stgt-devel] [RFC] target configuration tool
Tomasz Chmielewski
mangoo
Wed Mar 19 12:28:07 CET 2008
I would like to present a tgtd iSCSI target configuration tool.
An example config file for configuring targets can look like below:
include /etc/tgt/temp/*.conf
<target iqn.2007-04.com.example:san.monitoring>
backing-store /dev/san/monitoring
# if no "incominguser" is specified, it is not used
incominguser backup secretpass12
# defaults to ALL if no "initiator-address" is specified
initiator-address 192.168.1.2
</target>
<target iqn.2007-02.com.example:san.xen1>
backing-store /dev/san/xen1-disk1 # LUN1
backing-store /dev/san/xen1-disk2 # LUN2
backing-store /dev/san/xen1-disk2 # LUN3
initiator-address 192.168.1.2 # Allowed IP
initiator-address 192.168.5.6 # Allowed IP
incominguser user1 secretpass12
incominguser user2 secretpass23
outgoinguser userA secretpassA
</target>
<target iqn.2007-02.com.example:san.xen2>
backing-store /dev/san/xen2
</target>
You can find more info on http://wpkg.org/TGT-admin and download the
source code by pointing wget to http://wpkg.org/tgt-admin
Other features I'd like to implement are:
* change target configuration if the target is already online and its
config was changed
* add a proper /etc/init.d/tgt script
* dumping current tgtd configuration
* support other target types (not only iSCSI) - unfortunately, I don't
have any other hardware
--
Tomasz Chmielewski
More information about the stgt
mailing list