Table of ContentsView in Frames

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

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, 11, or 12 series. The utility enables you to perform a set of operations on iSCSI nodes, sessions, connections, and discovery records.

Steps

  1. Discover the iSCSI target: iscsiadm --mode discovery --op update --type sendtargets --portal targetIP

    targetIP is the IP address of the target.

    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. 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. See all of the active iSCSI sessions: iscsiadm --mode session
    Example
    The following sample output shows that 1 is the record ID:
    tcp: [1] 10.10.10.10:3260,1040 iqn.1992-08.com.netapp:sn.5d35f5e7ed9711e3ba53123478563412:vs.10 (non-flash)