undeletable targets with connections fixed with last commits?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List!

do the last commits

Avoid session* dangling reference on forced target destroy.
and
Avoid dangling session reference in login_security_done

address the problem of targets that just won't go away?

We're running 1.0.63 and quite often have the problem that we can't
delete targets and stgt think's there are connections while the
connection has already been shut down.
Also, those connections seem to pile up. We've some targets with >100
Connections to it while the initiator itself sees only one.

:# tgt-admin -v --force --delete iqn.2016-01.net.g:xbbs-szq8:iscsi
# Removing target: iqn.2016-01.net.g:xbbs-szq8:iscsi
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1012 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 10 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 436 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1017 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1013 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 530 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 435 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1014 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 554 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1019 --cid 1
tgtadm -C 0 --mode target --op delete --tid=27
tgtadm: this target is still active
Command:
        tgtadm -C 0 --mode target --op delete --tid=27
        exited with code: 22.

## trying with force one connection to go away

:# tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1 --force
:# tgt-admin -v --force --delete iqn.2016-01.net.g:xbbs-szq8:iscsi
# Removing target: iqn.2016-01.net.g:xbbs-szq8:iscsi
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 10 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 554 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1013 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1019 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1012 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1014 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 435 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1017 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 530 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 436 --cid 1
tgtadm -C 0 --mode target --op delete --tid=27
tgtadm: this target is still active
Command:
        tgtadm -C 0 --mode target --op delete --tid=27
        exited with code: 22.

##connection still there

Offlineing the target, removing initiators (unbind) doesn't change anything.

Thx in advance
  Benedikt
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux