Hi,

I'm making a two-node cluster for a dns caching server
(unbound) on two Ubuntu 10.04 hosts.

I'm pretty clueless about how to control the "unbound" application.
(I'm also a cluster newbie).

Because there is no ocf resource file for unbound, and I don't
know how to make one, I assume I can instead use the init script
as an lsb resource.

I tried to create an ocf script,
/usr/lib/ocf/resource.d/heartbeat/unbound, but gave up,
and instead added a status command to the /etc/init.d/unbound
(for LSB compliance), and copied it to /etc/ha.d/resource.d/

What next? I can't figure out how to tell crm (or is it
pacemaker, hearbeat or corosync) about it's existence.

Here is what I have working now (ip failover):
# crm configure show
node $id="2b161402-f3ef-4984-a2dc-9a500c6e0eba" nsa
node $id="62172639-3a47-4ec4-8d72-4aba51dd0d68" nsb
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        params ip="130.226.1.19" cidr_netmask="32" \
        op monitor interval="30s"
        location cli-prefer-ClusterIP ClusterIP \
        rule $id="cli-prefer-rule-ClusterIP" inf: #uname eq nsb
        property $id="cib-bootstrap-options" \
        dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
        cluster-infrastructure="Heartbeat" \
        stonith-enabled="false" \
        expected-quorum-votes="2" \
        no-quorum-policy="ignore"

torben
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to