[Pacemaker] Collocating resource with a started clone instance

Andreas Kurz andreas at hastexo.com
Fri Jun 22 11:31:33 UTC 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 222 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120622/3815485b/attachment-0004.sig>


More information about the Pacemaker mailing list