[Pacemaker] problem with ocf:pacemaker:pingd
Dejan Muhamedagic
dejanmm at fastmail.fm
Thu May 19 13:46:44 UTC 2011
Hi,
On Thu, May 19, 2011 at 08:04:09PM +0800, delube cheng wrote:
> I just found a solutin: the ocf-shellfuncs was installed at the location
> /usr/lib/ocf/lib/heartbeat/ (I don't know why), I added the soft link:
> ln -s /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs
> /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs
> then tried to add the ocf:pacemaker:pingd by crm, bingo. :-)
The make install for resource agents below didn't install the
compatibility links which you added by hand.
> By the way, I installed heartbeat/pacemaker using source code like
> below:
> ----------------------------------------------------
> # cluster-glue
> ./autogen.sh
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> make
> make install
>
> # heartbeat
> ./bootstrap
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> make
> make install
>
> # resouce agents (include ldirectord)
> ./autogen.sh
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> make
> make install
>
> # pacemaker (crm)
> ./autogen.sh
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> make
> make install
> ----------------------------------------------------
> Is these steps OK ?
It would've been better to do make rpm. IIRC, the latest
resource agents code should make the links now.
> Thank Dejan again, You triggered me ...
>
>
> On Thu, May 19, 2011 at 7:34 PM, delube cheng <delube at gmail.com> wrote:
>
> > 1. ls output:
> > [root at CWS-centos1 pacemaker]# ls -l /usr/lib/ocf/resource.d/pacemaker
> > -rwxr-xr-x 1 root root 7029 05-11 11:39 ClusterMon
> > -rwxr-xr-x 1 root root 5468 05-11 11:39 controld
> > -rwxr-xr-x 1 root root 5035 05-11 11:39 Dummy
> > -rwxr-xr-x 1 root root 5878 05-11 11:39 HealthCPU
> > -rwxr-xr-x 1 root root 9354 05-11 11:39 HealthSMART
> > -rwxr-xr-x 1 root root 10868 05-11 11:39 o2cb
> > -rwxr-xr-x 1 root root 8826 05-11 11:39 ping
> > -rwxr-xr-x 1 root root 8409 05-11 11:39 pingd
> > -rwxr-xr-x 1 root root 5305 05-11 11:39 Stateful
> > -rwxr-xr-x 1 root root 9240 05-11 11:39 SysInfo
> > -rwxr-xr-x 1 root root 5950 05-11 11:39 SystemHealth
> >
> > 2. ping output:
> > [root at CWS-centos1 pacemaker]# export OCF_ROOT=/usr/lib/ocf
> > [root at CWS-centos1 pacemaker]# /usr/lib/ocf/resource.d/pacemaker/ping
> > meta-data
> > /usr/lib/ocf/resource.d/pacemaker/ping: line 32:
> > /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs: no such file or directory
> >
> > again, when I use ocf:heartbeat:pingd which is "deprecated", It seems work
> > well ....
If you ever run into problems with it, everybody we'll tell you
to use the other one. So, better to do that now.
Thanks,
Dejan
> > Thanks anyway ...
> >
>
>
>
> --
> Sincerely
> Delube
> _______________________________________________
> 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
More information about the Pacemaker
mailing list