ISCSI configuration / multipath initiator on Linux RHEL 6 / CentOS 6

In this share, I will share a little of my knowledge about the implementation of hard disk uses using scsi-target-utils and initiator-utilities in RHEL / CentOS / Fedora Linux OS. Where in making the ISCSI hard drive, later in the next article we will use it for High availability Cluster Web Server storage server. For the installation and configuration of the hard drive on RHEL / CentOS / Fedora, as follows:

First prepare an LVM / normal partition that will be used for the disk drive, in this example LVM, using the name Volume Group = vgdata Logical Volume = iscsi-storage
Install the packages needed in making hard drive configuration:

Edit file initiatorname.iscsi pada folder /etc/iscsi/ dan set iscsi hostname:

add the following code:

Add configuration in /etc/tgt/targets.conf:

enter/add the following code:

Jalankan service SCSI target daemon:

It’s time to check the results of our ISCSI work:

Add iscsi hard drive via network:

Up to this stage, the workload of the hard disk has been completed, you can use it for your data storage needs. If you want to combine with a multipath method, do the following Multipath configuration:

Create and configure multipath.conf files

comment code /etc/multipath.conf, so that it looks like this:

un-comment and adjust the following code:


Update the kernel multipath module, run the iscsi and multipathd service:

Next, if you want to format the file system, do the following on the Iscsi hard drive that has been created:

If you are using Windows 7, do the following for mounting an ISSSI hard drive that has been created:
* Administrative Tools => Computer Management => Storage => Disk management