[Linux-cluster] sanity check
crypto grid
cryptogrid at gmail.com
Mon Aug 17 22:11:01 UTC 2009
On Fri, Aug 14, 2009 at 10:23 PM, <jason at 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
>
>
> [jason at 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 at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090817/70751f6e/attachment.htm>
More information about the Linux-cluster
mailing list