The iSCSI Initiator or client on RHEL 7 is installed with the iscsi-initiator-utils
package; you can verify that this is installed on your system using the yum
command, as shown in the following example:
$ yum list iscsi-initiator-utils
If it's listed as Installed
, all well and good, but if it's listed as Available
, you will need to install it.
For the purpose of this exercise, we will use a separate RHEL 7 system as our initiator and connect it to the existing target. We will need to edit the /etc/iscsi/initiatorname.iscsi
file on the new RHEL 7 system to ensure that the name is set to match the name we added to the ACL in the earlier section of this chapter; we can display this using the cat
command, as shown in the following screenshot:
We will use the main client tool: iscsiadm
. This was installed with the previously mentioned package. To discover iSCSI LUNS on the target, we will use the following command:
$ sudo iscsiadm --mode discovery --type sendtargets...