System Administration Guide: Devices and File Systems

ProcedureHow to Create an iSCSI Target

This procedure assumes that you are logged in to the local system that contains the iSCSI targets.

  1. Become superuser.

  2. Identify the backing store directory.

    For example:


    target# iscsitadm modify admin -d /export/sandbox
    
  3. Create an iSCSI target.

    For example:


    target# iscsitadm create target --size 2g sandbox
    
  4. Display information about the iSCSI target.

    For example:


    target# iscsitadm list target -v sandbox
    
  5. Set up your iSCSI initiator to discover and use this target.

    For more information, see How to Configure iSCSI Target Discovery.