Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 12-17-2007, 05:20 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Post 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.
Old 12-18-2007, 03:11 AM   #2
LQ Newbie
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
What error are you getting exactly? Copy and paste the output
Old 12-18-2007, 07:01 AM   #3
Registered: Jun 2007
Posts: 52

Rep: Reputation: 17
The /etc/cluster/cluster.conf would be of great help.
Old 12-18-2007, 09:40 AM   #4
LQ Newbie
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Originally Posted by elcody02 View Post
The /etc/cluster/cluster.conf would be of great help.
Let me get a copy of it out of the file.

Old 12-18-2007, 10:07 AM   #5
LQ Newbie
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
[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"/>
<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="" monitor_link="1"/>
<service autostart="1" name="AP1">
<script ref="Apache HTTP Server"/>
<fs ref="httpd-content"/>
<ip ref=""/>
[root@rh51test cluster]#

This is my configuration on my first server, the second server has the ip address of 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.
Old 12-18-2007, 07:41 PM   #6
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
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...
Old 12-19-2007, 05:49 AM   #7
Registered: Jun 2007
Posts: 52

Rep: Reputation: 17
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).

Last edited by elcody02; 12-19-2007 at 05:50 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
red hat cluster suite and mysql stefano65 Linux - Enterprise 6 09-12-2010 11:45 AM
red hat cluster suite version 5 renegade7 Linux - Software 0 06-27-2007 10:17 AM
MySQL InnoDB Failover and Red Hat Cluster Suite stefano65 Red Hat 1 11-18-2006 02:35 PM
LXer: Nucleus Software Certifies FinnOne Suite Applications On Red Hat ... LXer Syndicated Linux News 0 09-01-2006 09:33 AM
Installation Oracle 9i Developer Suite on Red Hat Linux 7.3 akamol Linux - Software 3 03-01-2004 05:53 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration