LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-25-2007, 07:06 AM   #1
prince amir
Member
 
Registered: Nov 2004
Posts: 30

Rep: Reputation: 15
how to create services in cluster on redha 5 clustering??


Hello all
i need help with a problem that i have with redhat 5 that runing on 2 computers , cluster suite.
i have on both computers , 2 software that are the same
i want to run the cluster and create a service for both computers when one software is stuck or has a problem, the other computer run the script and start the same program
i cant find any documents how to create service and resoucre configuration over CONGA (CLUSTER SUITE )

if some one have any samples for doc i be happy

thanks

Amir
 
Old 09-25-2007, 08:05 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
I would recommend that you modify the cluster.conf manually.

You have to add a ressource script for your application. For example you could use the /etc/init.d scripts for that. However the return value is expected to be zero.

As an example I have added a simple configuration for httpd:

Code:
<?xml version="1.0"?>
<cluster config_version="8" name="atixcluster">
        <cman expected_votes="1" two_node="1"/>
        <fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="host1" votes="1" nodeid="1">
			<fence>
                                <method name="1">
                                        <device name="fence_manual" nodename="host1"/>
                                </method>
                        </fence>
                </clusternode>
        <clusternode name="host2" votes="1" nodeid="2">
		
                        <fence>
                                <method name="1">
                                        <device name="fence_manual" nodename="host2"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <fencedevices>
                <fencedevice agent="fence_manual" name="fence_manual"/>
        </fencedevices>
	<rm>
                <failoverdomains>
                        <failoverdomain name="ALL" ordered="0" restricted="1">
                                <failoverdomainnode name="host1" 
					priority="1"/>
                                <failoverdomainnode name="host2" 
					priority="1"/>
                        	</failoverdomain>
                </failoverdomains>
                <resources>
                        <ip address="10.16.40.150" monitor_link="yes"/>
                        <script file="/etc/init.d/httpd" name="apache"/>
                </resources>
                <service name="web" autostart="1" domain="ALL">
                        <ip ref="10.16.40.150"/>
                        <script ref="apache"/>
                </service>
        </rm>
</cluster>

Last edited by brianmcgee; 09-25-2007 at 08:07 AM.
 
Old 09-25-2007, 11:15 AM   #3
prince amir
Member
 
Registered: Nov 2004
Posts: 30

Original Poster
Rep: Reputation: 15
tools

is there another tool that i can use to edit the conf file
im pretty new in this matter and i need help in this subject
 
Old 09-26-2007, 12:52 AM   #4
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
There is also the cluster administration gui system-config-cluster. As this tool is used in earlier Red Hat releases it is more reliable than the new browser based configuration tools. However you will learn much more if you take the time to study the cluster.conf manually. There is always the chance, that system-config-clusters does not recognize your old settings...
 
  


Reply



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
Problem create redhat clustering- error prince amir Linux - Server 2 08-30-2007 01:39 AM
RHEL with Cluster services: can I use LVM? mjgsantos Linux - Enterprise 7 08-15-2006 08:02 AM
Need: HA Qmail Cluster Services & Webmail mlewis Linux - Enterprise 0 04-15-2006 06:47 AM
Create clustering of two linux with shared array manstt Linux - Enterprise 2 11-23-2005 02:13 AM
Monitoring a cluster thru web services nedian123 Linux - Networking 1 12-22-2004 02:40 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:12 PM.

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