Hi,

Can heartbeat be configured to run a script only once without that script running a service?

Say for example that heartbeat is failing over and that some special purpose script needs to run prior to starting an Oracle DB service which is already running in standby mode on the "fail to" node. This script would basically be taking an Oracle SE 10g DB instance on node2 and changing its mode of operation from standby DB to master DB. It would first apply the latest Oracle archive logs, change the DB mode from standby to full read/write mode (master) and then finish it's execution.

I am using the OCF /usr/lib/ocf/resources.d/heartbeat/oracle script but it can only start, stop, and monitor. The master DB normally runs on node1, and the standby DB runs active (so archive logs can be applied every 30 minutes via cron job) in standby mode on node2. The "run once" script would need to run on node2 during a failover.

Any recommendations/feedback on this would be welcome.


Regards,
Pat McShane



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to