<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Hello,</span><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I'm using pacemaker 1.0.8 on rh el 5.5 x86 with clusterlabs repo.</span></div>

<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Based on other posts on linux-ha I'm trying to configure a 2-nodes cluster where one of the nodes is nfs-server and the other one is nfs-client of the resource exported by the first one.</span></div>

<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">The main parts borrowed form the related threads are that I had to set  these two constraints:</span></div>

<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">configure colocation nfsclient_not_on_nfs-group -inf: nfs-group nfsclient<br>

configure order nfsclient_after_nfs-group inf: nfs-group nfsclient</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div>
<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">It is all ok if both nodes are ok.</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">And I have nfs-server on node1 and nfs-client on node2.</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I successfully configured ping </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">resource for monitoring connectivity (thanks again Vadym for the patience for that..).</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">At runtime I have:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Online: [ ha1 ha2 ]</div><div><br></div><div>Full list of resources:</div><div><br></div><div>SitoWeb (ocf::heartbeat:apache):        Started ha1</div>
<div> Master/Slave Set: NfsData</div><div>     Masters: [ ha1 ]</div><div>     Slaves: [ ha2 ]</div><div> Resource Group: nfs-group</div><div>     lv_drbd0   (ocf::heartbeat:LVM):   Started ha1</div><div>     ClusterIP  (ocf::heartbeat:IPaddr2):<span class="Apple-tab-span" style="white-space:pre"> </span>Started ha1</div>
<div>     NfsFS<span class="Apple-tab-span" style="white-space:pre"> </span>(ocf::heartbeat:Filesystem):    Started ha1</div><div>     nfssrv     (ocf::heartbeat:nfsserver):     Started ha1</div><div>nfsclient<span class="Apple-tab-span" style="white-space:pre">      </span>(ocf::heartbeat:Filesystem):    Started ha2</div>
<div> Clone Set: cl-pinggw</div><div>     Started: [ ha1 ha2 ]</div><div><br></div><div>Migration summary:</div><div>* Node ha1:  pingd=200</div><div>* Node ha2:  pingd=200</div><div><br></div><div>and stickiness for cluster is set to 1000</div>
<div><br></div></span></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I can successfully execute </span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; "><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">crm resource move nfs-group</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">(and then after a bit unmove to have chance to get it back in the future)</span></font></div>
</span></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">so that the roles are correctly exchanged between the two nodes at the end of the process.</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">But I can't do </span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">crm resource move nfsclient</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">because this resource then stops, and the same for nfs-group and nothing restarts</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">If I run</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">crm resource unmove nfsclient</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">then all restarts (with the same roles as before)</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">I can live with this... but I would expect only failure of movement of nfs-client without impact for nfs-server</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">If I</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> prevent node1 (nfs-server role at the moment) to reach the gw, I correctly get the resources swapped (because nfs-client is not bound to the ping constraint)</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">The complete failure of services with my case for movement of nfs-client lets me make this general question:</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Suppose I have group of resources named G1 and a resource named R2.</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I define an order R2 after G1 and a colocation constraint of -inf so</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">that they run on different nodes (2 nodes overall).</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">At runtime I have G1 on node1 and R2 on node2, correctly.</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I do a move of G1, so that I would have at the end G1 on node2 and R2 on node1.</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">But suppose node1 doesn' t satisfy requirements for running R2 (for</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">example a file system without the mount point directory on node1).</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">What Is the expected behaviour:</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">- R2 stops correctly on node2</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>
</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">- G1 starts correctly on node2</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>
</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">- R2 then, based on constraint and order, tries to start on node1 but fails</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"></span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">end of the game with G1 still running or <br>

</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">- G1 too goes in stopped status, so that I now have both G1 and R2 stopped?</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>
<br></span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">And the other case:</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><div>
At runtime I have G1 on node1 and R2 on node2, correctly.</div><div>I do a move of R2, so that I would expect at the end G1 on node2 (based on anti-location) and R2 on node1.</div><div>Is it expected to have as a result both G1 and R2 in stopped state?</div>
<div><br></div></span></font></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Thanks for clarifications</span><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br>

</span></div>