Project

General

Profile

Actions

Bug #6917

closed

Can't remove ISCSI target from initiator

Added by Rizal Nur over 5 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
OS/Net (Kernel and Userland)
Target version:
Start date:
2016-04-17
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
invalid

Description

I'm using openindiana 5.11 as ISCSI initiator.

SunOS openindiana-vm 5.11 illumos-7fc68dd i86pc i386 i86pc

In this host, there are 4 targets that 2 of them is disconnected from ISCSI target.

#iscsiadm list static-config
Static Configuration Target: iqn.2010-09.org.napp-it:target1,10.0.201.22:3260
Static Configuration Target: iqn.2010-09.org.napp-it:target2,10.0.202.22:3260

# iscsiadm list discovery
Discovery:
        Static: enabled
        Send Targets: disabled
        iSNS: disabled

# iscsiadm list target -v                                                                                               [99/976]
Target: iqn.2010-09.org.napp-it:target2
        Alias: 04.16.2016
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
                CID: 0
                  IP address (Local): 10.0.202.39:48420
                  IP address (Peer): 10.0.202.22:3260
                  Discovery Method: Static
                  Login Parameters (Negotiated):
                        Data Sequence In Order: yes
                        Data PDU In Order: yes
                        Default Time To Retain: 20
                        Default Time To Wait: 2
                        Error Recovery Level: 0
                        First Burst Length: 65536
                        Immediate Data: yes
                        Initial Ready To Transfer (R2T): yes
                        Max Burst Length: 262144
                        Max Outstanding R2T: 1
                        Max Receive Data Segment Length: 32768
                        Max Connections: 1
                        Header Digest: NONE
                        Data Digest: NONE

Target: iqn.2010-09.org.napp-it:target1
        Alias: 04.16.2016
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
                CID: 0
                  IP address (Local): 10.0.201.39:43062
                  IP address (Peer): 10.0.201.22:3260
                  Discovery Method: Static
                  Login Parameters (Negotiated):
                        Data Sequence In Order: yes
                        Data PDU In Order: yes
                        Default Time To Retain: 20
                        Default Time To Wait: 2
                        Error Recovery Level: 0
                        First Burst Length: 65536
                        Immediate Data: yes
                        Initial Ready To Transfer (R2T): yes
                        Max Burst Length: 262144
                        Max Outstanding R2T: 1
                        Max Receive Data Segment Length: 32768
                        Max Connections: 1
                        Header Digest: NONE
                        Data Digest: NONE

Target: iqn.2010-09.org.napp-it:target122
        Alias: -
        ISID: 4000002a0000
        Connections: 0
                  Discovery Method: Static
                  Login Parameters (Negotiated):
                        Data Sequence In Order: yes
                        Data PDU In Order: yes
                        Default Time To Retain: 20
                        Default Time To Wait: 2
                        Error Recovery Level: 0
                        First Burst Length: 65536
                        Immediate Data: yes
                        Initial Ready To Transfer (R2T): yes
                        Max Burst Length: 262144
                        Max Outstanding R2T: 1
                        Max Receive Data Segment Length: 32768
                        Max Connections: 1
                        Header Digest: -
                        Data Digest: -

Target: iqn.2010-09.org.napp-it:target12
        Alias: -
        ISID: 4000002a0000
        Connections: 0
                  Discovery Method: Static
                  Login Parameters (Negotiated):
                        Data Sequence In Order: yes
                        Data PDU In Order: yes
                        Default Time To Retain: 20
                        Default Time To Wait: 2
                        Error Recovery Level: 0
                        First Burst Length: 65536
                        Immediate Data: yes
                        Initial Ready To Transfer (R2T): yes
                        Max Burst Length: 262144
                        Max Outstanding R2T: 1
                        Max Receive Data Segment Length: 32768
                        Max Connections: 1
                        Header Digest: -
                        Data Digest: -

I want to remove iqn.2010-09.org.napp-it:target122 & iqn.2010-09.org.napp-it:target12, but it's failed.

# iscsiadm remove target-param iqn.2010-09.org.napp-it:target12
# iscsiadm remove target-param iqn.2010-09.org.napp-it:target122
# iscsiadm list target
Target: iqn.2010-09.org.napp-it:target2
        Alias: 04.16.2016
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
Target: iqn.2010-09.org.napp-it:target1
        Alias: 04.16.2016
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
Target: iqn.2010-09.org.napp-it:target122
        Alias: -
        ISID: 4000002a0000
        Connections: 0
Target: iqn.2010-09.org.napp-it:target12
        Alias: -
        ISID: 4000002a0000
        Connections: 0

Please your advice

Actions #1

Updated by Udo Grabowski about 4 years ago

This makes no sense. The command to remove a target from the static config list is 'iscsiadm remove static-config <target>'.
This bug should be closed as invalid.

Actions #2

Updated by Aurélien Larcher about 4 years ago

  • Status changed from New to Rejected
  • Tags changed from needs-triage to invalid

See comments.

Actions

Also available in: Atom PDF