PDA

View Full Version : OCF-anything and run a series of commands after fail-over



chrisbank
15-Sep-2011, 11:26
Hi,

Is it possible to run a series of commands (scripted) after the
OCF-anything resource script starts on the fail-over cluster node?
Here we have a 2 node cluster, in this cluster we have an own program
called "own-program" that will be started from the CRM with the
OCF-anything resource script. That is working fine, because
"own-program" stays in memory an can be monitored from within the CRM.
Now, when a node starts the "own-program" it needs some extra commands
after its has been started. Those command will be given by programs that
not stay in memory. Basically I want (if possible) to run a series of
commands after the OCF-anything script is initiated.

Thank you.
Chris :)


--
chrisbank
------------------------------------------------------------------------
chrisbank's Profile: http://forums.novell.com/member.php?userid=116745
View this thread: http://forums.novell.com/showthread.php?t=444749

Automatic Reply
20-Sep-2011, 18:16
chrisbank,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team
http://forums.novell.com/

chrisbank
27-Oct-2011, 10:26
Problem solved, I have extended the OCF-anything script
"/usr/lib/ocf/resource.d/heartbeat/anything" to run extra commands
afterwards.


--
chrisbank
------------------------------------------------------------------------
chrisbank's Profile: http://forums.novell.com/member.php?userid=116745
View this thread: http://forums.novell.com/showthread.php?t=444749