Jump to content

GSTN - Printer HA

From TetraWiki
Revision as of 09:10, 2 February 2019 by Praveen (talk | contribs) (Created page with "category:GSTN <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Printer HA(High Availability)

Date : 12.09.2016

Document Version : 1.0




Table of Contents:Installing Redhat Cluster Software4

1. YUM Repository configuration.4
Installing Cluster Packages on Nodes5
Enable & Start  the Services on both the Nodes:6
Configure corosync & Create new cluster:7

Template:Anchor Installing Redhat Cluster Software[edit]

Redhat cluster software (Pacemaker) is available in the RHEL 7.2 ISO image as an Add-on Package so I have installed cluster software from local repository.

Template:Anchor 1. YUM Repository configuration.[edit]

To configure local repository create a file /etc/yum.repos.d/local.repo and make below entries on both nodes.

In this configuration baseurl is shared through http.

[local]

name=local

baseurl=http://172.18.102.14/RHEL7.2/

gpgcheck=0

enabled=0


[repo-ha]

gpgcheck=0

enabled=0

baseurl=http://172.18.102.14/RHEL7.2/addons/HighAvailability

name=repo-ha


[repo-storage]

gpgcheck=0

enabled=0

baseurl=http://172.18.102.14/RHEL7.2/addons/ResilientStorage

name=repo-storage



Template:Anchor 2. Installing Cluster Packages on Nodes[edit]

Login to the RHEL 7.2 node as root user. Execute the following command to install the cluster packages and it’s dependencies. Corosync will install along with pacemaker.

#yum install pacemaker pcs


Template:Anchor 3. Enable & Start  the Services on both the Nodes:[edit]

Login to both the cluster nodes as root user.

Enable the pcsd daemon on both the nodes to start automatically across the reboot.

# systemctl start pcsd.service
# systemctl enable pcsd.service
# systemctl status pcsd.service



Set the new password for cluster user “hacluster” on both the nodes.


On frist node:
# passwd hacluster
On second node:
# passwd hacluster

Template:Anchor 4. Configure corosync & Create new cluster:[edit]

Login to any of the cluster node and authenticate “hacluster” user.
# pcs cluster auth gd9103 gd9104
Create a new cluster using pcs command.
# pcs cluster setup –name PrinterCL gd9103 gd9104


Start the cluster using pcs command. “–all” will start the cluster on all the configured nodes.
# pcs cluster start --all
Check the cluster services status.
# pcs cluster status



Check the corosync communication status.


Print server cluster IPV4 is 172.18.101.33 and IPV6 is 2404:a800:1000:d:7800::21.

To manage cluster open web GUI link https://gdprinter.gstn.local:2224.