[Pacemaker] problem with ocf:pacemaker:pingd

delube cheng delube at gmail.com
Thu May 19 11:55:36 UTC 2011


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

    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 ?
    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 ....
>
> Thanks anyway ...
>



-- 
Sincerely
Delube
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110519/bc2501f3/attachment.htm>


More information about the Pacemaker mailing list