LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to use Red Hat Cluster Suite for Apache (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-use-red-hat-cluster-suite-for-apache-607447/)

guages7 12-17-2007 04:20 PM

How to use Red Hat Cluster Suite for Apache
 
I am trying to setup up a Apache (fail-over) cluster however I receive the following errors while try to start.

I have the Cluster suite installed on RHEL5.1 Server, I am using the GUI tool, system-config-cluster to start the tool to add my information in.

I have two servers, all I want this Cluster suite to do is pick up if the other service dies (apache) on one of them.

Does anyone have any suggestions on how to get this going, I have configure the GUI tool and I get errors (Unable to connect to cluster infrastructure). And when I start the GUI tool, I get (because node is not part of cluster, the management tab is not available).

Any help would be greatly appreciated.

lncube 12-18-2007 02:11 AM

What error are you getting exactly? Copy and paste the output

elcody02 12-18-2007 06:01 AM

The /etc/cluster/cluster.conf would be of great help.

guages7 12-18-2007 08:40 AM

Quote:

Originally Posted by elcody02 (Post 2994511)
The /etc/cluster/cluster.conf would be of great help.

Let me get a copy of it out of the file.


Thanks

guages7 12-18-2007 09:07 AM

[root@rh51test cluster]# cat cluster.conf
<?xml version="1.0" ?>
<cluster config_version="2" name="apache1">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes/>
<cman/>
<fencedevices/>
<rm>
<failoverdomains/>
<resources>
<script file="/etc/rc.d/init.d/httpd" name="Apache HTTP Server"/>
<fs device="/dev/hda6" force_fsck="0" force_unmount="0" fsid="6443" fstype="ext3" mountpoint="/var/www/html/" name="httpd-content" options="" self_fence="0"/>
<ip address="10.10.10.145" monitor_link="1"/>
</resources>
<service autostart="1" name="AP1">
<script ref="Apache HTTP Server"/>
<fs ref="httpd-content"/>
<ip ref="10.10.10.145"/>
</service>
</rm>
</cluster>
[root@rh51test cluster]#


This is my configuration on my first server, the second server has the ip address of 10.10.10.146 and I want it to be if the first server went down the second server would pick up. However when I set up the second server I get connection failed errors.

rhbegin 12-18-2007 06:41 PM

I figured it out, I configured the first server and scp'd the file to the second server.

I am able to unplug one of them now and it fails over, however I am having difficulty with the first server, got some kinks to work out. I totally redid my configuration and I got luci running so I can bring up https://servername:8084 in a browser and do configuration and restart services.

If anyone ever needs a hand on this let me know...

elcody02 12-19-2007 04:49 AM

I would say, as long as don't have any nodes defined (see clusternodes tag) you will have no success getting up the cluster. Also a failoverdomain is missing for the failover.

And last but not least don't forget to configure fencing. You are using a local filesystem and risc inconstencies when not having it.

And I also doubt that the filesystem is shared isn't it (/dev/hda is ide and therefore not shared).


All times are GMT -5. The time now is 03:14 AM.