[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

redhat cluster configuration with multiple IP connections and bonding

Posted on 2011-04-29
8
Medium Priority
?
1,149 Views
Last Modified: 2013-12-06
Hi All,

I have a Cluster in a lab setup, the cluster config is based on CentOS 5.6 (all the latest updates).
At the moment it fails over with a single IP and has MySQL, Samba and Apache services. I have included a diagram hopefully showing the setup at the moment.

I need to add a new network configuration so that there is a bonded network (2 interfaces) which go to separate switches, this will be to provide full 100MB network connectivity to various sites around the UK.

This means that there will be 2 networks, one of these is bonded and connected to 2 separate network switches, the other is just a plain single network interface. Both setups need to have IP Failover working.

Has anyone got any ideas how I can configure this setup.


lab-cluster.png
0
Comment
Question by:jools
  • 5
  • 3
8 Comments
 
LVL 11

Expert Comment

by:jgiordano
ID: 35491315
Do you still need to have the single network cable as a monitored resource?
0
 
LVL 19

Author Comment

by:jools
ID: 35491557
Not entirely sure what you mean (learning RHCS as I go). Would all the Networks need to be montiored anyway?

The diagram shows the existing network connection, this is currently monitored.

I need to add to this an additional network which uses 2 nics connected to 2 switches and has a single IP Address, I believe this is done by bonding but it may require some additional configuration in RHCS.

We are currently using a Windows server which has team'd NIC's, the lab system is an attempt to have these clustered in a linux environment as the current storage configuration prohibits using a windows clustered setup.

0
 
LVL 11

Expert Comment

by:jgiordano
ID: 35491786
usually what I do is I set up 2 X bonded interfaces. The first bond0 is for cluster communication and the second bond1 is the actual monitored IP that will fail over.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 19

Author Comment

by:jools
ID: 35493992
So in my case, the monitored link will be the new bonded interface and the unmonitored interface will now be the existing link.

Is there any way of configuring 2 monitored links so I can have 2 ip fail over addresses?

0
 
LVL 19

Author Comment

by:jools
ID: 35494059
How does clusters know which interface to assign the failover IP address to?

I cant see anything specific in the clusters.conf file.
0
 
LVL 11

Accepted Solution

by:
jgiordano earned 1000 total points
ID: 35494383
If they are both on the same subnet this will be an issue, if not the intelligence is built in to say I want ip address 192.168.4.25 monitored and used. I have

eth0 is 192.168.3.1x on both nodes

bond0 is 192.168.4.1x on both nodes

It should use bond0 since it won't be able to actually bring the virtual IP up on eth0


0
 
LVL 19

Author Comment

by:jools
ID: 35494789
OK, I just found out the monitored IP uses the interface releated to the FQDN so there can be only one monitored IP, in which case I'll have to use the bonded interface as the monitored link and just use the other interfaces for management stuff.

The networks are all on separate subnets so that wont be the issue.

I need to rethink the network side of things to make sure that the failover occurs on the correct network.

In the case of bonding, are there going to be any issues patching to 2 separate switches. The idea of this is to provide fault tolerance. I've never bonded interfaces before so I don't know if there are going to be any gotchas or if there is a specific bonding configuration I need to do (if there is such a thing).

0
 
LVL 19

Author Closing Comment

by:jools
ID: 35780707
I sort of managed to get the answer myself and have since had to delete the Cluster from the lab hardware. However, you did give some pointers.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question