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

Re: [Linux-cluster] sanity check

On Fri, Aug 14, 2009 at 10:23 PM, <jason monsterjam org> wrote:
On Fri, Aug 14, 2009 at 07:12:34PM -0300, crypto grid wrote:
>    Your failover domain includes server1 and server2, and you have two
>    diferent services using the same ip address in the services section. I
>    wonder what happen if you have to realocate just one of the services? I
>    think you couldn't.
>    I think you have to define two different ip addresses in the resource
>    section, one for apache and one for postfix.
>    I'm not saying that this is causing the problem, I'd try disabling one
>    service and enabling just one.

ok, Ive just modified it to be the following config, and it looks like it works fine.
But please tell me if theres anything  else Ive missed.

I don't see anything wrong regarding to the resources and service sections.
After the ip address adition, are the cluster and services working correctly?

thanks for the help!


[jason server1 ~]$ sudo cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="26" name="mycluster">
       <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
               <clusternode name="server1" votes="1">
                               <method name="1">
                                       <device name="apc_power_switch" option="off" port="1" switch="1"/>
                                       <device name="apc_power_switch" option="off" port="2" switch="1"/>
                                       <device name="apc_power_switch" option="on" port="1" switch="1"/>
                                       <device name="apc_power_switch" option="on" port="2" switch="1"/>
               <clusternode name="server2" votes="1">
                               <method name="1">
                                       <device name="apc_power_switch" option="off" port="3" switch="1"/>
                                       <device name="apc_power_switch" option="off" port="4" switch="1"/>
                                       <device name="apc_power_switch" option="on" port="3" switch="1"/>
                                       <device name="apc_power_switch" option="on" port="4" switch="1"/>
       <cman expected_votes="1" two_node="1"/>
               <fencedevice agent="fence_apc" ipaddr="" login="xxxxx" name="apc_power_switch" passwd="xxxx2xxx"/>
                       <failoverdomain name="httpd" ordered="1" restricted="1">
                               <failoverdomainnode name="server1" priority="1"/>
                               <failoverdomainnode name="server2" priority="2"/>
                       <script file="/etc/init.d/httpd" name="cluster_apache"/>
                       <ip address="" monitor_link="1"/>
                       <script file="/etc/init.d/postfix" name="cluster_posstfix"/>
                       <ip address="" monitor_link="1"/>
               <service autostart="1" domain="httpd" name="Apache Service">
                       <script ref="cluster_apache"/>
                       <ip ref=""/>
               <service autostart="1" domain="httpd" name="postfix service">
                       <script ref="cluster_posstfix"/>
                       <ip ref=""/>

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