On 12/04/2012 08:56 PM, Emmanuel Saint-Joanis wrote: > This setup might do the trick : > > primitive srv-mysql lsb:mysql \ > op monitor interval="120" \ > op start interval="0" timeout="60" on-fail="restart" \ > op stop interval="0" timeout="60s" on-fail="ignore" > > primitive srv-websphere lsb:websphere \ > op monitor interval="120" \ > op start interval="0" timeout="60" on-fail="restart" \ > op stop interval="0" timeout="60s" on-fail="ignore" > > ms ms-drbd-data drbd-data \ > meta master-max="1" master-node-max="1" clone-max="2" notify="true" > target-role="Master" > > colocation mysql-only-slave -inf: srv-mysql ms-drbd-data:Master
with a score of -inf this would prevent to run srv-mysql on the same node "forever" ... even in case of a node failure ... using a negative but not -inf score should also allow them to run together in case of node failures. Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > colocation websphere-only-master inf: srv-websphere ms-drbd-data:Master > > The keypoint is to ensure each service runs on different nodes > After that you must configure the orders. > > > 2012/12/4 alonerhu <[email protected]> > >> I have two machines with corosync+pacemaker, and I want to run mysql + >> websphere, how can I defined mysql start on node1 and websphere start on >> node2? >> >> thanks. >> >> I use drbd for data sync. >> >> >> >> alonerhu via foxmail >> _______________________________________________ >> Linux-HA mailing list >> [email protected] >> http://lists.linux-ha.org/mailman/listinfo/linux-ha >> See also: http://linux-ha.org/ReportingProblems >> > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
