<div dir="ltr">After following the guide, I've successfully managed to get Apache server up and running in the cluster as an active/passive setup, but with some differences. My cluster stack is stated as being cman while the guide's is openais. Not sure if that's a problem. Also, some commands in the guide don't seem to work.<br><br>I'm moving on to DRBD installation now, but when I do a "yum install drbd-pacemaker drbd-udev", these packages are not available. After some googling, it seems that drbd83-utils/kmod-drbd83 or drbd84-utils/kmod-drbd84 is available via another repo. Does this work with the guide?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 9:35 AM, Sihan Goi <span dir="ltr"><<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>Thanks for the guide! I thought I had the same exact version...mine is also named "Pacemaker 1.1 Clusters from Scratch Creating Active/Passive and Active/Active Clusters on Fedora Edition 5", but my version of the document is meant for Fedora 17, and uses pcs and systemctl calls which don't exist on CentOS 6.5. I was trying to get it to work on CentOS 7 but realized support for DRBD on CentOS 7 is really lacking.<br><br>I'll refer to the version you posted from hereon.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 11:43 PM, Digimer <span dir="ltr"><<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Let pacemaker start cman/corosync on EL6.<br>
<br>
This is the guide that covers it, written by Pacemaker's author:<br>
<br>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_from_Scratch/index.html" target="_blank">http://clusterlabs.org/doc/en-<u></u>US/Pacemaker/1.1-plugin/html-<u></u>single/Clusters_from_Scratch/<u></u>index.html</a><br>
<br>
It notes that it's based on Fedora 13, but that maps to EL6 almost perfectly.<br>
<br>
A very slightly altered approach is here, in my *very* unfinished tutorial:<br>
<br>
<a href="https://alteeve.ca/w/Anvil!_Tutorial_3_on_EL6#Configuring_the_Anvil.21" target="_blank">https://alteeve.ca/w/Anvil!_<u></u>Tutorial_3_on_EL6#Configuring_<u></u>the_Anvil.21</a><br>
<br>
The main difference is that Andrew's approach (see section 8.2.2) is to disable quorum via editing /etc/sysconfig/cman, where my approach handles it in the main /etc/cluster/cluster.conf (cman's main config file).<br>
<br>
In any case, from then on, start pacemaker and let it handle everything else.<br>
<br>
Cheers<br>
<br>
digimer<span><br>
<br>
On 15/10/14 04:27 AM, Sihan Goi wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
Hi,<br>
<br>
So I've decided to make things simpler and go with a wired network<br>
instead of wireless. I connected both boxes to a router, manually edited<br>
the ifcfg-eth0 files to set static IP addresses for both boxes (not<br>
before downloading and building a driver for the nic of 1 of the boxes),<br>
did a "chkconfig NetworkManager off", "service NetworkManager stop", and<br>
"service network restart".<br>
<br>
I'm able to ping each other via IP address and hostname. I also already<br>
have corosync, pacemaker, crmsh and cman installed.<br>
<br>
I then did the following as per the guide at<br>
<a href="http://geekpeek.net/linux-cluster-corosync-pacemaker" target="_blank">http://geekpeek.net/linux-<u></u>cluster-corosync-pacemaker</a><br>
<br>
service corosync start - success.<br>
service pacemaker start - I get a "Starting cman...corosync cluster<br>
engine is already running [FAILED]"<br>
<br>
What's up? :(<br>
<br>
On Oct 15, 2014 12:23 PM, "Sihan Goi" <<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a><br></span><span>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>>> wrote:<br>
<br>
No typo.<br>
<br>
[root@node02 network-scripts]# ls -lah<br>
/etc/sysconfig/network-<u></u>scripts/ifcfg-*<br>
-rw-r--r--. 1 root root 254 Oct 10 2013<br>
/etc/sysconfig/network-<u></u>scripts/ifcfg-lo<br>
<br>
I installed CentOS 6.5 with the LiveDVD. I found it weird as well<br>
that these files were missing.<br>
<br>
On Wed, Oct 15, 2014 at 11:54 AM, Digimer <<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a><br></span><span>
<mailto:<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>>> wrote:<br>
<br>
Sure there isn't a typo there?<br>
<br></span>
an-c05n01:~# ls -lah /etc/sysconfig/network-__<u></u>scripts/ifcfg-*<span><br>
-rw-r--r--. 1 root root 225 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-bond0<span><br>
-rw-r--r--. 1 root root 220 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-bond1<span><br>
-rw-r--r--. 1 root root 198 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-bond2<span><br>
-rw-r--r--. 1 root root 149 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth0<span><br>
-rw-r--r--. 1 root root 144 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth1<span><br>
-rw-r--r--. 1 root root 152 Mar 14 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth2<span><br>
-rw-r--r--. 1 root root 149 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth3<span><br>
-rw-r--r--. 1 root root 144 Jan 16 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth4<span><br>
-rw-r--r--. 1 root root 152 Mar 14 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-eth5<span><br>
-rw-r--r--. 1 root root 254 Jul 22 09:56<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-lo<span><br>
-rw-r--r--. 1 root root 213 Mar 13 2013<br></span>
/etc/sysconfig/network-__<u></u>scripts/ifcfg-vbr2<span><br>
<br>
I've never seen an EL6 install without the files there,<br>
'network' or NetworkManager aside.<br>
<br>
digimer<br>
<br>
On 14/10/14 11:32 PM, Sihan Goi wrote:<br>
<br>
There aren't any config files in<br></span>
/etc/sysconfig/network-__<u></u>scripts. When I<span><br>
was using CentOS 7, the config files were there<br>
(ifcfg-something) but in<br>
this CentOS 6.5 installation, they are missing.<br>
<br>
If is possible to not use cman, and just use corosync and<br>
pacemaker? If<br>
so, how?<br>
<br>
On Wed, Oct 15, 2014 at 11:22 AM, Digimer <<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a><br>
<mailto:<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>><br></span><span>
<mailto:<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a> <mailto:<a href="mailto:lists@alteeve.ca" target="_blank">lists@alteeve.ca</a>>>> wrote:<br>
<br>
You can manually configure the wireless LAN without<br>
NetworkManager.<br>
If you take a look, there should be existing config<br>
files in<br></span>
/etc/sysconfig/network-____<u></u>scripts/ for the wireless<div><div><br>
connection. I've<br>
not done it myself since many Fedora's ago, but I<br>
believe you can<br>
change NMCONTROLLER="no" and then start it up with<br>
/etc/sysconfig/network start. I could be a bit wrong,<br>
but I am sure<br>
you can make wireless work without NM.<br>
<br>
Question; Servers with WLAN? I assume these won't be<br>
used for corosync?<br>
<br>
digimer<br>
<br>
<br>
On 14/10/14 11:17 PM, Sihan Goi wrote:<br>
<br>
Hi,<br>
<br>
Is there a tutorial showing how to get a basic<br>
Linux HA setup with<br>
replicated storage (via DRBD) working on CentOS<br>
6.5? I want to have<br>
mySQL as the HA resource with the database<br>
replicated across the<br>
nodes.<br>
I've scoured the web for one but it seems that I<br>
get stuck in<br>
each one<br>
somewhere.<br>
<br>
To elaborate, I have 2 CentOS 6.5 nodes configured<br>
with distinct<br>
hostnames and static IPs. They are connected to a<br>
wireless AP,<br>
and can<br>
ping each other.<br>
<br>
I tried following this guide -<br></div></div>
<a href="http://clusterlabs.org/____quickstart-redhat.html" target="_blank">http://clusterlabs.org/____<u></u>quickstart-redhat.html</a><br>
<<a href="http://clusterlabs.org/__quickstart-redhat.html" target="_blank">http://clusterlabs.org/__<u></u>quickstart-redhat.html</a>><div><div><br>
<<a href="http://clusterlabs.org/__quickstart-redhat.html" target="_blank">http://clusterlabs.org/__<u></u>quickstart-redhat.html</a><br>
<<a href="http://clusterlabs.org/quickstart-redhat.html" target="_blank">http://clusterlabs.org/<u></u>quickstart-redhat.html</a>>><br>
However, cman will not start when NetworkManager is<br>
running, and my<br>
nodes cannot connect to the wireless AP without<br>
NetworkManager<br>
running.<br>
Am I missing something or is that the stupidest<br>
dependency ever?<br>
How is<br>
a cluster supposed to work when the nodes aren't<br>
connected to<br>
one another?<br>
<br>
I also tried following the "clusters from scratch"<br>
guide but<br>
that seems<br>
to rely on systemctl calls which aren't available<br>
on CentOS 6.5.<br>
<br>
Any help?<br>
<br>
--<br>
- Goi Sihan<br>
<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>><br>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>>><br>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a><br>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a><br></div></div>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>>>><br>
<br>
<br>
______________________________<u></u>_____________________<span><br>
Pacemaker mailing list:<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br></span>
<mailto:<a href="mailto:Pacemaker@oss." target="_blank">Pacemaker@oss.</a>__<a href="http://clusterlabs.org" target="_blank">cluste<u></u>rlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>>><br>
<a href="http://oss.clusterlabs.org/____mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/___<u></u>_mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a>><span><br>
<br>
<<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>>><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started:<br></span>
<a href="http://www.clusterlabs.org/____doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/___<u></u>_doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a>><span><br>
<br>
<<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>>><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" target="_blank">https://alteeve.ca/w/</a><br>
What if the cure for cancer is trapped in the mind of a<br>
person<br>
without access to education?<br>
<br></span>
______________________________<u></u>_____________________<span><br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br></span>
<mailto:<a href="mailto:Pacemaker@oss." target="_blank">Pacemaker@oss.</a>__<a href="http://clusterlabs.org" target="_blank">cluste<u></u>rlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>>><br>
<a href="http://oss.clusterlabs.org/____mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/___<u></u>_mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a>><span><br>
<br>
<<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>>><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started:<br></span>
<a href="http://www.clusterlabs.org/____doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/___<u></u>_doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a>><div><div><br>
<br>
<<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>>><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
--<br>
- Goi Sihan<br>
<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>><br>
<mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>>><br>
<br>
<br>
______________________________<u></u>___________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br>
<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started:<br>
<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
--<br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" target="_blank">https://alteeve.ca/w/</a><br>
What if the cure for cancer is trapped in the mind of a person<br>
without access to education?<br>
<br>
______________________________<u></u>___________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br>
<a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><br>
<<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started:<br>
<a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><br>
<<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
--<br>
- Goi Sihan<br>
<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a> <mailto:<a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
</div></div></blockquote><div><div>
<br>
<br>
-- <br>
Digimer<br>
Papers and Projects: <a href="https://alteeve.ca/w/" target="_blank">https://alteeve.ca/w/</a><br>
What if the cure for cancer is trapped in the mind of a person without access to education?<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>- Goi Sihan<br><a href="mailto:goister@gmail.com" target="_blank">goister@gmail.com</a>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>- Goi Sihan<br><a href="mailto:goister@gmail.com">goister@gmail.com</a>
</div>