The Lee-Man | 26 Nov 01:58 2014
Picon

Current Portal vs Persistent Portal Question

Hi Mike:

I am dealing with a problem in Equallogic, and it looks like the Current Portal and Persistent Portal are different.

As this is something I haven't seen before, I was hoping you could explain what it is.

I see in the README:

...
        Current Portal: portal currently logged into
        Persistent Portal: portal we would fall back to if we had got redirected during login

Is this related to Equallogic's iSCSI login redirect?

It sounds like the Persistent Portal is the one that we initially try to log into, and the Current Portal is the one we get redirected to. Or is that backwards?

What happens if we discover the main (group virtual) portal, and our Node record reflects that, then we get redirected? It seems like the Portal is going to differ between the Node record and the Session record, which might explain what I'm seeing.

In this particular case, the problem occurs when Yast tries to step through the Session records, doing an "iscsiadm -m node -I default -T <iqn> -p <ip:port> -P1" for each session, but IPs does not match.

Thanks.

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
The Lee-Man | 25 Nov 02:25 2014
Picon

[PATCH] open-isns: Fix isns server PG registration

Allow the isns server to accept legal registration
sequence, including portal group information.
---
 simple.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/simple.c b/simple.c
index e560d63288ac..8972a0c858bc 100644
--- a/simple.c
+++ b/simple.c
<at> <at> -587,7 +587,7 <at> <at> isns_attr_list_scanner_get_pg(struct isns_attr_list_scanner *st)
                 && isns_object_get_string(base,
                                        ISNS_TAG_ISCSI_NAME,
                                        &st->pgt_iscsi_name)) {
-                       st->pgt_next_attr = ISNS_TAG_PORTAL_IP_ADDRESS;
+                       st->pgt_next_attr = ISNS_TAG_PG_PORTAL_IP_ADDR;
                } else {
                        return ISNS_INTERNAL_ERROR;
                }
<at> <at> -619,7 +619,7 <at> <at> isns_attr_list_scanner_get_pg(struct isns_attr_list_scanner *st)
                        return ISNS_INVALID_REGISTRATION;
 
                next = st->orig_attrs.ial_data[st->pos++];
