[Pacemaker] Collocating resource with a started clone instance

Sergey Tachenov stachenov at gmail.com
Fri Jun 22 10:40:36 UTC 2012


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




More information about the Pacemaker mailing list