Re: sanity check

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

 





On Fri, Aug 14, 2009 at 10:23 PM, <jason@xxxxxxxxxxxxxx> 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


[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"/>
       <clusternodes>
               <clusternode name="server1" votes="1">
                       <fence>
                               <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"/>
                               </method>
                       </fence>
               </clusternode>
               <clusternode name="server2" votes="1">
                       <fence>
                               <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"/>
                               </method>
                       </fence>
               </clusternode>
       </clusternodes>
       <cman expected_votes="1" two_node="1"/>
       <fencedevices>
               <fencedevice agent="fence_apc" ipaddr="192.168.1.8" login="xxxxx" name="apc_power_switch" passwd="xxxx2xxx"/>
       </fencedevices>
       <rm>
               <failoverdomains>
                       <failoverdomain name="httpd" ordered="1" restricted="1">
                               <failoverdomainnode name="server1" priority="1"/>
                               <failoverdomainnode name="server2" priority="2"/>
                       </failoverdomain>
               </failoverdomains>
               <resources>
                       <script file="/etc/init.d/httpd" name="cluster_apache"/>
                       <ip address="192.168.1.9" monitor_link="1"/>
                       <script file="/etc/init.d/postfix" name="cluster_posstfix"/>
                       <ip address="192.168.1.7" monitor_link="1"/>
               </resources>
               <service autostart="1" domain="httpd" name="Apache Service">
                       <script ref="cluster_apache"/>
                       <ip ref="192.168.1.9"/>
               </service>
               <service autostart="1" domain="httpd" name="postfix service">
                       <script ref="cluster_posstfix"/>
                       <ip ref="192.168.1.7"/>
               </service>
       </rm>
</cluster>

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux