thanks for the suggestion...
It helped ... a bit... but I'm still not quite there...
Can I get some clarificaton on what location constraints I should use.
I want an active/passive combo. 1 web to be running web services , 1 passive. 1
db to run db services, 1 passive.
I think the constraints I need are
<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.dataelec.com" boolean_op="or"/>
<expression attribute="#uname"
id="1527f928-c31e-46fb-abfd-02364e3684ea" operation="eq"
value="portalweb2.dataelec.com" boolean_op="or"/>
</rule>
</rsc_location>
<rsc_location id="dbPlace" rsc="DBstuff">
<rule id="prefered_dbPalce" score="INFINITY">
<expression attribute="#uname"
id="1428c0c0-809e-4c26-ade6-5b0398843047" operation="eq"
value="portaldb1.dataelec.com" boolean_op="or"/>
<expression attribute="#uname"
id="54853280-040b-4b64-99bc-f3570eb9999f" operation="eq"
value="portaldb2.dataelec.com" boolean_op="or"/>
</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>
</rsc_location>
but its still doing weird things... currently I have 1 web box running the web
and db services runnning on the other web. I have been playing with Symetric
Cluster but neither value results in the behaviour I want.
I have been working through the gui up to this... I've entered the boolean part
manually and the re-imported the CIB, which I've then checked has been updated
by reexporting and that seems to be working ok.
Again all help appreciated...
________________________________
From: [EMAIL PROTECTED] on behalf of Andreas Kurz
Sent: Wed 05/12/2007 21:28
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] Setup Q
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.
[snip]
> 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
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems