Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
> diff --git a/scripts/drbd.ocf b/scripts/drbd.ocf > index 3277caa..b16148a 100644 > --- a/scripts/drbd.ocf > +++ b/scripts/drbd.ocf > @@ -339,7 +339,7 @@ drbd_update_master_score() { > # For multi volume, we need to compare who is "better" a bit more sophisticated. > # The ${XXX[*]//UpToDate}, without being in double quotes, results in a single space, > # if all are UpToDate. > - case ${DRBD_ROLE_LOCAL[*]}/${DRBD_DSTATE_LOCAL[*]//UpToDate}/${DRBD_DSTATE_REMOTE[*]//UpToDate}/ in > + case ${DRBD_ROLE_LOCAL[*]}/${DRBD_DSTATE_LOCAL[*]//UpToDate/ }/${DRBD_DSTATE_REMOTE[*]//UpToDate/ }/ in > *Primary*/\ /*/) > # I am Primary, all local disks are UpToDate > set_master_score 10000 Sorry for taking so long, but now I can confirm the patch fixes the issue: drbd in pri/sec uptodate/uptodate state crm_mon -A: Node Attributes: * Node manhattan-ocf.srv.sipgate.net: + master-drbd-db:1 : 10000 + pingd : 100 * Node bronx-ocf.srv.sipgate.net: + master-drbd-db:0 : 10000 + pingd : 100 modinfo drbd|grep ^version version: 8.4.0 egrep case.*DRBD_DSTATE_LOCAL /usr/lib/ocf/resource.d/linbit/drbd # original # case ${DRBD_ROLE_LOCAL[*]}/${DRBD_DSTATE_LOCAL[*]//UpToDate}/${DRBD_DSTATE_REMOTE[*]//UpToDate}/ in case ${DRBD_ROLE_LOCAL[*]}/${DRBD_DSTATE_LOCAL[*]//UpToDate/ }/${DRBD_DSTATE_REMOTE[*]//UpToDate/ }/ in bash --version GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc. Regards Dominik