[Pacemaker] Reloading a resource after a failover

Max Williams Max.Williams at betfair.com
Wed Oct 5 07:08:00 EDT 2011


OK I'll wait until it is in GIT.

Is there a way I could edit the LSB RA to take 'reload'? Where is the RA file for LSB init scripts? Or is it built in to Pacemaker?

Thanks,
Max

From: Serge Dubrouski [mailto:sergeyfd at gmail.com]
Sent: 05 October 2011 04:32
To: The Pacemaker cluster resource manager
Subject: Re: [Pacemaker] Reloading a resource after a failover


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<mailto: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<mailto: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.

________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from 
MessageLabs to scan all Incoming and Outgoing mail for viruses.

________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111005/3d58576b/attachment-0003.html>


More information about the Pacemaker mailing list