Pacemaker Corosync Nginx Cluster - Linux Tutorial
Pacemaker Corosync Nginx Cluster - Linux Tutorial
Itisasnapshotofthe
pageasitappearedon28May201607:36:02GMT.
Thecurrentpagecouldhavechangedinthemeantime.Learnmore
Fullversion
Textonlyversion
Viewsource
Tip:Toquicklyfindyoursearchtermonthispage,pressCtrl+ForF(Mac)andusethefindbar.
Enable autostart
[alex@test01~]$systemctlenablepcsdsystemctlenablecorosyncsystemctlenable
pacemaker
[alex@test02~]$systemctlenablepcsdsystemctlenablecorosyncsystemctlenable
pacemaker
Start pacemaker
[alex@test01~]$systemctlstartpcsd
[alex@test02~]$systemctlstartpcsd
agents/master/heartbeat/nginx
[alex@test01~]$chmod755nginx
[alex@test02~]$cd/usr/lib/ocf/resource.d/heartbeat
[alex@test02~]$wgethttps://raw.githubusercontent.com/ClusterLabs/resource
agents/master/heartbeat/nginx
[alex@test02~]$chmod755nginx
Set password
[alex@test01~]$sudopasswdhacluster
[alex@test02~]$sudopasswdhacluster
Disable STONITH
[alex@test01~]$sudopcspropertysetstonithenabled=false
[alex@test01~]$sudopcspropertysetnoquorumpolicy=ignore
Add rules:
[alex@test01~]$sudopcsconstraintcolocationaddwebservervirtual_ipINFINITY
[alex@test01~]$sudopcsconstraintordervirtual_ipthenwebserver
[alex@test01~]$sudopcsconstraintlocationwebserverpreferstest01=50
[alex@test01~]$sudopcsclusterstopall&&sudopcsclusterstartall
troubleshooting
[alex@test01~]$sudopcsstatusnodes
[alex@test01~]$sudocorosynccmapctl|grepmembers
[alex@test01~]$sudopcsstatuscorosync
[alex@test01~]$sudocrm_verifyLV
[alex@test01~]$sudopcsstatuscluster
This entry was posted in install tutorial on October 21, 2015 [http://www.alexlinux.com/pacemakercorosync-nginx-cluster/] .