[Stgt-devel] support to close a connection by force and to shut down tgtd
    Tomasz Chmielewski 
    mangoo
       
    Tue Jul 29 16:44:14 CEST 2008
    
    
  
FUJITA Tomonori schrieb:
> I added features:
> 
> - to drop an active connection by force (iSCSI)
(...)
> The initiator still works but can't reconnect anymore. It's ready to
> drop the connection.
> 
> root at iris:~/git# ./tgt/usr/tgtadm --op delete --mode conn --tid 1 --sid 1 --cid 0
Hmm, for some reason it doesn't work for me. It did work several times however, so perhaps I'm doing something wrong. I can't find what, though.
# tgtadm --op show --mode target
(...)
Target 3: iqn.2008-06.net.syneticon:superthecus.test
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 11
            Initiator: iqn.2006-12.net.syneticon:server.backup1
            Connection: 0
                IP Address: 192.168.111.173
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: deadbeaf3:0
            SCSI SN: beaf30
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store: No backing store
        LUN: 1
            Type: disk
            SCSI ID: deadbeaf3:1
            SCSI SN: beaf31
            Size: 2147 MB
            Online: Yes
            Removable media: No
            Backing store: /dev/superthecus/test
    Account information:
    ACL information:
        ALL
Let's remove ACL permissions first (after that, "ALL" is gone from "ACL information"):
# tgtadm --op unbind --mode target --tid 3 -I ALL
Next thing would be this, I guess (Target 3 -> tid 3; I_T nexus: 11 -> sid 11; Connection: 0 -> cid 0)?
# tgtadm --op delete --mode conn --tid 3 --sid 11 --cid 0
However, it doesn't change anything:
# tgtadm --op show --mode target
(...)
Target 3: iqn.2008-06.net.syneticon:superthecus.test
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 11
            Initiator: iqn.2006-12.net.syneticon:server.backup1
            Connection: 0
                IP Address: 192.168.111.173
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: deadbeaf3:0
            SCSI SN: beaf30
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store: No backing store
        LUN: 1
            Type: disk
            SCSI ID: deadbeaf3:1
            SCSI SN: beaf31
            Size: 2147 MB
            Online: Yes
            Removable media: No
            Backing store: /dev/superthecus/test
    Account information:
    ACL information:
-- 
Tomasz Chmielewski 
http://wpkg.org
    
    
More information about the stgt
mailing list