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:
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:
$ sudo /etc/init.d/heartbeat restart
Stopping High-Availability services: Done.
Waiting to allow resource takeover to complete:Done.
Starting High-Availability services: IPaddr: INFO: Resource is stopped
Heartbeat failure [rc=6]. Failed.
heartbeat: udpport setting must precede media statementsheartbeat: 2012/10/02_16:57:57 ERROR: Illegal directive [pacemaker] in /etc/ha.d//ha.cf
heartbeat: 2012/10/02_16:57:57 ERROR: Heartbeat not started: configuration error.
heartbeat: 2012/10/02_16:57:57 ERROR: Configuration error, heartbeat not started.
What is the right way to do it then? Thanks in advance.