Creating gfs cluster


title: “Creating gfs cluster”
date: 2016-01-28T13:37:46
slug: creating-gfs-cluster


On each node:

yum -y install lvm2-cluster pacemaker pcs gfs2-utils

Start and enable the daemon by issuing the following commands on each node.

systemctl start pcsd.service
systemctl enable pcsd.service

As Root set a password for hacluster:

passwd hacluster
password:

Auf dem primary node:

pcs cluster auth RHEL centos
Username: hacluster
Password:
RHEL: Authorized
centos: Authorized

 pcs cluster setup --name mycluster RHEL centos
Shutting down pacemaker/corosync services...
Redirecting to /bin/systemctl stop pacemaker.service
Redirecting to /bin/systemctl stop corosync.service
Killing any remaining services...
Removing all cluster configuration files...
RHEL: Succeeded
centos: Succeeded
Synchronizing pcsd certificates on nodes RHEL, centos...
RHEL: Success
centos: Success

Restaring pcsd on the nodes in order to reload the certificates...
RHEL: Success
centos: Success

That’s it. Corosync is configured across the cluster.

Start the cluster

pcs cluster start

Start Cluster on all nodes

pcs cluster start --all

Check Status

pcs cluster status

Verify Corosync Installation

corosync-cfgtool -s
mkfs -t gfs2 -p lock\_dlm -j 2 -t one:test /dev/<drbd-resource>
lvmconf --enable-cluster
systemctl reboot
Print Friendly, PDF & Email