On Tue, Aug 5, 2008 at 15:03,  <[EMAIL PROTECTED]> wrote:
> Dear list members,
>
> I'm new to heartbeat and I'm trying to get the following configuration
> to work with Linux-HA:
>
> 2 firewall nodes (linux, idefix) with at least 2 ip addresses each. One
> firewall (linux) should always be master unless it goes down. Then the
> slave (idefix) should takeover all virtual ip addresses and if the
> primary firewall (linux) comes back again, it should take over all
> virtual ip addresses. All virtuall ip addresses should only be started
> on the primary node (master).
>
> The configuration on the web seems to be related to version 2.0.8 and
> I'm running 2.1.3 where I can't find some settings for the rules and
> colocations. Is there an updated docu somewhere?

http://clusterlabs.org/mw/Image:Configuration_Explained.pdf

>
> I found the following examples on the web that would fullfil my
> requirements, but I can't find a configuration dialogue to set these
> options:
>
> ## http://www.linux-ha.org/CIB/Idioms/ColoWithMaster

thats a different type of "master".  you're not using a master_slave
resource are you?

i'm pretty sure you just want a regular rsc_location constraint that
prefers the node called "linux".

> It is very common to want to have a certain resource run only on a node
> which is master for a given resource.
>
> You can either make sure the resource is run on the master, which is the
> propably more common approach:
>
> <rsc_order id="ms-drbd0_before_fs0" from="fs0" action="start"
> to="ms-drbd0" to_action="promote"/>
> <rsc_colocation id="fs0_on_ms-drbd0" to="ms-drbd0" to_role="master"
> from="fs0" score="infinity"/>
>
> Translation:
>
>    * Start fs0 after ms-drbd0 has been promoted
>    * Only start fs0 when ms-drbd0 is running as master
> ##
>
> In the colocation dialogue I don't find any possibility to set the
> to_role. If I change the cib.xml file by hand, most times the file is
> rebuild from scratch and I have to set up all again. Is there a
> possibility to go back to an older cib.xml file which seems to have the
> correct information e.g. cib.xml.6543?
>
>
>
> The second part that I found is:
>
> ##
> http://www.linux-ha.org/CIB/Idioms#head-fd1cd00bfc16ebced9f104b8fa14df71
> 769a3442
>
> Controlling which node becomes master
>
> It is sometimes desirable to preferentially constrain the master
> instance of a master/slave resource to run on a particular node or set
> of nodes in the cluster.
>
> The CIB snippet below will add prefer the node ace to be master of the
> resource ms-drbd1 by 100 points.
>
> <rsc_location id="loc:ms-drbd1_likes_ace" rsc="ms-drbd1">
>  <rule id="rule:ms-drbd1_likes_ace" role="master" score="100">
>    <expression  attribute="#uname" operation="eq" value="ace"/>
>  </rule>
> </rsc_location>
>
> ##
>
> Here I can't find the dialogue where to setup the role for the rule.
>
> Is there also a HOWTO that describes how to setup master slave
> configurations (only one node aktive)?
>
> I added my cib.xml to the mail. I tried to get the problem solved by
> different locations with different scores, but I don't know if this will
> do what it should.
>
> Thank you for your help.
>
> Best regards
>
> Christof
>
>
> _______________________________________________
> 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

Reply via email to