I am unable to logout of an inactive target. Inactive meaning, that the
target is no longer there.
I have stale target entries
[r...@maverick iscsi]# service iscsid stop
Not stopping iscsid: iscsi sessions still active [WARNING]
Ok, so we have an active iscsi session.
[r...@maverick iscsi]# iscsiadm -m session
tcp: [10] 10.63.8.193:3260,1027 iqn.
1992-08.com.netapp:sn.
cdfd3c5ae76111df9fd8123478563412:vs.2
[r...@maverick iscsi]# iscsiadm -m session --sid=10 --op=delete
iscsiadm: This command will remove the record [iface: default, target:
iqn.1992-08.com.netapp:sn.cdfd3c5ae76111df9fd8123478563412:vs.2,
portal: 10.63.8.193,3260], but a session is using it. Logout session
then rerun command to remove record.
iscsiadm: Could not execute operation on all records. Err 22.
[r...@maverick iscsi]# iscsiadm -m node --logoutall=all
Logging out of session [sid: 10, target: iqn.
1992-08.com.netapp:sn.cdfd3c5ae76111df9fd8123478563412:vs.2, portal:
10.63.8.193,3260]
iscsiadm: Could not logout of [sid: 10, target: iqn.
1992-08.com.netapp:sn.cdfd3c5ae76111df9fd8123478563412:vs.2, portal:
10.63.8.193,3260]:
iscsiadm: initiator reported error (9 - internal error)
[r...@maverick iscsi]#
[r...@maverick iscsi]# iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870
iscsiadm version 2.0-870
Target: iqn.1992-08.com.netapp:sn.cdfd3c5ae76111df9fd8123478563412:vs.
2
Current Portal: 10.63.8.193:3260,1027
Persistent Portal: 10.63.8.193:3260,1027
**********
Interface:
**********
Iface Name: default
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.fedora:rhooda
Iface IPaddress: 10.62.8.175
Iface HWaddress: default
Iface Netdev: default
SID: 10
iSCSI Connection State: TRANSPORT WAIT
iSCSI Session State: FREE
Internal iscsid Session State: REPOEN
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 131072
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 65536
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 13 State: running
scsi13 Channel 00 Id 0 Lun: 0
Attached scsi disk sdb State: running
But ...
[r...@maverick iscsi]# mount | grep sdb
sdb is not mounted anywhere.
[r...@maverick iscsi]# fdisk -l | grep sdb
fdisk can't see sdb.
[r...@maverick iscsi]# cd /dev/sd
sda sda1 sda2 sda3 sdb
Interesting ... don't know what's going on.
Thanks,
Rohit
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.