Hi, On Thu, May 28, 2009 at 02:18:12PM -0300, George Gomes wrote: > Hi Andrew, > > Before sending this email, I read the Configuration_Explained.pdf, > Crm_cli.pdf and I modified the script file according to LSB (Appendix: Is > This init Script LSB Compatible?, pg 71). > > After changing the link from symbolic to hard I could verify that crm > resource start and stop works fine, that is, when I run "crm resource start > myScript" and then "crm resource status" it shows "Started status". And when > I run "crm resource stop myScript" and then "crm resource status" it shows > "Stopped status". However myScript did not run.
How do you know it didn't? > I attached kernel messages and hb_report logs. There are some problems with your script: The monitor (status): node2/ha-log.txt:May 28 11:29:31 node2 lrmd: [10638]: info: RA output: (scriptHa:monitor:stderr) /etc/init.d/scriptHa.sh: line 39: [: 21852: binary operator expected Looks like the script can't stop whatever it's controlling: node2/ha-log.txt:May 28 11:29:35 node2 lrmd: [10638]: info: rsc:scriptHa: stop node2/ha-log.txt:May 28 11:29:35 node2 lrmd: [10638]: info: RA output: (scriptHa:stop:stdout) Stopping RSC-TEST... node2/ha-log.txt:May 28 11:29:35 node2 lrmd: [10638]: info: RA output: (scriptHa:stop:stderr) /etc/init.d/scriptHa.sh: line 14: [: 21852: binary operator expected /etc/init.d/scriptHa.sh: line 18: kill: (27850) - No such process node2/ha-log.txt:May 28 11:29:36 node2 lrmd: [10638]: info: RA output: (scriptHa:stop:stdout) .. Done. node2/ha-log.txt:May 28 11:29:46 node2 lrmd: [10638]: info: rsc:scriptHa: start node2/ha-log.txt:May 28 11:29:46 node2 lrmd: [10638]: info: RA output: (scriptHa:start:stdout) RSC-TEST is already running, PID=27857 In short: look for lrmd:.*scriptHa in the logs and try to figure out what's going on. Thanks, Dejan > thanks in advance, > George Gomes > > > On Thu, May 28, 2009 at 11:09 AM, Andrew Beekhof <and...@beekhof.net> wrote: > > > On Thu, May 28, 2009 at 3:05 PM, George Gomes <geoun...@gmail.com> wrote: > > > Hi all, > > > > > > I read the Pacemaker information/installation guide on site > > > http://clusterlabs.org/wiki/Main_Page and I installed it (Pacemaker) on > > Red > > > Hat EL5 with all rpm files bellow: > > > > > > heartbeat-2.99.2-8.1.i386.rpm > > > heartbeat-common-2.99.2-8.1.i386.rpm > > > heartbeat-resources-2.99.2-8.1.i386.rpm > > > libheartbeat2-2.99.2-8.1.i386.rpm > > > libopenais2-0.80.5-13.1.i386.rpm > > > libpacemaker3-1.0.3-2.2.i386.rpm > > > openais-0.80.5-13.1.i386.rpm > > > pacemaker-1.0.3-2.2.i386.rpm > > > > > > I configured the failover-IP according to CRM CLI command but I could not > > > configure any resource using CRM CLI. > > > When I performed the command "crm resource status", the CRM CLI shows the > > > script is started but it was not started. > > > > Possibly the script is broken. > > Did you check it for LSB compliance? > > There is a series of tests listed in the configuration explained pdf > > that you can perform to verify the script is compliant. > > > > > Could someone help me? > > > > Not without logs etc. > > > > > Bellow is the command that I used to create the primitive resource: > > > > > > # crm configure primitive myScript lsb::myScript.sh op monitor > > interval=10s > > > > > > I created the symbolic link of myScript.sh on /etc/init.d, is it correct? > > if > > > not, how could I do it? > > > > You may need to create a hardlink (ln with no -s option). > > > > _______________________________________________ > > Pacemaker mailing list > > Pacemaker@oss.clusterlabs.org > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker