Le 22/05/2013 15:02, Daniel Gullin a écrit :
Hi, is there is any possibilities to use a “post-script” when a failover
has happened ? I have a corosync/pacemaker installation with two
services, filesystem and IP and two nodes.

The system should be in passive/active mode. When a failover has happen
the passive node should mount the shared disk and migrate the shared IP
as well, when that is

finished I want pacemake to run a script on the “new” active node… Could
I do this ?

Thanks

Daniel



Maybe there are more elegant ways I haven't heard about but you can totally create a lsb resource firing a custom script of yours in the start() section, and by smart usage of group or collocation+ordering, force this resource to be started after all the others.

Beware of the lsb compliance of your resource...

--
Cheers,
Florian Crouzat

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to