Setting up iSCSI initiator on Fedora 25


Now, After the iSCSI Target is configured see the previous post ” “, you can start configuring the iSCSI Initiator. In order to do this we will proceed to a few steps:
1- Setting iSCSI Initiator name.
Access to the iSCSI Target is based on the initiator name which is configured on iSCSI nodes where the iscsi-initiator-utils package installed. While setting an initiator name manually, make sure that you follow the syntax restrictions as it must start with IQN, followed by four digit year, followed by two digit month and the inverted DNS name of your domain which is followed by a unique identifier of the initiator.

2- Performing the Discovery.
When using iSCSI discovery you need three arguments:
–Type sendtargets:  This show to the discovery mode how to find the iSCSI target.
–portal: This one tells the discovery mode which IP address and port to address to perform the discovery.
–discover: It tells the iscsid service to perform a discovery.

Now, Let us proceed to the steps.
On the Fedora machine, install the software that you need to perform the iSCSI connection.

Discover the iSCSI target using it’s IP address.

Connect to the iSCSI Target.

The iSCSI devices will be available now, to show all disks type the following.

create the file system.

Get the UUID from the filesystem you have just created.

create a mount point for the iSCSI target.

add the UUID in the fstab configuration file.

Now you can mount the iSCSI disk.

Finally, you have the iSCSI automounted on your Fedora 25.


Please enter your comment!
Please enter your name here