<div dir="ltr"><div>That ended up being really helpful. Again, thanks so much for your response Lars.<br><br></div>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:<br><br>debug log with the Modified RA<br><br>+ drbd_update_master_score<br>+ set -- -10 10 1000 10000<br>+ local only_consistent=-10 only_remote=10 local_ok=1000 as_good_as_it_gets=10000<br><br>With unmodified RA but adjust_master_score set on the pacemaker resource get's the error<br><br>echo 'drbd(drbd)[32049]: 2015/01/30_12:55:46' 'ERROR: BAD adjust_master_score value -10 ; falling back to default'<br><br>+ drbd_update_master_score<br>+ set -- 5 10 1000 10000<br>+ local only_consistent=5 only_remote=10 local_ok=1000 as_good_as_it_gets=10000<br><br> echo 'drbd(sl_drbd)[32049]: 2015/01/30_12:55:46' 'ERROR: BAD adjust_master_score value -10 ; falling back to default'<br><br>With the negative value in the RA, the resource never attempts to promote itself:<br><br>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:<br><br>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<br><br>and the debug shows:<br>+ drbd_update_master_score<br>+ set -- 0 10 1000 10000<br>+ local only_consistent=0 only_remote=10 local_ok=1000 as_good_as_it_gets=10000<br><br>node2 has a resource score of 0 for the drbd resource.<br><br>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.<br><br>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.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136)"><font face="courier new, monospace">Cheers,<br><br>Joel Burleson-Davis<br><a style="color:rgb(17,85,204)">tel: 512-637-8700</a><br><a style="color:rgb(17,85,204)">mob: 503-707-2065</a><br><a href="http://www.securelink.com/people/joel" style="color:rgb(17,85,204)" target="_blank">www.securelink.com/people/joel</a><br><br><img src="http://www.securelink.com/skins/_master/images/header-logo.png" align="bottom" border="0"><br><b>secure networks for remote support</b> </font><br></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 30, 2015 at 12:47 PM, Joel Burleson-Davis <span dir="ltr"><<a href="mailto:joel@securelink.com" target="_blank">joel@securelink.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Much appreciated! I'll debug further and get back with anything I find.<br></div><div class="gmail_extra"><span class=""><br clear="all"><div><div><div dir="ltr"><div style="color:rgb(136,136,136)"><font face="courier new, monospace">Cheers,<br><br>Joel Burleson-Davis<br><a style="color:rgb(17,85,204)">tel: 512-637-8700</a><br><a style="color:rgb(17,85,204)">mob: 503-707-2065</a><br><a href="http://www.securelink.com/people/joel" style="color:rgb(17,85,204)" target="_blank">www.securelink.com/people/joel</a><br><br><img src="http://www.securelink.com/skins/_master/images/header-logo.png" align="bottom" border="0"><br><b>secure networks for remote support</b> </font><br></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Fri, Jan 30, 2015 at 11:03 AM, Lars Ellenberg <span dir="ltr"><<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jan 30, 2015 at 10:13:49AM -0600, Joel Burleson-Davis wrote:<br>
> So it turns out if I change the variable adjust_master_score_default<br>
> in the resource agent at /usr/lib/ocf/linbit/drbd, the setting does<br>
> not show up in the environmental variables or the cib but works<br>
> appropriately.<br>
<br>
"Not in the environment" is expected: no-one put it there<br>
(and the agent does not "export" it either)<br>
<br>
> However, with the unmodified resource agent, and the<br>
> adjust_master_score attribute set on the resource, the attribute shows<br>
> up in the environmental variables and in the cib, however, it doesn't<br>
> produce the expected behaviour. r<br>
<br>
Then please debug further, why the agent would override the value that<br>
is passed in from pacemaker via the environment with its own "default".<br>
<br>
mkdir -m 0700 /tmp/drbd.ocf.ra.debug<br>
touch /tmp/drbd.ocf.ra.debug/log<br>
<br>
log should soon contain "set -x" shell traces and stderr of the resource<br>
agent invokations, which should help you figure out what exactly happens.<br>
<span><font color="#888888"><br>
<br>
--<br>
: Lars Ellenberg<br>
: <a href="http://www.LINBIT.com" target="_blank">http://www.LINBIT.com</a> | Your Way to High Availability<br>
: DRBD, Linux-HA and Pacemaker support and consulting<br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.<br>
__<br>
please don't Cc me, but send to list -- I'm subscribed<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>