Hi, I ran into this same problem (and found this thread while googling for it), and compared CentOS 6 and 7 settings.
The fix, for me, was to edit /etc/iscsi/iscsid.conf and change the line iscsid.safe_logout = Yes ... to = No Then: systemctl restart iscsid.service After that, the logout worked. (And, multipath did the right thing!) Optionally, put the setting back to "Yes" afterwards and restart iscsid again. -- Michael On Friday, 7 November 2014 06:56:17 UTC, Shay Katz wrote: > > Hi > > I have client (centos 7) with logged in sessions, > > > > [root@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@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@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/open-iscsi/5405214f-8249-4371-b29e-25f18ad1cfae%40googlegroups.com.