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.
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.
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.
Thank you! for using Linux Help.
You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.