[Linux-HA] Resources failed in Hearbeat-2.1.2 just after
amohammad at ibnkhaldun.com.pk
amohammad at ibnkhaldun.com.pk
Fri Sep 28 00:48:33 MDT 2007
> On Thu, Sep 27, 2007 at 03:19:03PM +0500, amohammad at ibnkhaldun.com.pk
>> Hi all,
>> I am a newbie in heartbeat. My heartbeat and OS are :
>> Heartbeat-2.1.2 , Debian etch
>> I have generated 'cib.xml' file from the 'haresources' file have the
>> hacluster 10.1.1.199 mon apache2 drbdlinks postgresql-8.1
>> my ha.cf looks like as
>> logfacility daemon # Log to syslog as facility "daemon"
>> logfile /var/log/ha-log
>> node HA-Linux iksws115 # List our cluster members
>> keepalive 1 # Send one heartbeat each second
>> deadtime 10 # Declare nodes dead after 10 seconds
>> bcast eth1 # Broadcast heartbeats on eth0 and eth1 interfaces
>> ping 10.1.1.101 # Ping our router to monitor ethernet
>> auto_failback no # Don't fail back to paul automatically
>> compression bz2
>> compression_threshold 2
>> crm yes
>> when I start heartbeat with no error it starts
>> but when I run "crm_mon -i5" I see the following output
>> Refresh in 2s...
>> Last updated: Thu Sep 27 06:15:49 2007
>> Current DC: ha-linux (55896269-c4a5-4992-abdf-19fb0bc16b36)
>> 2 Nodes configured.
>> 1 Resources configured.
>> Node: ha-linux (55896269-c4a5-4992-abdf-19fb0bc16b36): online
>> Node: iksws115 (34097616-7ef8-4b9e-b8ee-8451d9942f88): online
>> Resource Group: group_1
>> IPaddr_10_1_1_199 (heartbeat::ocf:IPaddr): Started ha-linux
>> mon_2 (heartbeat:mon): Started ha-linux FAILED
>> apache2_3 (heartbeat:apache2): Started ha-linux FAILED
>> drbdlinks_4 (heartbeat:drbdlinks): Started ha-linux
>> postgresql-8.1_5 (heartbeat:postgresql-8.1): Started ha-linux
>> Failed actions:
>> mon_2_monitor_120000 (node=ha-linux, call=39, rc=7): complete
>> apache2_3_monitor_120000 (node=ha-linux, call=41, rc=7): complete
>> postgresql-8.1_5_monitor_120000 (node=ha-linux, call=45, rc=7):
> Do you have these three resource agents? You didn't attach your
> cib.xml, but those are probably in LSB, i.e. in /etc/init.d.
> What is mon for? Do you really need that? Otherwise, before we
> get into ifs and whys those LSB scripts don't work properly, you
> should use the Heartbeat supplied OCF agents apache and
> pgsql. See also http://linux-ha.org on how to configure resource
> agents in the CIB.
>> My log file don't gives me any error, but the above output shows error
>> action , I could not figure out it. What I am missing in above
>> configuration .
>> Please help
>> Ali Muhammad
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>> Linux-HA mailing list
>> Linux-HA at lists.linux-ha.org
>> See also: http://linux-ha.org/ReportingProblems
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
Thanks for quick reply and sorry for my bad english.
Actually I am newbie to heartbeat
I am attaching my cib.xml file
who do you mean by resource agent?? If RA means start/stop scripts then
Should I place them in /etc/ha.d/resource.d/ ... , If yes then I have made
soft links for each script as
ln -s /etc/init.d/postgresql-8.1 /etc/ha.d/resource.d/postgresql-8.1
for each resources.
"mon" is the package for monitoring services/resouce
for more detail about "mon" visit
I need it.
The heartbeat supplied OCF (what are OCF??) ,From where should I get these
Please give me a detail description about this problem, I am totally stuck
here from 2 days , I will be very thankful to you.
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3933 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20070928/11682620/cib.bin
More information about the Linux-HA