On Dec 5, 2007 7:18 PM, Rafe Slattery <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to get a HA setup operational and am having issues. > > I'm setting up 4 servers. > 2 web servers and two db servers. > I have been trying to set them up all in 1 cluster so that I have > visibilty over all node statuses from one location. > > i have grouped the web services (http, ip address and disk partition) > in 1 group and the db in another (mysql, ip and disk partition). > > I am trying to enforce locations in the form of web group runs on > webnode1 or webnode2 only. db group runs on dbnode1 or dbnode2 only. > > The Place consttraints I have are as follows. > > <rsc_location id="webPlace" rsc="WEBstuff"> > <rule id="prefered_webPlace" score="INFINITY"> > <expression attribute="#uname" > id="ef686bfc-53ed-4910-84e1-8b08138bd83e" operation="eq" > value="portalweb1"/> > <expression attribute="#uname" > id="1527f928-c31e-46fb-abfd-02364e3684ea" operation="eq" > value="portalweb2"/> > </rule> > </rsc_location> > <rsc_location id="dbPalce" rsc="DBstuff"> > <rule id="prefered_dbPalce" score="INFINITY"> > <expression attribute="#uname" > id="1428c0c0-809e-4c26-ade6-5b0398843047" operation="eq" > value="portaldb1"/> > <expression attribute="#uname" > id="54853280-040b-4b64-99bc-f3570eb9999f" operation="eq" > value="portaldb2"/> > </rule> > </rsc_location> > <rsc_location id="noWebonDB" rsc="DBstuff"> > <rule id="prefered_noWebonDB" score="-INFINITY"> > <expression attribute="#uname" > id="52c7809d-c96a-4362-855d-27c1ac5e210a" operation="eq" > value="portalweb1"/> > <expression attribute="#uname" > id="2d8aa398-cdb6-473e-8c08-43305a78761b" operation="eq" > value="portalweb2"/> > </rule> > </rsc_location> > <rsc_location id="noDBonWeb" rsc="WEBstuff"> > <rule id="prefered_noDBonWeb" score="-INFINITY"> > <expression attribute="#uname" > id="4da1224c-5c59-4731-a507-6cfea7f408a3" operation="eq" > value="portaldb1"/> > <expression attribute="#uname" > id="b7470caf-8f54-42a9-9613-ab4ae7aa938a" operation="eq" > value="portaldb2"/> > </rule> > > Looking at the hb gui currently I have the db services running on a web > server.... but I thought that should not be happening with what I have > defined. > I'm running hearbeat heartbeat-2.0.8-1 on FC6. > > Any pointers greatly appreciated...
Hello! By default rules combine several expressions with a logical 'and' ... I assume your intention was a logical 'or'. Try to add boolean_op="or" attribute to your rules like: <rule id="prefered_webPlace" score="INFINITY" boolean_op="or"> ..... Regards, Andreas > I think I could probably butcher this setup and have 2 seperate cluster > setups with 2 nodes in each but I would prefer to know why what I'm > doing is not working even if I have to go down that road anyway. > > Thanks > > Rafe > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
