Table of ContentsView in Frames

(iSCSI) Discovering the iSCSI target by using the iscsiadm utility on Red Hat 5, 6, 7, SUSE 10, 11

You can use the iscsiadm utility to manage (update, delete, insert, and query) the persistent database on Red Hat Enterprise 5, 6, or 7 series and SUSE Linux Enterprise Server 10 or 11 series. The utility enables you to perform a set of operations on iSCSI nodes, sessions, connections, and discovery records.


  1. Enter the following command to discover the iSCSI target:iscsiadm --mode discovery --op update --type sendtargets --portal targetIP

    targetiIP is the IP address of the target.

    When you enter the iscsiadm command, the host discovers the target specified by the targetip variable. The iscsiadm utility displays each target it discovers on a separate line. It stores the values associated with the target in an internal persistent database.
  2. Enter the following command to create all needed devices: iscsiadm --mode node -l all
    The initiator logs in to the discovered nodes that are maintained in the iSCSI database.
  3. Enter the following command to see all the active iSCSI sessions:iscsiadm --mode session
    The following is a sample of the output this command produces:
    tcp: [1],1040 (non-flash)

    1 is the record ID.