[Stgt-devel] [RFC] target configuration tool?

Tomasz Chmielewski mangoo
Tue Mar 18 12:21:13 CET 2008


Tomasz Chmielewski schrieb:
> Tomasz Chmielewski schrieb:
> 
>> Comments (other than "there is such a tool already", which would be just 
>> great)?
> 
> I made an initial version of such a tool. It is available, with 
> additional info, examples and configuration instructions on 
> http://wpkg.org/TGT-admin.
> 
> 
> Summary:

I added some more configuration possibilities (incominguser, 
initiator-address).
If no initiator-address is specified, it defaults to ALL.
If no incominguser is specified, it is not used.

Config file with all possible options 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
</target>


I also added a brief help, i.e.:

# tgt-admin -h
Usage:
tgt-admin [OPTION]...
Configure tgt targets.

   -e, --execute   read /etc/tgt/targets.conf and execute tgtadm commands
   -p, --pretend   only print tgtadm options
   -v, --verbose   increase verbosity (no effect in "pretend" mode)
   -h, --help      show this help



You can find more info on http://wpkg.org/TGT-admin, and the source code 
for download is available on http://wpkg.org/tgt-admin

I would be glad for any feedback.



-- 
Tomasz Chmielewski



More information about the stgt mailing list