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
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

Reply via email to