[stgt] tgt-admin and a -C, --control-port argument

Chandra Seetharaman sekharan at us.ibm.com
Fri Apr 2 01:48:24 CEST 2010


Just wondering if tgtd can take a command from tdtadm to start a new
instance of tgtd with control port and iscsi portal.

The usage scenario I have is this:

- tgtd starts as it is today from init scripts without any control port
  or iscsi portal addresses
- User defines targets in targets.conf file with target-address
- tgt-admin invokes tgtadm command to create tgtd with specific control 
  ports
- tgt-admin sends (thru tgtadm) target create requests to control ports 
  if the target has target-address
- tgt-admin sends (thru tgtadm) target create request to the tgtadm that
  doesn't have any control port associated
- When tgtadm needs the listing of targets, tgtadm provides it with all
  the targets it controls and all the control ports defined. And 
  tgt-admin uses all the control ports to get the targets connected to
  each of the control ports

This needs some additional changes to tgtadm.

Or is it already implemented that way ?

If this model won't work, how do I use the control port model with tgtd 
needing to start at a time where all the control ports and ip addresses
are not known (boot time) and how tgt-admin will get target information
for all the control ports ?

regards,

chandra

On Thu, 2010-04-01 at 09:54 -0700, Chandra Seetharaman wrote:
> 1. The purpose of multiple tgtds (and the control port) is to make each 
>    tgtd dedicated to ipaddress (or port).
> 
> 2. Each target will be associated with only one ip address (which also
>    means we have to add a ip address token to target definition).
> 
> (1) and (2) make me think that we do not need an explicit "control port"
> parameter for targets.conf syntax.
> 
> If any target has a ip address specifically defined, then tgt-admin can
> define a control port and use it at the right place (as it does with tid
> currently) and keep the control port definition totally internal to
> tgt-admin.
> 
> Does it make sense ? Or am I missing something ?
> 
> I had a related question, will we ever want to make multiple ip
> addresses served by a single tgtd ? 
> 
> On Wed, 2010-03-31 at 18:38 +1100, ronnie sahlberg wrote:
> > Hi Tomasz
> > 
> > tgtd and tgtadm now supports a -C, --control-port=X argument  allowing
> > to run multiple instances of tgtd in parallel, each one bound to a
> > dedicated ip address or port.
> > 
> > As the developer/maintainer of tgt-admin, would you consider adding a
> > -C, --control-port argument to tgt-admin?
> > If this argument is used, all calls to tgtadm would be changed to use
> > --control-port=X too ?
> > 
> > 
> > regards
> > ronnie sahlberg
> > --
> > To unsubscribe from this list: send the line "unsubscribe stgt" in
> > the body of a message to majordomo at vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> --
> To unsubscribe from this list: send the line "unsubscribe stgt" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list