[Pacemaker] Linux HA setup for CentOS 6.5

Andrew Beekhof andrew at beekhof.net
Wed Oct 15 17:21:34 EDT 2014


On 15 Oct 2014, at 7:27 pm, Sihan Goi <goister at gmail.com> wrote:

> Hi,
> 
> So I've decided to make things simpler and go with a wired network instead of wireless. I connected both boxes to a router, manually edited the ifcfg-eth0 files to set static IP addresses for both boxes (not before downloading and building a driver for the nic of 1 of the boxes), did a "chkconfig NetworkManager off", "service NetworkManager stop", and "service network restart".
> 
> I'm able to ping each other via IP address and hostname. I also already have corosync, pacemaker, crmsh and cman installed.
> 
> I then did the following as per the guide at http://geekpeek.net/linux-cluster-corosync-pacemaker
> 
> service corosync start - success.

don't do this.
either just 'service pacemaker start' or, if you must, run 'service cman start' instead.

cman != corosync

> service pacemaker start - I get a "Starting cman...corosync cluster engine is already running [FAILED]"
> 
> What's up? :(
> 
> On Oct 15, 2014 12:23 PM, "Sihan Goi" <goister at gmail.com> wrote:
> No typo.
> 
> [root at node02 network-scripts]# ls -lah /etc/sysconfig/network-scripts/ifcfg-*
> -rw-r--r--. 1 root root 254 Oct 10  2013 /etc/sysconfig/network-scripts/ifcfg-lo
> 
> I installed CentOS 6.5 with the LiveDVD. I found it weird as well that these files were missing.
> 
> On Wed, Oct 15, 2014 at 11:54 AM, Digimer <lists at alteeve.ca> wrote:
> Sure there isn't a typo there?
> 
> an-c05n01:~# ls -lah /etc/sysconfig/network-scripts/ifcfg-*
> -rw-r--r--. 1 root root 225 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-bond0
> -rw-r--r--. 1 root root 220 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-bond1
> -rw-r--r--. 1 root root 198 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-bond2
> -rw-r--r--. 1 root root 149 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-eth0
> -rw-r--r--. 1 root root 144 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-eth1
> -rw-r--r--. 1 root root 152 Mar 14  2013 /etc/sysconfig/network-scripts/ifcfg-eth2
> -rw-r--r--. 1 root root 149 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-eth3
> -rw-r--r--. 1 root root 144 Jan 16  2013 /etc/sysconfig/network-scripts/ifcfg-eth4
> -rw-r--r--. 1 root root 152 Mar 14  2013 /etc/sysconfig/network-scripts/ifcfg-eth5
> -rw-r--r--. 1 root root 254 Jul 22 09:56 /etc/sysconfig/network-scripts/ifcfg-lo
> -rw-r--r--. 1 root root 213 Mar 13  2013 /etc/sysconfig/network-scripts/ifcfg-vbr2
> 
> I've never seen an EL6 install without the files there, 'network' or NetworkManager aside.
> 
> digimer
> 
> On 14/10/14 11:32 PM, Sihan Goi wrote:
> There aren't any config files in /etc/sysconfig/network-scripts. When I
> was using CentOS 7, the config files were there (ifcfg-something) but in
> this CentOS 6.5 installation, they are missing.
> 
> If is possible to not use cman, and just use corosync and pacemaker? If
> so, how?
> 
> On Wed, Oct 15, 2014 at 11:22 AM, Digimer <lists at alteeve.ca
> <mailto:lists at alteeve.ca>> wrote:
> 
>     You can manually configure the wireless LAN without NetworkManager.
>     If you take a look, there should be existing config files in
>     /etc/sysconfig/network-__scripts/ for the wireless connection. I've
>     not done it myself since many Fedora's ago, but I believe you can
>     change NMCONTROLLER="no" and then start it up with
>     /etc/sysconfig/network start. I could be a bit wrong, but I am sure
>     you can make wireless work without NM.
> 
>     Question; Servers with WLAN? I assume these won't be used for corosync?
> 
>     digimer
> 
> 
>     On 14/10/14 11:17 PM, Sihan Goi wrote:
> 
>         Hi,
> 
>         Is there a tutorial showing how to get a basic Linux HA setup with
>         replicated storage (via DRBD) working on CentOS 6.5? I want to have
>         mySQL as the HA resource with the database replicated across the
>         nodes.
>         I've scoured the web for one but it seems that I get stuck in
>         each one
>         somewhere.
> 
>         To elaborate, I have 2 CentOS 6.5 nodes configured with distinct
>         hostnames and static IPs. They are connected to a wireless AP,
>         and can
>         ping each other.
> 
>         I tried following this guide -
>         http://clusterlabs.org/__quickstart-redhat.html
>         <http://clusterlabs.org/quickstart-redhat.html>
>         However, cman will not start when NetworkManager is running, and my
>         nodes cannot connect to the wireless AP without NetworkManager
>         running.
>         Am I missing something or is that the stupidest dependency ever?
>         How is
>         a cluster supposed to work when the nodes aren't connected to
>         one another?
> 
>         I also tried following the "clusters from scratch" guide but
>         that seems
>         to rely on systemctl calls which aren't available on CentOS 6.5.
> 
>         Any help?
> 
>         --
>         - Goi Sihan
>         goister at gmail.com <mailto:goister at gmail.com>
>         <mailto:goister at gmail.com <mailto:goister at gmail.com>>
> 
> 
>         _________________________________________________
>         Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>         <mailto:Pacemaker at oss.clusterlabs.org>
>         http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
>         <http://oss.clusterlabs.org/mailman/listinfo/pacemaker>
> 
>         Project Home: http://www.clusterlabs.org
>         Getting started:
>         http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
>         <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>         Bugs: http://bugs.clusterlabs.org
> 
> 
> 
>     --
>     Digimer
>     Papers and Projects: https://alteeve.ca/w/
>     What if the cure for cancer is trapped in the mind of a person
>     without access to education?
> 
>     _________________________________________________
>     Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>     <mailto:Pacemaker at oss.clusterlabs.org>
>     http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
>     <http://oss.clusterlabs.org/mailman/listinfo/pacemaker>
> 
>     Project Home: http://www.clusterlabs.org
>     Getting started:
>     http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
>     <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>     Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> 
> --
> - Goi Sihan
> goister at gmail.com <mailto:goister at gmail.com>
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> -- 
> Digimer
> Papers and Projects: https://alteeve.ca/w/
> What if the cure for cancer is trapped in the mind of a person without access to education?
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> -- 
> - Goi Sihan
> goister at gmail.com
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20141016/888e3533/attachment-0003.sig>


More information about the Pacemaker mailing list