Configure Red Hat Cluster Using VMware, Quorum Disk, GFS2, Openfiler GoLinuxHub
Configure Red Hat Cluster Using VMware, Quorum Disk, GFS2, Openfiler GoLinuxHub
HOME ABOUT ME CONTENT LINUX BASICS LINUX » VMWARE » DATABASE » INTERVIEW QUESTIONS » CONTACT ME
Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler Search
POSTED BY DEEPAK PRASAD WEDNESDAY, FEBRUARY 26, 2014 1 COMMENT
These are the things which I would be using as per my lab setup:
TOTAL PAGEVIEWS
VMware Workstation 10 (any version is fine above 8)
CentOS 6.5 - 64 bit (You can use either 32 or 64 bit and also if you use earlier versions, 224141
some rpm and packages would differ for any version below 6.0)
Openfiler 2.99 - 64 bit LIKE US ON FACEBOOK FOR ALL UPDATES
1 Node for Management Interface with CentOS 6.5 - 64 bit INTERV IEW QUESTIONS ON LINUX PERMISSIONS W ITH
Node 1 ANSW ERS
Openfiler
Hostname: of.storage
IP Address: 192.168.1.8
Before moving to start with the configuration of cluster and cluster nodes let us prepare our
openfiler with iSCSI storage.
Login to the web console of your openfiler storage (assuming that you have successfully installed
openfiler with sufficient free space for cluster storage)
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 1/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
Here I have written one more article on configuration of openfiler which you can use for reference
if you face any issues understanding me here as I will be very brief
Configuring iSCSI storage using openfiler
Create a new partition with the below shown options for the available disk. Mention a cylinder
value for the partition
Next is to create a new Logical Volume. Create 2 Logical Volumes with custom size as per your
requirement.
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 2/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
On the home page of system create a ACL for the subnet which will try to access the openfiler
storage. For my case the subnet is 192.168.1.0 so I will add a new entry for the same with relative
subnet mask.
Next Add iscsi target for the first disk i.e. quorum volume. You can edit the iscsi target value with
custom name as I have done for my case so that it becomes easier for me to understand
Next map the volume to the iSCSI target. For quorum target select quorum partition and click on
Map as shown below
Do the same steps for SAN volume also as we did for quorum volume above. Edit the target value as
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 3/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
shown below
Map the volume to the iSCSI target as shown in the figure below. Be sure to the map the correct
volume
Allow the ACL for that particular target in Network ACL section
What is Conga?
Conga is an integrated set of software components that provides centralized configuration and
management of Red Hat clusters and storage. Conga provides the following major features:
One Web interface for managing cluster and storage
Automated Deployment of Cluster Data and Supporting Packages
Easy Integration with Existing Clusters
No Need to Re-Authenticate
Integration of Cluster Status and Logs
Fine-Grained Control over User Permissions
The primary components in Conga are luci and ricci, which are separately installable. luci is a server
that runs on one computer and communicates with multiple clusters and computers viaricci. ricci is
an agent that runs on each computer (either a cluster member or a standalone computer) managed
by Conga
On node3:
Run the below command to install all the Clustering related packages
[root@node3 ~]# yum groupinstall "High Availability Management" "High Availability"
As you see as soon as we gave the discovery command with openfiler IP address, the iSCSi targets
got discovered automatically as configured on openfiler
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 4/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
Now restart the iscsi service once again to refresh the settings
[root@node1 ~]# service iscsi restart
Stopping iscsi: [ OK ]
Starting iscsi: [ OK ]
On node1
[root@node1 ~]# mkqdisk -c /dev/sdb -l quorum
mkqdisk v3.0.12.1
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 5/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
Initializing status block for node 14...
Initializing status block for node 15...
Initializing status block for node 16...
On node2
[root@node2 ~]# mkqdisk -c /dev/sdb -l quorum
mkqdisk v3.0.12.1
Explanation:
Formatting filesystem: GFS2
Locking Protocol: lock_dlm
Cluster Name: cluster1
FileSystem name: GFS
Journal: 2
Partition: /dev/sdc
Device: /dev/sdc
Blocksize: 4096
Device Size 10.34 GB (2711552 blocks)
Filesystem Size: 10.34 GB (2711552 blocks)
Journals: 2
Resource Groups: 42
Locking Protocol: "lock_dlm"
Lock Table: "cluster1:GFS"
UUID: 2ff81375-31f9-c57d-59d1-7573cdfaff42
Device: /dev/sdc
Blocksize: 4096
Device Size 10.34 GB (2711552 blocks)
Filesystem Size: 10.34 GB (2711552 blocks)
Journals: 2
Resource Groups: 42
Locking Protocol: "lock_dlm"
Lock Table: "cluster1:GFS"
UUID: 9b1cae02-c357-3634-51a3-d5c35e79ab58
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 6/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
Click on Create
Provide the following details for the clusterCluster name: Cluster1(As provided above)
Node Name: node1.cluster (192.168.1.5) Make sure that hostname is resolvable
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 7/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
node2.cluster (192.168.1.6) Make sure that hostname is resolvable
Password: As provided for agent ricci in Step 6
Check Shared storage box as we are using GFS2
Once you click on submit, the nodes will start the procedure to add the nodes (if everything goes
correct or else it will throw the error)
Now the nodes are added but they are shown in red color. Let us check the reason behind it. Click
on any of the nodes for more details
So the reason looks like most of the services are not running . Let us login to the console and start
the services
IMPORTANT NOTE: If you are planning to configure Red Hat Cluster then make sure NetworkManager
service is not running
[root@node1 ~]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 8/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
Now once all the services have started, let us refresh the web console and see the changes
So all the services are running and there is no more warning message on either cluster or the nodes
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 9/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
If everything goes fine you should be able to see the below message
Give a name to your failover domain and follow the setting as shown below
Select GFS2 from the drop down menu and fill in the details
Name: Give any name
Mount Point: Before giving the mount point make sure it exists on both the nodes
Next fill in the device details which we formatted for GFS2 i.e. /dev/sdc
Check the Force Unmount box and click on Submit
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 10/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
You will see the below box on your screen. Select the Resource we created in Step 11.
As soon as you select GFS, all the saved setting under GFS resource will be visible under service
group section as shown below. Click on Submit to save the changes
Once you click on submit, refresh the web console and you should be able to see the GFS service
running on your cluster on any of the node as shown below
13. Verification
On node1
[root@node1 ~]# clustat
Cluster Status for cluster1 @ Wed Feb 26 00:49:04 2014
Member Status: Quorate
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 11/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
/dev/block/8:16 0 Online, Quorum Disk
So, if GFS is running on node1 then GFS should be mounted on /GFS on node1. Let us verify
[root@node1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-root 8.7G 3.4G 5.0G 41% /
tmpfs 495M 32M 464M 7% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/sr0 4.2G 4.2G 0 100% /media/CentOS_6.5_Final
/dev/sdc 11G 518M 9.9G 5% /GFS
On node2
[root@node2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-root 8.7G 3.4G 5.0G 41% /
tmpfs 495M 32M 464M 7% /dev/shm
/dev/sda1 194M 30M 155M 16% /boot
/dev/sr0 4.2G 4.2G 0 100% /media/CentOS_6.5_Final
/dev/sdc 11G 518M 9.9G 5% /GFS
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 12/13
26/5/2014 Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler ~ GoLinuxHub
References
Red Hat Enterprise Cluster
Related Articles
Configuring iSCSI storage using openfiler
How to install openfiler
Overview of services used in Red Hat Cluster
1 comments:
Reply
Publish Preview
http://www.golinuxhub.com/2014/02/configure-red-hat-cluster-using-vmware.html 13/13