How to Login iSCSI Target

This article explains how to login iSCSI target.

  1. Discover available targets from a discovery portal :
    iscsiadm -m discovery -t sendtargets -p ipaddress
  2. Log into a specific target:
    iscsiadm -m node -T targetname -p ipaddress -l
  3. Log into all targets:
    iscsiadm -m node -l
  4. Display a list of all current sessions logged in:
    iscsiadm -m session