multiple initiator instances on same machine.

660 views
Skip to first unread message

rahul gupta

unread,
Mar 18, 2011, 6:11:32 AM3/18/11
to open-...@googlegroups.com
Hi,

I would like to know, how to configure multiple iqn names (initiator instances running) on same machine using open-iSCSI (iscsi_tcp as transport).

Under a test scenario as follows, I am able to create multiple initiator instances on the same machine, (but may be its not a cool way to do so):-

1. Start initiator with a iqn name and login into target.
2. On initiator, mount lun and run some IO.
3. Now let the IO to continue but kill iscsid.
4. Now change the initiator iqn name and again start the daemon.
5. Login into the target and start IO.
6. On running iscsiadm -m session -P 3
Its observed that both the sessions are eastablished with different initiator iqn name and IO is going fine on both sessions.

Is it really whats expected?

Best Regards,
Rahul.

Pasi Kärkkäinen

unread,
Mar 19, 2011, 9:10:50 AM3/19/11
to open-...@googlegroups.com

Do you absolutely require different IQN names for the initiator?

You should be able to specify separate session ID (iirc SID) to create
multiple connections from a single initiator.

-- Pasi

rahul gupta

unread,
Mar 19, 2011, 9:29:55 AM3/19/11
to open-...@googlegroups.com, Pasi Kärkkäinen
Yes, I require two different IQN names for the initiator.

I know, if I login into different targets or same target multiple times (on different portals) then separate sessions and thus multiple connections are created.
Best Regards,
Rahul.


--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To post to this group, send email to open-...@googlegroups.com.
To unsubscribe from this group, send email to open-iscsi+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.


Pasi Kärkkäinen

unread,
Mar 19, 2011, 10:16:10 AM3/19/11
to rahul gupta, open-...@googlegroups.com
On Sat, Mar 19, 2011 at 06:59:55PM +0530, rahul gupta wrote:
> Yes, I require two different IQN names for the initiator.
>

Can you please explain in what kind of scenario two different
iqn names are needed for a single initiator? I haven't personally
had that requirement so far.. so I'm trying to figure out when it's needed.


> I know, if I login into different targets or same target multiple times
> (on different portals) then separate sessions and thus multiple
> connections are created.
>

Yeah, and even if you have just a single target/portal you can create
multiple session to it from a single initiator by using different sid values.

-- Pasi

> Best Regards,
> Rahul.

> To post to this group, send email to [2]open-...@googlegroups.com.


> To unsubscribe from this group, send email to

> [3]open-iscsi+...@googlegroups.com.


> For more options, visit this group at

> [4]http://groups.google.com/group/open-iscsi?hl=en.
>
> References
>
> Visible links
> 1. mailto:pa...@iki.fi
> 2. mailto:open-...@googlegroups.com
> 3. mailto:open-iscsi%2Bunsu...@googlegroups.com
> 4. http://groups.google.com/group/open-iscsi?hl=en

Shyam...@dell.com

unread,
Mar 19, 2011, 11:07:43 AM3/19/11
to open-...@googlegroups.com, rahulr...@gmail.com

> -----Original Message-----
> From: open-...@googlegroups.com [mailto:open-...@googlegroups.com]
> On Behalf Of Pasi Kärkkäinen
> Sent: Saturday, March 19, 2011 10:16 AM
> To: rahul gupta
> Cc: open-...@googlegroups.com
> Subject: Re: multiple initiator instances on same machine.
>
> On Sat, Mar 19, 2011 at 06:59:55PM +0530, rahul gupta wrote:
> > Yes, I require two different IQN names for the initiator.
> >
>
> Can you please explain in what kind of scenario two different
> iqn names are needed for a single initiator? I haven't personally
> had that requirement so far.. so I'm trying to figure out when it's
> needed.

Having different iqns to create sessions can give a lot of flexibility..

See this presentation I gave in last linuxcon http://events.linuxfoundation.org/slides/2010/linuxcon2010_iyer.pdf

Mike Christie

unread,
Mar 20, 2011, 10:15:11 PM3/20/11
to open-...@googlegroups.com, rahul gupta

No.

Just create a iface for each initiator.

iscsiadm -m iface -I iface1 -o new
iscsiadm -m iface -I iface1 -o update -v iface.initiatorname yourname

iscsiadm -m iface -I iface2 -o new
iscsiadm -m iface -I iface2 -o update -v iface.initiatorname yourothername

iscsiadm -m discovery -t st -p ip -I iface2 -I iface1 -P 1

iscsiadm -n node -I iface1 -l
iscsiadm -n node -I iface2 -l

rahul gupta

unread,
Mar 21, 2011, 8:02:51 AM3/21/11
to Mike Christie, open-...@googlegroups.com

Thanks Mike,
With your pointers, I am able to create different sessions with different initiator iqn names from the same initiator machine.

Best Regards,
Rahul.
Reply all
Reply to author
Forward
0 new messages