On 06/27/2011 02:19 PM, Jim Ramsay wrote:
> The current architecture of the open-iscsi tools prevents there from being 
> more
> than one iSCSI session between any given iface record and a specific target
> portal.
> 
> For easier configuration of multipath setups, it would be nice to be able to
> create multiple iSCSI sessions from a single iface record.  The alternative,
> which works with version 2.0.871 and later, is to create multiple iface
> records, each corresponding to the same HBA, and initiate a single iSCSI
> session from each.  This works but is a bit cumbersome.
> 
> This patchset introduces a new commandline syntax that takes an existing iSCSI
> session and creates a new session, using exactly the same node, portal, and
> iface record as the specified session.  This uses the 'new' operation in the
> 'session' mode, a syntax which was previously allowed but had no real purpose.
> 
> Example:
>  # iscsiadm -m session
>  tcp: [4] <portal> <target>
>  # iscsiadm -m session -r 4 -o new
>  Logging in to [iface: iface0, target: <target>, portal: <portal>] (multiple)
>  Login to [iface: iface0, target: <target>, portal: <portal>] successful.
>  # iscsiadm -m session
>  tcp: [4] <portal> <target>
>  tcp: [5] <portal> <target>
> 

Thanks for your work on this. I think this is a good feature to add. One
question I have is how will this work for distros and on reboots? Users
do not want to have to run the iscsiadm -m session ... -o new command
every reboot, and users do not want to have to add in their own script
to run during boot. It should be nicely integrated by the distros I mean.

I think we could add a iscsid.conf/db setting for this. We can add a new
setting:

node.session.nr_sessions = N

where N is int and 1 by default.

When the iscsiadm login command is run then it will read this value that
is stored in the:

/etc/iscsi/nodes/iqn.2001-08.com.sometarget/20.15.0.23,3260,1/ifaceX

file with the other settings and then create that number of sessions.

User can then set that value in iscsid.conf or for specific
iface,target,portal recs like other settings.

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

Reply via email to