[stgt] [PATCH] iscsi: target redirect support

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sun Jun 20 04:20:26 CEST 2010


On Thu, 17 Jun 2010 16:21:55 -0700
Chandra Seetharaman <sekharan at us.ibm.com> wrote:

> On Thu, 2010-06-17 at 22:46 +0900, FUJITA Tomonori wrote:
> <snip>
> 
> > > If/when we add redirector support to tgt-admin, how the two tgtds
> > > (redirector tgtd and serving tgtd) know to treat the redirector
> > > instructions differently ? i.e redirector tgtd should use the
> > > information and "serving" tgtd should not. Basically the tgtd should be
> > > knowing if it is a "redirecting" tgtd or "serving" tgtd.
> > > 
> > > Details:
> > > targets.conf file 
> > > ---------------------
> > > <target iqn.2010-03.com.cluster1:01>
> > >         <backing-store /gpfs/file1>
> > > 		vendor_id cluster1
> > > 		product_id target1
> > > 		scsi_id cluster1_target1_lun1
> > >                 lun 1
> > >         </backing-store>
> > > 	initiator-address 10.0.0.1
> > > 	redirect-address  10.0.1.51
> > >         redirect-port     860
> > >         redirect-reason   Temporary
> > > </target>
> > > --------------------
> > > 
> > > And if i were to use tgt-admin to control the tgtds with the same
> > > targets.conf file,
> > 
> > Needs to use different targets.conf for each tgtd?
> > 
> > targets.conf doesn't support two tgtd daemons on the single host.
> 
> you mean tgt-admin doesn't ? I added a "-C" option to tgt-admin and
> hence it does.

Hmm, if you use two files, why can't you do like:


<target iqn.2010-03.com.cluster1:01>
        <backing-store /gpfs/file1>
		vendor_id cluster1
		product_id target1
		scsi_id cluster1_target1_lun1
                lun 1
        </backing-store>
</target>


<target iqn.2010-03.com.cluster1:01>
	redirect-address  10.0.1.51
        redirect-port     860
        redirect-reason   Temporary
</target>

I might be wrong since I don't know about tgt-admin.

btw, 

<target iqn.2010-03.com.cluster1:01>
	<redirect>
		address  10.0.1.51
		port     860
		reason   Temporary
	</redirect>
</target>

It looks prettier?
--
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