-               if (next->ia_tag_id != ISNS_TAG_PORTAL_TCP_UDP_PORT)
+               if (next->ia_tag_id != ISNS_TAG_PG_PORTAL_TCP_UDP_PORT)
                        return ISNS_INVALID_REGISTRATION;
 
                isns_attr_list_append_string(&st->keys,
-- 
2.1.2

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
The Lee-Man | 22 Nov 01:52 2014
Picon

open-isns repository moving, under new stewardship

Hi All:

Mike has generously been carrying the open-isns code under the utils directory in open-iscsi for a while now.

As one of the main users of this code, Mike asked if I wanted to take ownership and I agreed.

The new repository will be hosted at https://github.com/gonzoleeman/open-isns.git.

For now, since iSNS gets so little use, I would like to just continue piggy-backing on open-iscsi for issues discovered, discussion, etc. So no new/extra mailing list needs to be subscribed to or maintained.

To start things off, after forking Mike's copy, I've added the following changes:

84905a025c7c Support install of systemd files
5702d6d2ce9e Use DESTDIR instead of INSTALL_ROOT in Makefile
213c0157185c Ignoring dot-o files
997d219eff07 fixing configure warning: not using datarootdir
b511e38470c3 Using INSTALL Macro in Makefile
af60e767adf1 open-isns: systemd integration
024925c372e5 open-isns: Read source name from /etc/iscsi/initiatorname.iscsi
ea0e553fad81 open-isns: Implement 'IQNPrefix' configuration setting
27a260b7cab6 open-isns: Make default IQN prefix configurable
7e0288220b96 isnsadm: Allow server to be specified
e30341671480 open-isns: add 'all' as valid option for debugging
d931d111654b Remove unused variable 'type' in insnsadm
f9717c82af21 open-isns: move config.h include

These reflect the set of 11 patches I recently submitted to this mailing list, with a couple of Makefile-cleanup patches added in.

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Anish Bhatt | 21 Nov 01:46 2014

boot support for offload transports

Hello,

         I was trying to figure out the current state of all the code tagged with “#ifdef OFFLOAD_BOOT_SUPPORTED”. The recent ibft patches don’t seem to touch any of this at all, and I was wondering what the roadmap for this is ? A couple of distros seem to enable this, but the default compile for open-iscsi does not.

-Anish

 

One socket to bind them all.

 

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Lee Duncan | 18 Nov 22:35 2014
Picon

[PATCH 00] iscsid compute bound when bouncing many targets, one LUN per target

The following patch fixes a problem where the CPU becomes compute bound
when rediscovering targets, when there are hundreds of sessions.

When his occurs, most of the time is spent in the function
iscsi_sysfs_for_each_session(). This function does a scandir(),
sorted alphabetically, to get a list of sessions, then scans
that list looking for a match. When there are hundreds of sesions
this can take forever.

This patch saves the current session and then ensures that this
session sorted to the front of the list. Testing shows that
CPU usage goes from near 100% to near 0% when running cable
plug tests with hundreds of sessions.

Signed-off-by: Lee Duncan <leeman.duncan@...>

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe@...
To post to this group, send email to open-iscsi@...
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Lee Duncan | 17 Nov 20:09 2014
Picon

[PATCH 00] Updated patch to read initiatorname

Updated based on comments from Uli. Two comments were changed:

[PATCH 01] open-isns: Read source name from /etc/iscsi/initiatorname.iscsi

-- 
Lee Duncan

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe@...
To post to this group, send email to open-iscsi@...
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Lee Duncan | 15 Nov 02:15 2014
Picon

[PATCH 00/11] open-isns: various updates

The following patches bring open-isns to the level where it
can be used as a daemon (isnsd) in conjunction with open-iscsi:

[PATCH 01/11] open-isns: move config.h include
[PATCH 02/11] open-isns: Allow compilation of server programs
[PATCH 03/11] Remove unused variable 'type' in insnsadm
[PATCH 04/11] open-isns: add 'all' as valid option for debugging
[PATCH 05/11] isnsadm: Allow server to be specified
[PATCH 06/11] open-isns: Make default IQN prefix configurable
[PATCH 07/11] open-isns: Implement 'IQNPrefix' configuration setting
[PATCH 08/11] open-isns: Read source name from /etc/iscsi/initiatorname.iscsi
[PATCH 09/11] open-isns: systemd integration
[PATCH 10/11] open-isns: remove unused SLPLIN from Makefile.in
[PATCH 11/11] open-isns: Add install Makefile target

Note that patch 8 may need re-working, as it assumes that the iscsi
initiator name is in /etc/iscsi/initiatorname.iscsi, and I'm not
sure that's right for all distributions. If so, let me know.
-- 
Lee Duncan

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe@...
To post to this group, send email to open-iscsi@...
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

The Lee-Man | 14 Nov 20:38 2014
Picon

[PATCHESv2] Fixup iBFT and IPv6, some cleanup

Hi Mike:

Here are the updated patches, based on your feedback:

0001-Code-cleanup-no-functional-changes.patch
0002-Represent-DHCP-origin-as-an-enum-not-a-string.patch
0003-fwparam_ibft-Check-iBFT-target-and-NIC-flags.patch
0004-Allow-modifications-for-iface.gateway-and-iface.subn.patch

Changes from last version:

patch 2: uses an enum now. Not sure if the state should be kept as an
integer or an enum. feedback welcome

also, the original path 4 was removed, for later discussion (once we get prefix-len figured out).

Patches are attached (since the groups.google.com interface doesn't easily do plain text)

Thanks.
-- 
Lee Duncan

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Shay Katz | 7 Nov 07:56 2014
Picon

Could not logout of all requested sessions when working with centos 7

Hi

I have client (centos 7) with logged in sessions,

 

[root <at> lgdrm1027 ~]# iscsiadm -m session

tcp: [1] 10.206.12.5:3260,1 iqn.2008-05.com.xtremio:001e679efc4a (non-flash)

tcp: [2] 10.205.12.5:3260,1 iqn.2008-05.com.xtremio:001e679efc4a (non-flash)

tcp: [3] 10.206.12.6:3260,1 iqn.2008-05.com.xtremio:001e679efc4b (non-flash)

tcp: [4] 10.205.12.6:3260,1 iqn.2008-05.com.xtremio:001e679efc4b (non-flash)

tcp: [5] 10.206.12.15:3260,1 iqn.2008-05.com.xtremio:001e679efff6 (non-flash)

tcp: [6] 10.205.12.15:3260,1 iqn.2008-05.com.xtremio:001e679efff6 (non-flash)

tcp: [7] 10.206.12.16:3260,1 iqn.2008-05.com.xtremio:001e679efff7 (non-flash)

tcp: [8] 10.205.12.16:3260,1 iqn.2008-05.com.xtremio:001e679efff7 (non-flash)

 

After logging in the user remove the portals from the target, now when I am trying to logged out the operation fails

And I didn't find how to remove them (There is no force flag):

 

[root <at> lgdrm1027 ~]# iscsiadm -m node -u

Logging out of session [sid: 1, target: iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.206.12.5,3260]

Logging out of session [sid: 2, target: iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.205.12.5,3260]

Logging out of session [sid: 3, target: iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.206.12.6,3260]

Logging out of session [sid: 4, target: iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.205.12.6,3260]

Logging out of session [sid: 5, target: iqn.2008-05.com.xtremio:001e679efff6, portal: 10.206.12.15,3260]

Logging out of session [sid: 6, target: iqn.2008-05.com.xtremio:001e679efff6, portal: 10.205.12.15,3260]

Logging out of session [sid: 7, target: iqn.2008-05.com.xtremio:001e679efff7, portal: 10.206.12.16,3260]

Logging out of session [sid: 8, target: iqn.2008-05.com.xtremio:001e679efff7, portal: 10.205.12.16,3260]

iscsiadm: Could not logout of [sid: 1, target: iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.206.12.5,3260].

iscsiadm: initiator reported error (9 - internal error)

iscsiadm: Could not logout of [sid: 2, target: iqn.2008-05.com.xtremio:001e679efc4a, portal: 10.205.12.5,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 3, target: iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.206.12.6,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 4, target: iqn.2008-05.com.xtremio:001e679efc4b, portal: 10.205.12.6,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 5, target: iqn.2008-05.com.xtremio:001e679efff6, portal: 10.206.12.15,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 6, target: iqn.2008-05.com.xtremio:001e679efff6, portal: 10.205.12.15,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 7, target: iqn.2008-05.com.xtremio:001e679efff7, portal: 10.206.12.16,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of [sid: 8, target: iqn.2008-05.com.xtremio:001e679efff7, portal: 10.205.12.16,3260].

iscsiadm: initiator reported error (2 - session not found)

iscsiadm: Could not logout of all requested sessions

[root <at> lgdrm1027 ~]#

same scenario on centos 6.5 worked well.

Shay

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Andy Grover | 3 Nov 23:43 2014
Picon

[PATCHv2 0/9] Rewrite event handling

Hi Mike and everyone,

Version 2 of the patchset to redo actor.c to use alarm(2) to wake up
for expiring timers instead of needing to wake up 4 times a second. We
do not need fine granularity for these, so computing everything in
seconds works fine and makes the code simpler.

This series is also available in this git repo:

https://github.com/agrover/open-iscsi.git actor-rewrite2

Changes from v1:
* Cancel upcoming alarm if just removed last entry on pend_list
* Wake up once per second to waitpid(), but only if needed
* Squash Chris's patch into #8, since #8 mostly reverses it
* Integrated previously-posted patch that fixed pend_list insertion
  logic
* Tested initial login failure/timeout, logout timeout, relogin cases,
  no issues.

Thanks! -- Regards -- Andy

Adam Jackson (6):
  actor: Mark actor_check static
  actor: simplify actor_check
  actor: s/ACTOR_TICKS/actor_jiffies/
  actor: Remove ACTOR_TICKS_10MS()
  actor: Unobfuscate ACTOR_MAX_LOOPS
  actor: Simplify actor_poll a little

Andy Grover (3):
  Remove actor_init and rename actor_new to actor_init
  Make running actors event-driven
  Wake up to reap children

 include/list.h   |   6 ++
 usr/Makefile     |   4 +-
 usr/actor.c      | 303 +++++++++++++++++++++++++------------------------------
 usr/actor.h      |  14 +--
 usr/event_poll.c |  53 ++++++++--
 usr/initiator.c  |  28 ++---
 usr/iscsid.c     |   1 -
 usr/iscsistart.c |   1 -
 8 files changed, 207 insertions(+), 203 deletions(-)

-- 
1.9.3

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe@...
To post to this group, send email to open-iscsi@...
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

shivraj dongawe | 3 Nov 12:10 2014
Picon

bulk writes in iSCSI

Hi all, 

        Suppose I have information about some lba's and lengths. 
       I want to send more than one write command as a part of single pdu. 
       I want to know whether I could perform this activity using iSCSI?

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Gmane