Logging in to discovered targets

You can connect to a specific portal on a discovered target by using the iscsiadm command.

About this task

The system supports only one iSER session between an initiator and a target. Ensure that you do not attempt to connect to the same target node more than once.

Procedure

Log in the iSER initiator to your selected system targets by using the following appropriate command examples for RHEL:

If you are logging into a 2-port 25 Gbps Ethernet (RoCE) adapter on node1, enter the following command:

iscsiadm --mode node --targetname target_IQN --portal x.x.x.x:3260 --login

For example: iscsiadm --mode node --targetname iqn.1986-03.com.ibm:2145.cluster10g1.node1 --portal 192.168.64.191:3260 --login.

Or, if you are logging into a 2-port 25 Gbps Ethernet (iWARP) adapter on node2, enter the following command:
iscsiadm --mode node --targetname target_IQN --portal x.x.x.x:860 --login

For example: iscsiadm --mode node --targetname iqn.1986-03.com.ibm:2145.cluster10g1.node2 --portal 192.168.64.191:860 --login.

Results

When the login command completes, the host can access the volumes that are mapped to the host from the target after the SCSI devices are rescanned.