On Mon, Jun 27, 2011 at 10:31:06PM -0500, Mike Christie wrote: > On 06/27/2011 02:19 PM, Jim Ramsay wrote: > > 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.
An excellent suggestion. I am sending v2 of my patchset which now contains this 'node.sessions.nr_sessions' feature as well, implemented as you suggested. This v2 patchset also rebases the changes to the current git HEAD, and fixes a segfault I found in my first set of changes. -- Jim Ramsay -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.