Le 03/02/2012 11:35, torben fjerdingstad a écrit :
> 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.
I believe LSB scripts have to be placed under /etc/init.d/ since they
really are initscripts.
You can valide that your script is seen by the cluster with:
crm ra list lsb
Verify that your init script is lsb compliant[1] and declare it as a
resource:
crm configure edit
primitive foo lsb:foo\
meta target-role="Started"
[1]
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ap-lsb.html
--
Cheers,
Florian Crouzat
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems