LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-10-2008, 10:22 AM   #1
tpe
Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Suse Linux
Posts: 98

Rep: Reputation: 16
Heartbeat Cluster setup. Is it correct?


Hi all,
I try configure a cluster with 2 nodes (server1, server2).
The 2 servers have different applications running on them. Specifically:

Server 1:
Apache/Webmail, Samba
eth0: 10.0.0.1, eth1: 192.168.0.1

Server 2:
Oracle
eth0: 10.0.0.2, eth1: 192.168.0.2

Virtual IP for Apache/Webmail, Samba is 10.0.0.100
Virtual IP for Oracle is 10.0.0.200

Now, what I want, is:
In case server1 fails, server 2 will have to take over all functionality. Thus, in case of server1 failure, server2 will run Apache, Webmail, Postfix, Oracle.

Heartbeat is the package I will use.
I have configured ha on both servers as:

ha.conf:
Code:
auto_failback on
debugfile /var/log/ha/debug
logfile /var/log/ha/log
logfacility     local0
keepalive 60
deadtime 30
udpport 694
udp     eth1
bcat	eth1
ucast   eth1 192.168.0.2
node	SERVER1.ROTA.GR
node	server2.rota.gr
server1's haresources is:
Code:
server1 IPaddr::10.0.0.100/24/eth0 httpd smb
server1's haresources is:
Code:
server2 IPaddr::10.0.0.200/24/eth0 oracle
This will failover services between 2 servers. But, that way, in case of server1 failure, oracle will loose the virtual IP (because ha will assign the new virtual ip to eth0), or apache/smb will loose their virtual ip etc.
How can I have both virtual ips on one server? Can I add a second line to each haresource file with the virtual ip of the other services?

Thank you,
Peter
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
heartbeat cluster help ufmale Linux - Server 3 05-23-2008 07:16 PM
heartbeat cluster delayed response time problem...... raklo Linux - Software 1 02-17-2008 11:07 PM
heartbeat cluster configuration problem!!!!!! raklo Linux - Software 0 01-31-2008 05:43 AM
heartbeat cluster on different subnets blanks Linux - Networking 1 04-03-2007 03:50 PM
High availability Samba cluster DRBD + Heartbeat djalex Linux - Networking 3 09-05-2006 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration