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

Re: [Linux-cluster] why all services stops when a node reboots?

2009/2/12 ESGLinux <esggrupos gmail com>
Hello all,

I´m testing a cluster using luci as admin tool. I have configured 2 nodes with 2 services http + mysql. This configuration works almost fine. I have the services running on the node1
 and y reboot this node1. Then the services relocates to node2 and all contnues working but, when the node1 goes up all the services stops.

I think that the node1, when comes alive, tries to run the services and that makes the services stops, can it be true? I think node1 should not start anything because the services are running in node2.

Perphaps is a problem with the configuration, perhaps with fencing (i have not configured fencing at all)

here is my cluster.conf. Any idea?

Thanks in advace


<?xml version="1.0"?>
<cluster alias="MICLUSTER" config_version="29" name="MICLUSTER">
        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
                <clusternode name="node1" nodeid="1" votes="1">
                <clusternode name="node2" nodeid="2" votes="1">
        <cman expected_votes="1" two_node="1"/>
                        <failoverdomain name="DOMINIOFAIL" nofailback="0" ordere
d="1" restricted="1">
                                <failoverdomainnode name="node1" priority="1"/>
                                <failoverdomainnode name="node2" priority="2"/>
                        <ip address="" monitor_link="1"/>
                <service autostart="1" domain="DOMINIOFAIL" exclusive="0" name="
HTTP" recovery="relocate">
                        <apache config_file="conf/httpd.conf" name="http" server
_root="/etc/httpd" shutdown_wait="0"/>
                        <ip ref=""/>
                <service autostart="1" domain="DOMINIOFAIL" exclusive="0" name="
BBDD" recovery="relocate">
                        <mysql config_file="/etc/my.cnf" listen_address="192.168
.1.183" name="mydb" shutdown_wait="0"/>
                        <ip ref=""/>

Linux-cluster mailing list
Linux-cluster redhat com

Offcoures, as you have defined the priority of node1 as 1 and node2 as 2, so node1 is having more priority, so whenever it will be up, it will try to  run the service on itself and so it will relocate the service from node2 to node1.
Rajveer Singh

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