How to Configure Iscsi Client (Initiator) on Centos 7


In this tutorial we will show you how to configura iscsi client or initiator on Centos 7. For you don’t know iSCSI ,iSCSI is an acronym for Internet Small Computer Systems Interface, it provides block-level access to storage devices by carrying SCSI commands over a TCP/IP network.


This article assumes you have at least basic knowledge of linux, know how to use the shell, root user or non-root user account with sudo privileges set up on your server.


To configure iSCSI initiator we need to install package using yum

After installation we need to start the iscsid service


  • The iscsid service is the main service that accesses all configuration files involved
  • The iscsi service is the service that establishes the iSCSI connections



For the example iscsi server (target) ip address is

Step 1 – Discovery targets

Example output

Step 2 – Log in into discovered target

From the step 1 we found the discovered target has target name iqn.2017-06.local.rhce.ipa:data1

login into discovered target using ip and target name

Step 3 – Check session

Check your iscsi client session using this command below

Step 4 – File system format

Let’s assume that you was never format your iscsi target before.

Check your iscsi disk using command below

Example output

From the command above we see the iscsi disk was exist in path /dev/sdb

We need format the iscsi using this command below

Create a mount point and get UUID

Add the following to /etc/fstab

Finally , mount the iscsi drive


You can log out your iscsi session using this command below

If something go wrong , you can stop the iscsi and iscsid service and clean up this folder below

It will wipe all iscsi session configuration


Congratulations, you have successfully configure iscsi client (initiator) on Centos 7. Thanks for using this tutorial for configuring iscsi client (initiator) on Centos 7

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *