I am seeing this issue, and can't figure out how to clear the session.
======================
# iscsiadm -m node
iscsiadm: No records found
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: Could not logout of [sid: 17, target: iqn.2000-01.com.synology:goliath.Target-1.202ea812a4, portal: 192.168.1.115,3260].
iscsiadm: Could not logout of [sid: 18, target: iqn.2000-01.com.synology:goliath.Target-11.202ea812a4, portal: 192.168.1.115,3260].
]# 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)
========