Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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:

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

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

      Code Block
      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:

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

For example:

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

For example:

Code Block
initiator# iscsiadm remove static-config eui.5000ABCD78945E2B,10.0.0.1
Info

Note - If you attempt to disable or remove a discovery entry that has an associated logical unit (LUN) 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 LUN, unmount the file systems, and so on. Then, repeat the disable or remove operation.

4. Remove the iSCSI target device.

For example:

Code Block
target# itadm delete-target target-IQN

This command might error if the target is still online or busy:

Code Block
The target is online or busy. Use the -f (force) option, or 'stmfadm offline-target 
iqn.1986-03.com.sun:02:99619b8a-a4dc-4cfb-93f0-ee3debe7b0c8'
itadm delete-target failed with error 16

Creating iSCSI Target Portal Groups

...