How to Setup Data-Centers with Cluster and Add ISCSI Storage in Linux

To Setup Data-Centers with Cluster and Add ISCSI Storage in Linux

Data Center consists of Clusters that contains a set of nodes. All the storage domains are attached to Data Center. Multiple data centers in the same infrastructure could be managed separately by the same RHEVM portal. How to setup Data-centers with cluster and add ISCSI storage is explained in this article.


To create a Data center and cluster

Select Data center and click New

Enter the Name and select the storage type as shared and click OK


Click Configure cluster

Give a Name for the cluster and select the CPU type of your system and click OK

Select the Hosts tab and select the unconfigured host and click Approve button.

Select the data center and cluster then click OK.

Now you can see the status is changed from pending approval to installing.

Once the installation is completed, the status changes from installing to up.

To Create a ISCSI storage node

Switch on the Centos 6.7 machine and open the terminal.
Install the scsi-target-utils package

[root@linuxhelp Desktop]# yum install scsi-target-utils
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
.
.
.
Installed:
  scsi-target-utils.x86_64 0:1.0.24-18.el6                                      
Dependency Installed:
  libibverbs.x86_64 0:1.1.8-4.el6            librdmacm.x86_64 0:1.0.21-0.el6   
  perl-Config-General.noarch 0:2.52-1.el6    sg3_utils.x86_64 0:1.28-12.el6    
Dependency Updated:
  sg3_utils-libs.x86_64 0:1.28-12.el6                                           
Complete!

Open the scsi configuration file, and add the following lines at the end.

[root@linuxhelp Desktop]# vim /etc/tgt/targets.conf
< target iqn.2015-07.org.mydomain:server.target1> 
backing-store /dev/sdb
< /target> 

Save the file and then start the tgtd service.

[root@linuxhelp Desktop]# service tgtd start
Starting SCSI target daemon:                               [  OK  ]
[root@linuxhelp Desktop]# chkconfig tgtd on

Go to the Virtualisation manager and select Data-center storage tab. Click new domain and enter the iscsi details as shown below.
Select the discover targets and enter the ip address of the centos machine and click discover.

Now select the iscsi storage and click login

Select the ISCSI storage disk and click OK

Now the ISCSI storage is successfully added to the node.

FAQ
Q
What is the difference between the storage routers and regular routers?
A
Storage Routers have additional features that only apply to Storage Area Networks (SANs). The primary one being support for iSNS to facilitate device discovery, access control, and heartbeat monitoring. Some storage routers also have the ability to convert between interfaces, such as SCSI-iSCSI, or Fibre Channel - iSCSI.
Q
What is main terms of using iSCSI?
A
The iSCSI standard is a new protocol that layers on top of TCP and is designed to transport SCSI commands and data across an IP network, most commonly across Ethernet.
Q
Who is developing the iSCSI standard?
A
The iSCSI standard is being developed by a working group under the Internet Engineering Task Force (IETF). This group is best known for its RFCs, which are documents that set standards for the Internet. The iSCSI documents should be released from the working group in mid-2002, and become official RFCs about a year later.
Q
What does an iSCSI device look like to the operating system?
A
From a software perspective, an iSCSI device looks just like a locally-attached SCSI drive. The SCSI commands are intercepted and directed to the iSCSI layer. They are encapsulated, then sent out as TCP packets. At the far end the reverse happens, so a SCSI command arrives at the device.
Q
Does the regular Ethernet switches work with iSCSI?
A
From the network perspective, iSCSI traffic just looks like another IP packet. All existing Ethernet switches and IP routers work transparently.