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:<br>         ln -s /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs<br>
then tried to add the ocf:pacemaker:pingd by crm, bingo. :-)<br><br>    By the way, I installed heartbeat/pacemaker using source code like below:<br>----------------------------------------------------<br>        # cluster-glue<br>
        ./autogen.sh<br>        ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>        make<br>        make install<br>        <br>        # heartbeat <br>        ./bootstrap<br>        ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>
        make<br>        make install<br>        <br>        # resouce agents (include ldirectord)<br>        ./autogen.sh<br>        ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>        make<br>        make install<br>
        <br>        # pacemaker (crm)        <br>        ./autogen.sh<br>        ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>        make<br>        make install        <br>----------------------------------------------------    <br>
    Is these steps OK ?<br>    Thank <font color="black" size="2" face="Verdana,Arial,Helvetica"><font color="black" size="2" face="Verdana,Arial,Helvetica">Dejan again, You triggered me ...<br> </font></font><br><br><div class="gmail_quote">
On Thu, May 19, 2011 at 7:34 PM, delube cheng <span dir="ltr"><<a href="mailto:delube@gmail.com">delube@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
1. ls output:<br>[root@CWS-centos1 pacemaker]# ls -l /usr/lib/ocf/resource.d/pacemaker<br>-rwxr-xr-x 1 root root  7029 05-11 11:39 ClusterMon<br>-rwxr-xr-x 1 root root  5468 05-11 11:39 controld<br>-rwxr-xr-x 1 root root  5035 05-11 11:39 Dummy<br>

-rwxr-xr-x 1 root root  5878 05-11 11:39 HealthCPU<br>-rwxr-xr-x 1 root root  9354 05-11 11:39 HealthSMART<br>-rwxr-xr-x 1 root root 10868 05-11 11:39 o2cb<br>-rwxr-xr-x 1 root root  8826 05-11 11:39 ping<br>-rwxr-xr-x 1 root root  8409 05-11 11:39 pingd<br>

-rwxr-xr-x 1 root root  5305 05-11 11:39 Stateful<br>-rwxr-xr-x 1 root root  9240 05-11 11:39 SysInfo<br>-rwxr-xr-x 1 root root  5950 05-11 11:39 SystemHealth<br><br>2. ping output:<br>[root@CWS-centos1 pacemaker]# export OCF_ROOT=/usr/lib/ocf<br>

[root@CWS-centos1 pacemaker]# /usr/lib/ocf/resource.d/pacemaker/ping meta-data<br>/usr/lib/ocf/resource.d/pacemaker/ping: line 32: /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs: no such file or directory<br><br>again, when I use ocf:heartbeat:pingd which is "deprecated", It seems work well .... <br>

<br>Thanks anyway ...<br>
</blockquote></div><br><br clear="all"><br>-- <br>Sincerely<br>Delube<br>