[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] Problems running service exclusivly



Hi

I am trying to get the following config to work.

4 node cluster with
1 node providing a mysql service (only to nodes (bs1 and bs2) have the hardare to do so)
2 nodes providing a custom service (the same service on each node (bi1 and bi2))
1 node fallback for both services


It is important, that on every node ony one service is running.
I created the following cluster configuration (RHEL4U1),
but the exclusice flag seems not to work.
I have created three priorisised restricted failoverdomains (one for eache services).
I assigned each service to one failoverdomain (with run exclusively on),
but if I start the rgmanger. als services are running on one node.
I can move them by hand to the right nodes, but this is nor persistent.


Here my cluster.conf

I would be glad, if someone could help me.

Greetings

Hansjörg


<?xml version="1.0"?>
<cluster config_version="46" name="betty_call1">
<fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="bs1" votes="1">
</clusternode>
<clusternode name="bs2" votes="1">
</clusternode>
<clusternode name="bi1" votes="1">
</clusternode>
<clusternode name="bi2" votes="1">
</clusternode>
</clusternodes>
<cman/>


<rm>
<failoverdomains>
<failoverdomain name="mysql" ordered="1" restricted="1">
<failoverdomainnode name="bs1" priority="1"/>
<failoverdomainnode name="bs2" priority="2"/>
</failoverdomain>
<failoverdomain name="betty-bi1" ordered="1" restricted="1">
<failoverdomainnode name="bi1" priority="1"/>
<failoverdomainnode name="bs1" priority="4"/>
<failoverdomainnode name="bs2" priority="3"/>
<failoverdomainnode name="bi2" priority="2"/>
</failoverdomain>
<failoverdomain name="betty-bi2" ordered="1" restricted="1">
<failoverdomainnode name="bi2" priority="1"/>
<failoverdomainnode name="bs1" priority="3"/>
<failoverdomainnode name="bs2" priority="4"/>
<failoverdomainnode name="bi1" priority="2"/>
</failoverdomain>
</failoverdomains>


<resources>
<ip address="172.20.27.3" monitor_link="1"/>
<fs device="/dev/drbd0" fstype="ext3" mountpoint="/drbd" name="drbd"/>
<script file="/etc/init.d/mysqld" name="mysql"/>
<ip address="172.20.27.1" monitor_link="0"/>
<ip address="172.20.27.2" monitor_link="0"/>
<script file="/etc/init.d/foo" name="foo"/>
</resources>


<service autostart="1" exclusive="1" domain="mysql" name="mysql-service">
<fs ref="drbd">
<script ref="mysql"/>
</fs>
<ip ref="172.20.27.1"/>
</service>


<service autostart="1" exclusive="1" domain="foo-bi1" name="foo-bi1-service">
<ip ref="172.20.27.2">
<script ref="foo"/>
</ip>
</service>


<service autostart="1" exclusive="1" domain="foo-bi2" name="foo-bi2-service">
<ip ref="172.20.27.3">
<script ref="foo"/>
</ip>
</service>


       </rm>
</cluster>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]