On Wed, 2010-09-08 at 14:18 -0500, Bradley Leduc wrote:
> Am trying to add NAMED and DHCPD services as a resource on
> heartbeat-3.0.1-1.el5 cluster with no luck, I was wondering if anyone would
> know of an easy to do this. Any help would be great.
Are you running pacemaker or just a heartbeat v1-style config? I've done
it both ways. For v1 all I did was add "dhcpd" to haresources. For
pacemaker, I use the ocf:heartbeat:anything resource since I couldn't
find one specific to named or dhcpd anywhere. So I have config lines
like this:
primitive dhcp ocf:heartbeat:anything \
params binfile="/usr/sbin/dhcpd" cmdline_options="-f" \
op monitor interval="10" timeout="50" depth="0" \
op start interval="0" timeout="90s" \
op stop interval="0" timeout="100s" \
meta target-role="Started"
named works similarly.
For v1, you may need to create a resource.d script that properly
returns 0 if you try to stop a daemon that is already stopped; the
standard init.d startup scripts don't always do this.
--Greg
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems