Re: Heartbeat fails to start any resources in haresources

"Ian Walker" <[email protected]> Thu, 10 Aug 2006 08:04:29 +0200
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
I was looking at configuring this yesterday in conjunction with my
director.  Your config looks a little different to me in places, so not sure
if this is why you have a problem.  Anyway, my lines in /etc/ha.d/ha.cf:

logfacility local0
bcast eth1
auto_failback on
node rhel3ld.comprze.com.pl
node rhel3rs1.comprze.com.pl
node rhel3rs2.comprze.com.pl

I'm broadcasting on eth1 because I want to make sure my real servers are
available.  Your node name should be the same as the output of "uname -n" so
make sure that your line:

node srv00

is the full output of "uname -n".  Here is my /etc/ha.d/haresources:

rhel3rs1.comprze.com.pl 192.168.0.2 ldirectord
rhel3rs2.comprze.com.pl 192.168.0.3 ldirectord

again, my file is slightly different from yours, because you don't list the
ip address to your machine.  I'm not entirely sure if any of what I've
suggested is relevant, as I'm new to this, but thought I'd suggest these in
case this is why it's not working for you.

On 10/08/06, Melvin Harmon <[email protected]> wrote:
>
> I'm trying to get heartbeat running on a single server (srv00).
> I'm running heartbeat 1.2.3 on debian sarge. (I have tried 1.2.3_cvs as
> well.)
>
> When I '/etc/init.d/heartbeat start' two things _don't_ happen:
>
> 1) None of the services in haresources are started.
>    Heartbeat looks at haresources and will complain if resource script
> doesn't exist, but
>    none of the resource scripts are actually run.
>
> 2) No output is written to /var/log/ha-debug, but output is written ton
> /var/log/ha-log
>
> But when I run 'heartbeat stop' all the resources in haresources are
> 'stop'ped and output is
> written to /var/log/ha-debug.
>
> Any ideas on why my resources aren't being 'start'ed?
>
> thanks,
> -m
>
> Here is my ha.cf:
> -----------------------------
> debugfile /var/log/ha-debug
> logfile /var/log/ha-log
> logfacility     local0
> keepalive 1
> deadtime 30
> warntime 6
> initdead 250
> udpport 699
> bcast   bond0
> auto_failback on
> node    srv00
>
> Here is my haresources
> -------------------------------
> srv00 echodate
>
> (echodate: date >> /var/log/syslog)
>
> This is the output from 'heartbeat start'
> -------------------------------------------------------------
> Aug  9 14:21:55 srv00 heartbeat[5333]: info: **************************
> Aug  9 14:21:55 srv00 heartbeat[5333]: info: Configuration validated.
> Starting heartbeat 1.2.3
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: heartbeat: version 1.2.3
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: Heartbeat generation: 4
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: UDP Broadcast heartbeat
> started on port 699 (699)
> interface bond0
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: pid 5334 locked in memory.
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: Local status now set to:
> 'active'
> Aug  9 14:21:55 srv00 heartbeat[5334]: info: Local status now set to: 'up'
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> --
> Ultra Monkey - http://www.ultramonkey.org/
> To UNSUBSCRIBE, email to [email protected], with a body:
> unsubscribe ultramonkey-users [email protected]
> where "[email protected]" is YOUR email address.
>
>