LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-05-2013, 05:23 AM   #1
Jman-NZ
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Rep: Reputation: Disabled
RHCS Cluster - single ip address


Hi LQ

I have a 2 node RHCS cluster called testcluster. I have configured this in the luci web interface. All good.

NodeA has an ip address 192.168.10.1 - working fine, I can ping the world.
NodeB has an ip address 192.168.10.2 - working fine, I can ping the world.

NodeA is the primary node.

What I want is for testcluster to have a single IP address 192.168.10.3

I will provide a bit more info about what I'm trying to do as it may help:

I have apache running on both nodes. I do all my work on NodeA, and have an rsync process that regularly updated NodeB so the two servers html files are consistent. testcluster resolves to 192.168.10.3. I want to be able to browse to http://testcluster and see my site. If NodeA fails I want to still be able to browse to testcluster.

I think it has to do with setting up an ip adress resource in luci and adding httpd as a cluster service, but I can't figure it out or get it working. Can anyone explain to me in the simplest way possible, what steps I need to take?

Her's my cluster.conf file. As you can see I've added an ip resource but don't know what to do with it now:
<?xml version="1.0"?>
<cluster config_version="7" name="testCluster">
<clusternodes>
<clusternode name="NodeA" nodeid="1"/>
<clusternode name="NodeB" nodeid="2"/>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<rm>
<resources>
<ip address="192.168.10.3/255.255.255.0" sleeptime="10"/>
</resources>
</rm>
</cluster>
 
Old 03-05-2013, 06:13 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
Hi

Open luci , add failover domain and resource . Also share output of clustat command

Thanks
 
1 members found this post helpful.
Old 03-05-2013, 03:36 PM   #3
Jman-NZ
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
I've created a failover domain but still not sure what to do with it - how do I associate the ip address to it?

# clustat
Cluster Status for testCluster @ Wed Mar 6 10:37:20 2013
Member Status: Quorate

Member Name ID Status
------ ---- ---- ------
NodeA 1 Online, Local
NodeB 2 Online


thanks
 
Old 03-05-2013, 10:10 PM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
The servers in the fail over domain , automatically takes over services if one server become down . In your example both server will be in one fail over domain.

A cluster service comprise of resources . IP Address is one of the resource type . So here what you have to do is to create cluster service that comprise a resource of IP address type.

Thanks
 
Old 03-07-2013, 06:15 PM   #5
Jman-NZ
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
I'm still not sure about how to associate an ip address with the cluster or cluster service.
As I said in my OP NodeA has a phyiscal ip address 192.168.10.1 and NodeB has a physical ip address 192.168.10.2. I've also configured in DNS a third ip address of 192.168.10.3 which resolves to tesCluster, the name of my cluster.

Question 1 is when I create the ip address resource, should I be creating it for 192.168.10.1, for 192.168.10.2, for 192.168.10.3 or should I create separate ip address resources for all or some of them?

Question 2 is when I add the ip address resource to the service, do I add just one or more than one ip address to it? I guess the answer to Question 1 will answer Question 2.

Thanks for taking the time to help me.
 
Old 03-08-2013, 08:32 AM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
Create IP address resource for your VIP 192.168.10.3

Thanks
 
Old 03-10-2013, 05:06 PM   #7
Jman-NZ
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
ok so I create eth0:0 with IP address of 192.168.10.3 on NodeA
What do I do on NodeB? Create another VIP with a different ip address? Then do I need to have two ip address resources allocated to the Cluster service?
 
Old 03-12-2013, 07:07 AM   #8
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
VIP is will always be one and same IP Address will exist on both server
 
Old 03-12-2013, 05:18 PM   #9
Jman-NZ
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Do I need to create an actual VIP device as part of the operating system? Or do I only create the VIP as a resource within the cluster config?

So in other words, do I need an /etc/sysconfig/network-scripts/ifcfg-eth0:0 file or not?

thanks
 
Old 03-13-2013, 07:39 AM   #10
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
Just create VIP in cluster config.

Thanks
 
1 members found this post helpful.
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHCS 6 - Sharing IP Address across multiple services davidktw Red Hat 1 11-23-2011 12:51 AM
Getting a single system cluster installed for 32 bit. Burrild Linux - General 2 07-28-2011 09:17 PM
Running a single application on a cluster kumar.manoj412 Linux - Server 7 05-29-2010 07:00 AM
From single server to cluster littlebigman Linux - Server 2 08-25-2008 05:55 AM
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration