[stgt] [PATCH 0/3] fix some iser disconnect issues

Alexander Nezhinsky alexandern at Voltaire.COM
Mon Jan 31 18:13:05 CET 2011


A few patches addressing various disconnect issues in iser.

The first one is related to the administrative disconnect.
To check this scenario one can try to remove a target with
some connections on it, running live io.

For example:

# tgtadm --lld iser --mode target --op show
Target 1: tgt1.iser
    System information:
        Driver: iser
        State: ready
    I_T nexus information:
        I_T nexus: 15
            Initiator: iqn.1994-05.com.redhat:da54c698968
            Connection: 0
                RDMA IP Address: 192.168.20.16
    LUN information:
        LUN: 0
		...
        LUN: 1
		...
    ACL information:
        ALL

The following commands: 
unbind initiators, close active connections, remove LUNs, remove target.

# tgtadm --lld iser --mode target --op unbind --tid 1 -I ALL
# tgtadm --lld iser --mode conn --op delete --tid 1 --sid 15 --cid 0
# tgtadm --lld iser --mode logicalunit --op delete --tid 1 --lun 1
# tgtadm --lld iser --mode target --op delete --tid 1

If something goes wrong, problems (from segfault to graceful failures) may
arise after each operation. Note that connection removal is completed
asynchronously to tgtadm requests. Thus the subsequent attempts to remove
a lun may fail few times until the removal succeeds (only if disconnecting
during io).
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list