[Pacemaker] Reloading a resource after a failover
Serge Dubrouski
sergeyfd at gmail.com
Wed Oct 5 03:31:55 UTC 2011
Please also notice that named RA in the git is a little bit broken. You need
to apply a patch that I recently sent, or wait little bit till it's applied
to GIT.
On Tue, Oct 4, 2011 at 8:08 AM, Florian Haas <florian at hastexo.com> wrote:
> On 2011-10-04 12:26, Max Williams wrote:
> > Thanks Serge.
> >
> > How exactly do I tell pacemaker to use this RA? Is there an ‘import’
> > command I need to run?
>
> No, you just drop the resource agent in the appropriate provider
> directory (/usr/lib/ocf/resource.d/<provider/) and set its x bit. Then
> it immediately becomes available to the LRM and Pacemaker.
>
> > Also, does this mean I need to change some of the paths in the RA?
>
> Yes it does. Well, really it means you're using an elderly version of
> the resource agents package which expects the heartbeat shellfuncs
> library in a different location than the new RA.
>
> > [root at host001 ~]# ocf-tester -n named
> > /usr/lib/ocf/resource.d/heartbeat/named
> >
> > Beginning tests for /usr/lib/ocf/resource.d/heartbeat/named...
> >
> > /usr/lib/ocf/resource.d/heartbeat/named: line 16:
> > /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs: No such file or directory
> >
> > * rc=1: Your agent has too restrictive permissions: should be 755
> >
> > /usr/lib/ocf/resource.d/heartbeat/named: line 16:
> > /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs: No such file or directory
>
> If you change the path in that line 16 to
> "/usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs" (note leading dot in
> filename and resource.d, not lib), then the RA should be able to find
> the shell function library.
>
> What's a much better idea though is of course to move to a recent
> version of resource-agents, but that may or may not be an option for you.
>
> Hope this helps.
> Cheers,
> Florian
>
> --
> Need help with High Availability?
> http://www.hastexo.com/now
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>
--
Serge Dubrouski.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111004/3a5d4088/attachment.htm>
More information about the Pacemaker
mailing list