Hi,
On Fri, Apr 24, 2009 at 10:11:19AM +0200, elziege7 wrote:
> > ipfail works only with v1. For v2 use pingd.
> >
> > Due to a bug, the IPaddr resource is not converted properly
> > (parameters are mixed). You'll have to edit the CIB and fix them.
> > Use cibadmin.
>
> Thanks for your help Dejan!
>
> I have changed the ha.cf (pingd instead of ipfail) and corrected the
> IP Adress Resource with cibadmin (nic and subnet were interchanged)
> restarted hearbeat.
>
> It works better now, but there is still one problem. The shared IP is
> assigned correctly to the master node and the DRBD device is also
> mounted correctly. The problem is that the applications that HA should
> handle for me (postfix, dovecot and mysql) are being started and
> stopped every few seconds on the master node.
That's probably that these LSB resource agents (aka init scripts)
are not exactly LSB compliant. The logs are too frightening to
read, but you can look for just what's happening with resources:
grep lrmd.*<rsc_id> /var/log/ha-log
The info:<rsc>: <action> will tell you what is about to be run:
> lrmd[11800]: 2009/04/24_08:34:42 info: rsc:dovecot_4: stop
and then just follow your resource from there.
For instance:
> lrmd[11800]: 2009/04/24_08:34:44 info: RA output:
> (dovecot_4:monitor:stderr) Usage: /etc/init.d/dovecot
> {start|stop|restart|force-reload}
This RA is missing the status action which is required. Either
find one which has it, or implement one yourself, or write an OCF
RA and contribute :)
It's very important that all your resource agents comply with
LSB/OCF standard. Take a look here:
http://www.linux-ha.org/LSBResourceAgent
I'm afraid that you can't rely on your distribution to do that
correctly. And then the best would be, given enough patience, to
test your resources by hand.
The best is to use the supplied resource agents (from heartbeat
and pacemaker) because they are more robust and written to work
with the cluster. So, perhaps you should switch from the lsb
mysql to the OCF mysql.
I hope that you got enough information to find out what's wrong
yourself ;-)
Thanks,
Dejan
> Thanks in advance for your support
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems