IP failover needed


 
Thread Tools Search this Thread
Special Forums IP Networking IP failover needed
# 1  
Old 06-14-2010
IP failover needed

All,
I am looking to setup a simple IP failover setup, but it seems every place i look has some difficult setup like pacemaker or LVS.

I only want to handle the IP piece to failover a VIP.

Any suggestions? I checked out keepalived and that my work for me.
# 2  
Old 06-14-2010
on solaris i use IPMP... don't know on which OS you are...
# 3  
Old 06-15-2010
Duke, I am going to be using RHEL 5.4

I want to have a VIP and 1 interface on each server.

If the interface on 1 goes down the second server will take over the VIP
# 4  
Old 06-21-2010
I'm not sure if this will work under Linux. I know Cisco routers will do it. Your default route should look something like this.
Code:
Destination     Gateway              Genmask         Flags Metric Ref    Use Iface
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    5      0        0 eth0

Just put the same route in with the secondary NIC as the gateway with a higher metric.

For example a default with failover would look something like this.
Code:
route add default gw xxx.xxx.xxx.xxx dev eth1 metric 100

You'll end up with something like this,
Code:
route -n
Destination     Gateway              Genmask         Flags Metric Ref    Use Iface
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    5      0        0 eth0
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    100    0        0 eth1

The route with the higher metric should only kick in if the lower metric is unavailable.

Hope it helps.
# 5  
Old 06-21-2010
I think a simple mechanism is alright if you perform manual failovers. If you require automated failover imo usually you need some kind of cluster set up to avoid the possibility that two servers serve the same IP address at the same time. (An effective failover usually is easy to set up nowadays if you use virtual machines in clusters with shared storage...)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Apache Mod_Proxy with failover

I have the following setup in my apache vhost: ProxyPass /abc http://www.newest.com/ ProxyPassReverse /abc http://www.newest.com/ I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout... (0 Replies)
Discussion started by: ankur328
0 Replies

2. IP Networking

Interface failover in AIX

Hello, Recent we had oracle clusterware issues which happened because one of the interfaces (eth0) went down on the node and we had a public vip defined on that interface(eth0) since that alos went offline and application went down Is there a way that interface failover happens automatically ... (0 Replies)
Discussion started by: Vishal_dba
0 Replies

3. AIX

Etherchannel failover testing

Hi Guys, I am trying to test an etherchannel failover and switchback. I did failover from primary to backup adapter, but now I am not able to switch it back to primary. phcxxxxx:/ > entstat -d ent4 | grep Active Active channel: backup adapter ... (1 Reply)
Discussion started by: snchaudhari2
1 Replies

4. Gentoo

How to failover the cluster ?

How to failover the cluster ? GNU/Linux By which command, My Linux version 2008 x86_64 x86_64 x86_64 GNU/Linux What are the prerequisites we need to take while failover ? if any Regards (3 Replies)
Discussion started by: sidharthmellam
3 Replies

5. Solaris

Sun Cluster 3.1 failover

Hi, We have two sun SPARC server in Clustered (Sun Cluster 3.1). For some reason, System 1 failed over to System 2. Where can I find the logs which could tell me the reason for this failover? Thanks (5 Replies)
Discussion started by: Mack1982
5 Replies

6. Solaris

EMC Failover

Hi guys, I'm running vxdmp and powerpath at the same time. Vxdmp for internal disks and powerpath for external. The problem is that, on the failover tests which a fiber cable should be removed, the system cannot recognize the disks. Any hints on how to configure powerpath in order to... (4 Replies)
Discussion started by: glenioborges
4 Replies

7. Solaris

IPMP failover: Why is it occurring?

The active NIC has been failing back and forth on two of our T2000s. I don't know when the problem originally began, but I can see failovers in the messages.* files. The network guy says the switches are clean (no errors) so I'm left looking at the configuration or any other issue that may be... (5 Replies)
Discussion started by: dangral
5 Replies

8. AIX

failover on 4.5 hacmp

Hi All, How do I trigger the failover on the second hacmp server? Please give me idea and I will do the rest. Thanks, itik (2 Replies)
Discussion started by: itik
2 Replies

9. UNIX for Advanced & Expert Users

directories failover

Hi, I have 3 directories (/1 /2 and /3) with same contents and want to achieve fail over among them. The Solution i thought of: 1. link /data to /1 (and provide users with /data to access) 2. CRON a script (to run every minute) to verify if /1 exist or not, if it does not exist (or its... (3 Replies)
Discussion started by: prvnrk
3 Replies

10. Solaris

Interfaces do not failover

Would anyone know why a V440 Solaris 9 machine's interfaces (ce0 and ce1) will not failover? Both interfaces are on the same subnet, but different IPs. I can pull the plug on once interface (ce0) and ce1 will be accessible. I can reverse it and pull ce1, and ce0 will NOT be accessible. ... (5 Replies)
Discussion started by: StorageGuy
5 Replies
Login or Register to Ask a Question