PaceMaker Application Resource Creation

Posted on

Our application currently runs on RHEL 6.x using RHCS. With moving to RHEL 7.x looks like we have to use PaceMaker cluster. Without having to re-write the application start and stop script, can the RHCS scripts be directly added to a Pacemaker Resource Group via the command line (of course I have a ip resource added to the group as well).

pcs resource create directory=/home/ --group
pcs resource create apples directory=/home/fruit --group MyResourceGroup

Does the cluster resource manager within pacemaker when it starts/stops the resource group during a failover event or a manual move, call start/stop, so like when I type in "pcs resource move " the pacemaker framework calls the script with the stop option first on node1, then on the new node2, calls the script with the start option, so the output in /var/log/messages would be something like "/home//script stop" where "stop" is furnished by the PaceMaker Framework (or the cluster resource manager within PaceMaker).

although simple, I don't need to be able to control the resources from the GUI (could be done and more polished at a later date).

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.