I am seeing this issue, and can't figure out how to clear the session.

======================
# iscsiadm -m node
iscsiadm: No records found


]# iscsiadm -m node -u
Logging out of session [sid: 16, target: 
iqn.2000-01.com.synology:goliath.Target-1.202ea812a4, portal: 
192.168.1.210,3260]
Logging out of session [sid: 17, target: 
iqn.2000-01.com.synology:goliath.Target-1.202ea812a4, portal: 
192.168.1.115,3260]
Logging out of session [sid: 18, target: 
iqn.2000-01.com.synology:goliath.Target-11.202ea812a4, portal: 
192.168.1.115,3260]
iscsiadm: Could not logout of [sid: 16, target: 
iqn.2000-01.com.synology:goliath.Target-1.202ea812a4, portal: 
192.168.1.210,3260].
iscsiadm: initiator reported error (9 - internal error)
iscsiadm: Could not logout of [sid: 17, target: 
iqn.2000-01.com.synology:goliath.Target-1.202ea812a4, portal: 
192.168.1.115,3260].
iscsiadm: initiator reported error (2 - session not found)
iscsiadm: Could not logout of [sid: 18, target: 
iqn.2000-01.com.synology:goliath.Target-11.202ea812a4, portal: 
192.168.1.115,3260].
iscsiadm: initiator reported error (2 - session not found)
iscsiadm: Could not logout of all requested sessions

]# iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870
version 2.0-874
Target: iqn.2000-01.com.synology:goliath.Target-1.202ea812a4 (non-flash)
    Current Portal: 192.168.1.210:3260,1
    Persistent Portal: 192.168.1.210:3260,1
        **********
        Interface:
        **********
        Iface Name: libvirt-iface-1e408018
        Iface Transport: tcp
        Iface Initiatorname: iqn.2005-03.org.open-iscsi:9caebed6b2ad
        Iface IPaddress: <empty>
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 16
        iSCSI Connection State: TRANSPORT WAIT
        iSCSI Session State: FREE
        Internal iscsid Session State: REOPEN
        *********
        Timeouts:
        *********
        Recovery Timeout: 120
        Target Reset Timeout: 30
        LUN Reset Timeout: 30
        Abort Timeout: 15
        *****
        CHAP:
        *****
        username: admin
        password: ********
        username_in: <empty>
        password_in: ********
        ************************
        Negotiated iSCSI params:
        ************************
        HeaderDigest: None
        DataDigest: None
        MaxRecvDataSegmentLength: 262144
        MaxXmitDataSegmentLength: 262144
        FirstBurstLength: 65536
        MaxBurstLength: 262144
        ImmediateData: Yes
        InitialR2T: Yes
        MaxOutstandingR2T: 1
        ************************
        Attached SCSI devices:
        ************************
        Host Number: 12    State: running
        scsi12 Channel 00 Id 0 Lun: 0
            Attached scsi disk sde        State: transport-offline
        scsi12 Channel 00 Id 0 Lun: 1
            Attached scsi disk sdf        State: transport-offline
        scsi12 Channel 00 Id 0 Lun: 2
            Attached scsi disk sdg        State: transport-offline
        scsi12 Channel 00 Id 0 Lun: 3
            Attached scsi disk sdh        State: transport-offline
        scsi12 Channel 00 Id 0 Lun: 4
            Attached scsi disk sdi        State: transport-offline
    Current Portal: 192.168.1.115:3260,1
    Persistent Portal: 192.168.1.115:3260,1
        **********
        Interface:
        **********
        Iface Name: libvirt-iface-1e408018
        Iface Transport: tcp
        Iface Initiatorname: iqn.2005-03.org.open-iscsi:9caebed6b2ad
        Iface IPaddress: <empty>
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 17
        iSCSI Connection State: Unknown
        iSCSI Session State: FREE
        Internal iscsid Session State: Unknown
        *********
        Timeouts:
        *********
        Recovery Timeout: 120
        Target Reset Timeout: 30
        LUN Reset Timeout: 30
        Abort Timeout: 15
        *****
        CHAP:
        *****
        username: admin
        password: ********
        username_in: <empty>
        password_in: ********
        ************************
        Negotiated iSCSI params:
        ************************
        HeaderDigest: None
        DataDigest: None
        MaxRecvDataSegmentLength: 262144
        MaxXmitDataSegmentLength: 262144
        FirstBurstLength: 65536
        MaxBurstLength: 262144
        ImmediateData: Yes
        InitialR2T: Yes
        MaxOutstandingR2T: 1
        ************************
        Attached SCSI devices:
        ************************
        Host Number: 13    State: running
        scsi13 Channel 00 Id 0 Lun: 0
            Attached scsi disk sdj        State: transport-offline
        scsi13 Channel 00 Id 0 Lun: 1
            Attached scsi disk sdl        State: transport-offline
        scsi13 Channel 00 Id 0 Lun: 2
            Attached scsi disk sdn        State: transport-offline
        scsi13 Channel 00 Id 0 Lun: 3
            Attached scsi disk sdp        State: transport-offline
        scsi13 Channel 00 Id 0 Lun: 4
            Attached scsi disk sdr        State: transport-offline
