Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
GSTN - Printer HA
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:GSTN]] <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> '''Printer HA(High Availability) ''' Date : 12.09.2016 Document Version : 1.0 Table of Contents:[[#RefHeading287469537016|Installing Redhat Cluster Software4]] :[[#RefHeading289469537016|1. YUM Repository configuration.4]] ::[[#RefHeading291469537016|Installing Cluster Packages on Nodes5]] ::[[#RefHeading293469537016|Enable & Start the Services on both the Nodes:6]] ::[[#RefHeading295469537016|Configure corosync & Create new cluster:7]] == {{anchor|RefHeading287469537016}} Installing Redhat Cluster Software == 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. == {{anchor|RefHeading289469537016}} 1. YUM Repository configuration. == 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'' <div style="color:#00000a;">[[Image:GSTNPRINTER1.png]]</div> == {{anchor|RefHeading291469537016}} 2. Installing Cluster Packages on Nodes == 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. <nowiki>#yum install pacemaker pcs</nowiki> <div style="color:#00000a;">[[Image:GSTNPRINTER2.png]]</div> == {{anchor|RefHeading293469537016}} 3. Enable & Start the Services on both the Nodes: == Login to both the cluster nodes as root user. Enable the pcsd daemon on both the nodes to start automatically across the reboot. <div style="color:#00000a;">''<nowiki># systemctl start pcsd.service</nowiki>''</div> <div style="color:#00000a;">''<nowiki># systemctl enable pcsd.service</nowiki>''</div> <div style="color:#00000a;">''<nowiki># </nowiki>systemctl status pcsd.service''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER3.png]]</div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;">Set the new password for cluster user ''“hacluster”'' on both the nodes.</div> <div style="color:#00000a;">On frist node:</div> <div style="color:#00000a;">''<nowiki># passwd hacluster</nowiki>''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER4.png]]</div> <div style="color:#00000a;">On second node:</div> <div style="color:#00000a;">''<nowiki># passwd hacluster</nowiki>''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER5.png]]</div> == {{anchor|RefHeading295469537016}} 4. Configure corosync & Create new cluster: == <div style="color:#00000a;">Login to any of the cluster node and authenticate “''hacluster”'' user.</div> <div style="color:#00000a;">''<nowiki># pcs cluster auth gd9103 gd9104</nowiki>''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER6.png]]</div> <div style="color:#00000a;">Create a new cluster using pcs command.</div> <div style="color:#00000a;"><nowiki># </nowiki>''pcs cluster setup –name PrinterCL gd9103 gd9104''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER7.png]]</div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;"></div> <div style="color:#00000a;">Start the cluster using pcs command. ''“–all” ''will start the cluster on all the configured nodes.</div> <div style="color:#00000a;">''<nowiki># pcs cluster start --all</nowiki>''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER8.png]]</div> <div style="color:#00000a;">Check the cluster services status.</div> <div style="color:#00000a;">''<nowiki># pcs cluster status</nowiki>''</div> <div style="color:#00000a;">[[Image:GSTNPRINTER9.png]]</div> <div style="color:#00000a;">Check the corosync communication status.</div> <div style="color:#00000a;">[[Image:GSTNPRINTER10.png]]</div> 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/ https://gdprinter.gstn.local:2224].'''
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Anchor
(
edit
)