Managing SAN Devices and Multipathing in Oracle® Solaris 11.2

Exit Print View

Updated: December 2014
 
 

How to Remove Discovered Target Devices

The associated targets are logged out after you perform any of the following actions:

  • Remove a discovery address

  • Remove an iSNS server

  • Remove a static configuration

  • Disable a discovery method

If these associated targets are still in use, for example, they have mounted file systems, the logout of these devices will fail, and they will remain on the active target list.

This optional procedure assumes that you are logged in to the local system where access to an target device has already been configured.

  1. Become an administrator.
  2. (Optional) Disable an iSCSI target discovery method by using one of the following:
    • If you need to disable the SendTargets discovery method, use the following command:

      initiator# iscsiadm modify discovery --sendtargets disable
    • If you need to disable the iSNS discovery method, use the following command:

      initiator# iscsiadm modify discovery --iSNS disable
    • If you need to disable the static target discovery method, use the following command:

      initiator# iscsiadm modify discovery --static disable
  3. Remove an iSCSI device discovery entry by using one of the following:
    • Remove an iSCSI SendTargets discovery entry.

      For example:

      initiator# iscsiadm remove discovery-address 1.2.3.4:3260
    • Remove an iSCSI iSNS discovery entry.

      For example:

      # iscsiadm remove isns-server 1.2.3.4:3205
    • Remove a static iSCSI discovery entry.

      For example:

      initiator# iscsiadm remove static-config eui.5000ABCD78945E2B,1.2.3.4

    Note -  If you attempt to disable or remove a discovery entry that has an associated logical unit (LU) in use, the disable or remove operation fails with the following message:
    logical unit in use

    If this errors occurs, stop all associated I/O on the LU, unmount the file systems. Then, repeat the disable or remove operation.