Target: iqn.2000-01.com.synology:goliath.Target-11.202ea812a4 (non-flash)
    Current Portal: 192.168.1.115:3260,1
    Persistent Portal: 192.168.1.115:3260,1
        **********
        Interface:
        **********
        Iface Name: libvirt-iface-1e408018
        Iface Transport: tcp
        Iface Initiatorname: iqn.2005-03.org.open-iscsi:9caebed6b2ad
        Iface IPaddress: <empty>
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 18
        iSCSI Connection State: Unknown
        iSCSI Session State: FREE
        Internal iscsid Session State: Unknown
        *********
        Timeouts:
        *********
        Recovery Timeout: 120
        Target Reset Timeout: 30
        LUN Reset Timeout: 30
        Abort Timeout: 15
        *****
        CHAP:
        *****
        username: admin
        password: ********
        username_in: <empty>
        password_in: ********
        ************************
        Negotiated iSCSI params:
        ************************
        HeaderDigest: None
        DataDigest: None
        MaxRecvDataSegmentLength: 262144
        MaxXmitDataSegmentLength: 262144
        FirstBurstLength: 65536
        MaxBurstLength: 262144
        ImmediateData: Yes
        InitialR2T: Yes
        MaxOutstandingR2T: 1
        ************************
        Attached SCSI devices:
        ************************
        Host Number: 14    State: running
        scsi14 Channel 00 Id 0 Lun: 0
            Attached scsi disk sdk        State: transport-offline
        scsi14 Channel 00 Id 0 Lun: 1
            Attached scsi disk sdm        State: transport-offline
        scsi14 Channel 00 Id 0 Lun: 2
            Attached scsi disk sdo        State: transport-offline
        scsi14 Channel 00 Id 0 Lun: 3
            Attached scsi disk sdq        State: transport-offline
        scsi14 Channel 00 Id 0 Lun: 4
            Attached scsi disk sds        State: transport-offline

================================


>From Journal open-iscsi, One problem is that 192.168.1.210 was reassigned 
to 192.168.1.115, but still persist in iscsid somehow.

====
Mar 23 04:34:05  systemd[1]: Stopping Open iSCSI Daemon...
Mar 23 04:34:05  systemd[1]: Stopped Open iSCSI Daemon.
Mar 23 04:38:13  systemd[1]: Starting Open iSCSI Daemon...
Mar 23 04:38:13  iscsid[7721]: iSCSI logger with pid=7722 started!
Mar 23 04:38:13  systemd[1]: Started Open iSCSI Daemon.
Mar 23 04:38:14  iscsid[7722]: iSCSI daemon with pid=7723 started!
Mar 23 04:38:14  iscsid[7722]: Could not read data from db. Using default 
and currently negotiated values
Mar 23 04:38:20  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:38:27  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:38:34  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:38:41  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:38:48  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:38:55  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:02  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:04  iscsid[7722]: session in invalid state for logout. Try 
again later
Mar 23 04:39:09  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:16  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:19  iscsid[7722]: session in invalid state for logout. Try 
again later
Mar 23 04:39:20  iscsid[7722]: session in invalid state for logout. Try 
again later
Mar 23 04:39:22  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:29  iscsid[7722]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:39:36  systemd[1]: Stopping Open iSCSI Daemon...
Mar 23 04:39:36  systemd[1]: Stopped Open iSCSI Daemon.
Mar 23 04:44:45  systemd[1]: Starting Open iSCSI Daemon...
Mar 23 04:44:45  iscsid[8120]: iSCSI logger with pid=8121 started!
Mar 23 04:44:45  systemd[1]: Started Open iSCSI Daemon.
Mar 23 04:44:46  iscsid[8121]: iSCSI daemon with pid=8122 started!
Mar 23 04:44:46  iscsid[8121]: Could not read data from db. Using default 
and currently negotiated values
Mar 23 04:44:51  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:44:58  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:05  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:12  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:19  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:26  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:33  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:40  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:47  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:45:54  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:01  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:08  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:15  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:22  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:29  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:36  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:43  iscsid[8121]: session in invalid state for logout. Try 
again later
Mar 23 04:46:43  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:50  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:46:57  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:47:04  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:47:11  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:47:18  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:47:25  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)
Mar 23 04:47:32  iscsid[8121]: connect to 192.168.1.210:3260 failed (No 
route to host)

========




On Tuesday, December 2, 2014 at 4:18:29 PM UTC-5, Mike Christie wrote:
>
> Thanks for reporting back.
>
> If this happens again, give us the /var/log/messages and the output of
>
> iscsiadm -m session -P 3
>
> when the iscsiadm ….. —logout command is returning the errors you pasted 
> below.
>
>
>
> On Nov 30, 2014, at 12:08 AM, Shay Katz <[email protected] <javascript:>> 
> wrote:
>
> Hi,
>
> during the last week i have tried to reproduce the problem without success.
>
> I guess it is false alarm.
>
> Shay
>
> On Monday, November 10, 2014 8:51:00 AM UTC+2, Mike Christie wrote:
>>
>> Could you attach your /var/log/messages for when you removed the portals 
>> and when you ran the logout command?
>>
>>
>> On Nov 7, 2014, at 12:56 AM, Shay Katz <[email protected]> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/open-iscsi.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to