I have 4 servers running 4 dummy resources for colocation purposes.  2 of the 4 resources score properly and 2 do not, causing me significant headache.<br><br>anchorOSS1 and anchorOSS2 are showing equal scores for both nodes (not what I want) and anchorOSS3 and anchorOSS4 are showing the proper scores for the nodes<br>






<br>Here is the relevant part of my configuration:<br><br>location locOSS1primary anchorOSS1 500: node1<br>location locOSS1secondary anchorOSS1 250: node3<br>location locOSS2primary anchorOSS2 500: node2<br>location locOSS2secondary anchorOSS2 250: node4<br>






<br>location locOSS3primary anchorOSS3 500: node3<br>location locOSS3secondary anchorOSS3 250: node1<br>location locOSS4primary anchorOSS4 500: node4<br>location locOSS4secondary anchorOSS4 250: node2<br>.<br>.<br>colocation colocOSS1OSS2 -inf: anchorOSS2 anchorOSS1<br>






colocation colocOSS1OSS4 -inf: anchorOSS4 anchorOSS1<br>colocation colocOSS1group 300: ( resOST0000 resOST0004 resOST0008 ) anchorOSS1<br>colocation colocOSS2OSS3 -inf: anchorOSS3 anchorOSS2<br>colocation colocOSS2group 300: ( resOST0001 resOST0005 resOST0009 ) anchorOSS2<br>






colocation colocOSS3OSS4 -inf: anchorOSS4 anchorOSS3<br>colocation colocOSS3group 300: ( resOST0002 resOST0006 resOST000a ) anchorOSS3<br>colocation colocOSS4group 300: ( resOST0003 resOST0007 resOST000b ) anchorOSS4<br>





<br>
<br>Here are the anchor results of ptest -Ls after first starting up corosync<br><br>native_color: anchorOSS1 allocation score on node1: 750<br>native_color: anchorOSS1 allocation score on node3: 750<br>native_color: anchorOSS2 allocation score on node2: 750<br>






native_color: anchorOSS2 allocation score on node4: 750<br><br>native_color: anchorOSS3 allocation score on node3: 500<br>native_color: anchorOSS3 allocation score on node1: 250<br>native_color: anchorOSS4 allocation score on node4: 500<br>






native_color: anchorOSS4 allocation score on node2: 250<br><br>With these scores, anchorOSS3 migrates and unmigrates properly using &quot;crm resource migrate anchorOSS3&quot; and &quot;crm resource unmigrate anchorOSS3&quot;, same with anchorOSS4.<br>






<br>However, migrating anchorOSS1 and anchorOSS2 results in a proper migration but unmigrating doesn&#39;t provide the desired results (moving back to the original server) because of the &quot;same score for each node&quot;<br>






<br>The configuration is &quot;opt-in&quot; with explicitly denying access unless granted.<br><br>I am not sure where the 750 score is even coming from.  It&#39;s almost like the primary and secondary score added together.<br>





<br>Some pertinent information for my setup:<br><br>I am running RedHat 5.6<br>Pacemaker: 1.0.11<br>Corosync 1.2.8<br>OpenAIS 1.1.4<br><br>I&#39;m not seeing any errors in the logs but I do see the following:<br>

<br>Aug 18 20:17:50 node1 pengine: [12483]: debug: unpack_rsc_op: anchorOSS1_monitor_0 on node1 returned 0 (ok) instead of the expected value: 7 (not running)<br>
Aug 18 20:17:50 node1 pengine: [12483]: notice: unpack_rsc_op: Operation anchorOSS1_monitor_0 found resource anchorOSS1 active on node1<br>Aug 18 20:17:50 node1 pengine: [12483]: debug: unpack_rsc_op: anchorOSS2_monitor_0 on node2 returned 0 (ok) instead of the expected value: 7 (not running)<br>


Aug 18 20:17:50 node1 pengine: [12483]: notice: unpack_rsc_op: Operation anchorOSS2_monitor_0 found resource anchorOSS2 active on node2<br>Aug 18 20:17:50 node1 pengine: [12483]: debug: unpack_rsc_op: anchorOSS4_monitor_0 on node4 returned 0 (ok) instead of the expected value: 7 (not running)<br>


Aug 18 20:17:50 node1 pengine: [12483]: notice: unpack_rsc_op: Operation anchorOSS4_monitor_0 found resource anchorOSS4 active on node4<br>Aug 18 20:17:50 node1 pengine: [12483]: debug: unpack_rsc_op: anchorOSS3_monitor_0 on node3 returned 0 (ok) instead of the expected value: 7 (not running)<br>


Aug 18 20:17:50 node1 pengine: [12483]: notice: unpack_rsc_op: Operation anchorOSS3_monitor_0 found resource anchorOSS3 active on node3<br>Aug 18 20:17:50 node1 pengine: [12483]: notice: native_print: anchorOSS1    (ocf::heartbeat:Dummy):    Started node1<br>


Aug 18 20:17:50 node1 pengine: [12483]: notice: native_print: anchorOSS2    (ocf::heartbeat:Dummy):    Started node4<br>Aug 18 20:17:50 node1 pengine: [12483]: notice: native_print: anchorOSS3    (ocf::heartbeat:Dummy):    Started node3<br>


Aug 18 20:17:50 node1 pengine: [12483]: notice: native_print: anchorOSS4    (ocf::heartbeat:Dummy):    Started node4<br>...<br>Aug 18 20:17:51 node1 pengine: [12483]: info: rsc_merge_weights: resMDTLVM: Rolling back scores from anchorOSS2<br>

Aug 18 20:17:51 node1 pengine: [12483]: info: rsc_merge_weights: resMDTLVM: Rolling back scores from anchorOSS4<br>Aug 18 20:17:51 node1 pengine: [12483]: info: rsc_merge_weights: resMDTLVM: Rolling back scores from anchorOSS3<br>

Aug 18 20:17:51 node1 pengine: [12483]: info: rsc_merge_weights: resMDTLVM: Rolling back scores from anchorOSS4<br><br>This shows that it see&#39;s anchorOSS2 on node2 but starts it on node4.  I believe this is because of the score values mentioned above but I&#39;m clueless as to why.<br>
<br>I have tried to understand the colocation explained documentation but I can&#39;t quite wrap my head around it for my situation since nothing I have in colocation is a dependent resource.<br><br>I appreciate any help in setting me straight.<br>

<br clear="all"><br>Bobbie Lind<br>Systems Engineer<br><i><b>Solutions Made Simple, Inc (SMSi)</b></i><br>


<a href="tel:703-296-3087" value="+17032963087" target="_blank">703-296-3087</a> (Cell)<br>

<a href="mailto:blind@sms-fed.com" target="_blank">blind@sms-fed.com</a><br><br>