Rather than expressing it directly, is it possible to create a resource (maybe anything) that runs on failover to modify the configuration to make the resource stick to the current node?<br><br>Cheers,<br><br>Jie<br><br><br>
<div class="gmail_quote">On Tue, Mar 23, 2010 at 11:44 PM, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="im"><br>
On Mon, Mar 22, 2010 at 01:18:35PM -0700, Alan Jones wrote:<br>
> Well, I guess my configuration is not as common.<br>
> In my case, one of these resources, say resource A, suffers greater<br>
> disruption if it is moved.<br>
> So, after a failover I would prefer that resource B move, reversing the node<br>
> placement.<br>
> Is this possible to express?<br>
<br>
</div>Not sure, but don't think so.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Dejan<br>
</font><div><div></div><div class="h5"><br>
> Alan<br>
><br>
> On Mon, Mar 22, 2010 at 11:10 AM, Dejan Muhamedagic <<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>>wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > On Mon, Mar 22, 2010 at 09:29:50AM -0700, Alan Jones wrote:<br>
> > > Friends,<br>
> > > I have what should be a simple goal. Two resources to run on two nodes.<br>
> > > I'd like to configure them to run on separate nodes when available, ie.<br>
> > > active-active,<br>
> > > and provide for them to run together on either node when one fails, ie.<br>
> > > failover.<br>
> > > Up until this point I have assumed that this would be a base use case for<br>
> > > Pacemaker, however, it seems from the discussion on:<br>
> > > <a href="http://wiki.lustre.org/index.php/Using_Pacemaker_with_Lustre" target="_blank">http://wiki.lustre.org/index.php/Using_Pacemaker_with_Lustre</a><br>
> > > ... that it is not (see below). Any ideas?<br>
> ><br>
> > Why not just two location constraints (aka node preferences):<br>
> ><br>
> > location l1 rsc1 100: node1<br>
> > location l2 rsc2 100: node2<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Dejan<br>
> ><br>
> > > Alan<br>
> > ><br>
> > > *Note:* Use care when setting up your point system. You can use the<br>
> > > point system if your cluster has at least three nodes or if the resource<br>
> > > can acquire points from other constraints. However, in a system with<br>
> > > only two nodes and no way to acquire points, the constraint in the<br>
> > > example above will result in an inability to migrate a resource from a<br>
> > > failed node.<br>
> > ><br>
> > > The example they refer to is similar to yours:<br>
> > ><br>
> > > # crm configure colocation colresOST1resOST2 -100: resOST1 resOST2<br>
> ><br>
> > > _______________________________________________<br>
> > > Pacemaker mailing list<br>
> > > <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> > > <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Pacemaker mailing list<br>
> > <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> > <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
> ><br>
<br>
> _______________________________________________<br>
> Pacemaker mailing list<br>
> <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
</div></div></blockquote></div><br>