Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
That ended up being really helpful. Again, thanks so much for your response Lars. I realize I had a misprint in my notes as well since I'm going in between two setups. In order to keep the drbd resource from trying to promote itself, the only_consistent value was set to a negative number adjust_master_score="-10 10 1000 10000". when this is set to "0 10 1000 10000" the resource still tries to promote itself. The debug log was super helpful with this: debug log with the Modified RA + drbd_update_master_score + set -- -10 10 1000 10000 + local only_consistent=-10 only_remote=10 local_ok=1000 as_good_as_it_gets=10000 With unmodified RA but adjust_master_score set on the pacemaker resource get's the error echo 'drbd(drbd): 2015/01/30_12:55:46' 'ERROR: BAD adjust_master_score value -10 ; falling back to default' + drbd_update_master_score + set -- 5 10 1000 10000 + local only_consistent=5 only_remote=10 local_ok=1000 as_good_as_it_gets=10000 echo 'drbd(sl_drbd): 2015/01/30_12:55:46' 'ERROR: BAD adjust_master_score value -10 ; falling back to default' With the negative value in the RA, the resource never attempts to promote itself: With the the adjust_master_score="0 10 1000 10000" (which doesn;t spit the error about a bad value) the only consistent resource still attempts to promote itself, giving the error: drbd_promote_0 on node2 'unknown error' (1): call=59, status=complete, last-rc-change='Fri Jan 30 13:04:20 2015', queued=0ms, exec=15496ms and the debug shows: + drbd_update_master_score + set -- 0 10 1000 10000 + local only_consistent=0 only_remote=10 local_ok=1000 as_good_as_it_gets=10000 node2 has a resource score of 0 for the drbd resource. So it seems the issue is the adjust_master_score attribute won't accept a negative number, however, if the RA is altered to have adjust_master_score_default in the RA contains a negative number, there is no issue. Is there a reason the resource agent doesn't want a negative value in adjust_master_score? I would have assumed it would have taken any legitimate resource score according to pacemaker. Cheers, Joel Burleson-Davis tel: 512-637-8700 mob: 503-707-2065 www.securelink.com/people/joel *secure networks for remote support* On Fri, Jan 30, 2015 at 12:47 PM, Joel Burleson-Davis <joel at securelink.com> wrote: > Much appreciated! I'll debug further and get back with anything I find. > > Cheers, > > Joel Burleson-Davis > tel: 512-637-8700 > mob: 503-707-2065 > www.securelink.com/people/joel > > > *secure networks for remote support* > > On Fri, Jan 30, 2015 at 11:03 AM, Lars Ellenberg < > lars.ellenberg at linbit.com> wrote: > >> On Fri, Jan 30, 2015 at 10:13:49AM -0600, Joel Burleson-Davis wrote: >> > So it turns out if I change the variable adjust_master_score_default >> > in the resource agent at /usr/lib/ocf/linbit/drbd, the setting does >> > not show up in the environmental variables or the cib but works >> > appropriately. >> >> "Not in the environment" is expected: no-one put it there >> (and the agent does not "export" it either) >> >> > However, with the unmodified resource agent, and the >> > adjust_master_score attribute set on the resource, the attribute shows >> > up in the environmental variables and in the cib, however, it doesn't >> > produce the expected behaviour. r >> >> Then please debug further, why the agent would override the value that >> is passed in from pacemaker via the environment with its own "default". >> >> mkdir -m 0700 /tmp/drbd.ocf.ra.debug >> touch /tmp/drbd.ocf.ra.debug/log >> >> log should soon contain "set -x" shell traces and stderr of the resource >> agent invokations, which should help you figure out what exactly happens. >> >> >> -- >> : Lars Ellenberg >> : http://www.LINBIT.com | Your Way to High Availability >> : DRBD, Linux-HA and Pacemaker support and consulting >> >> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. >> __ >> please don't Cc me, but send to list -- I'm subscribed >> _______________________________________________ >> drbd-user mailing list >> drbd-user at lists.linbit.com >> http://lists.linbit.com/mailman/listinfo/drbd-user >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20150130/966928dd/attachment.htm>