LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   linux ha: Illegal directive [pacemaker] in ha.cf (http://www.linuxquestions.org/questions/linux-server-73/linux-ha-illegal-directive-%5Bpacemaker%5D-in-ha-cf-4175430157/)

eantoranz 10-02-2012 04:28 PM

linux ha: Illegal directive [pacemaker] in ha.cf
 
Hi!

I'd like to give linux ha a test. I'm working on VMs running ubuntu server 10.04. I already have both boxes running in sync and can see the status of the nodes and so on with cl_status.

Now, I want to be able to use pacemaker. I have added this line at the end of ha.cf:

Code:

pacemaker respawn
Now, when I try to restart the node (the only one at the moment) where I have made the ha.cf modification, this is what I get when I try to restart heartbeat:

Code:

$ sudo /etc/init.d/heartbeat restart
Stopping High-Availability services: Done.

Waiting to allow resource takeover to complete:Done.

Starting High-Availability services: IPaddr[5170]: INFO:  Resource is stopped
 Heartbeat failure [rc=6]. Failed.

heartbeat: udpport setting must precede media statementsheartbeat[5211]: 2012/10/02_16:57:57 ERROR: Illegal directive [pacemaker] in /etc/ha.d//ha.cf
heartbeat[5211]: 2012/10/02_16:57:57 ERROR: Heartbeat not started: configuration error.
heartbeat[5211]: 2012/10/02_16:57:57 ERROR: Configuration error, heartbeat not started.

What is the right way to do it then? Thanks in advance.

eantoranz 10-02-2012 04:31 PM

Got it. It's crm respawn in lucid.


All times are GMT -5. The time now is 05:10 PM.