On 06/22/2012 12:40 PM, Sergey Tachenov wrote: >>> group postgres pgdrive_fs DBIP postgresql >>> colocation postgres_on_drbd inf: postgres ms_drbd_pgdrive:Master >>> order postgres_after_drbd inf: ms_drbd_pgdrive:promote postgres:start >>> ... >>> location DBIPcheck DBIP \ >>> rule $id="DBIPcheck-rule" 10000: defined pingd and pingd gt 0 >>> location master-prefer-node1 DBIP 50: srvplan1 >>> colocation DBIP-on-web 1000: DBIP tomcats >> >> try inf: ... 1000: will be not enough .... because DBIP is also part of >> postgres group and that group must follow the DRBD Master > > I understand, but why doesn't it move the DRBD Master (and the whole > group) then? If I set the score INF, then the DBIP gets stopped > completely, and ptest shows -INF for both nodes. And why the ping > location constraint works then? If the ping is not answered, the whole > group moves perfectly fine.
hmm ... does it work better with a high value like 100000: ? Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > > _______________________________________________ > 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 >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ 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