System Administration Guide: Devices and File Systems

ProcedureHow to Configure iSCSI Target Discovery

This procedure assumes that you are logged in to the local system where you want to configure access to an iSCSI target device.

  1. Become superuser.

  2. Configure the target device to be discovered dynamically or statically using one of the following methods:

    • Configure the device to be dynamically discovered (SendTargets).

      For example:


      initiator# iscsiadm add discovery-address 10.0.0.1:3260
      
    • Configure the device to be dynamically discovered (iSNS).

      For example:


      initiator# iscsiadm add iSNS-server 10.0.0.1:3205
      
    • Configure the device to be statically discovered.

      For example:


      initiator# iscsiadm add static-config eui.5000ABCD78945E2B,10.0.0.1
      

    The iSCSI connection is not initiated until the discovery method is enabled. See the next step.

  3. Enable the iSCSI target discovery method using one of the following:

    • If you have configured a dynamically discovered (SendTargets) device, enable the SendTargets discovery method.


      initiator# iscsiadm modify discovery --sendtargets enable
      
    • If you have configured a dynamically discovered (iSNS) device, enable the iSNS discovery method.


      initiator# iscsiadm modify discovery --iSNS enable
      
    • If you have configured static targets, enable the static target discovery method.


      initiator# iscsiadm modify discovery --static enable
      
  4. Create the iSCSI device links for the local system.


    initiator# devfsadm -i iscsi