LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Heartbeat Cluster setup. Is it correct? (https://www.linuxquestions.org/questions/linux-server-73/heartbeat-cluster-setup-is-it-correct-654875/)

tpe 07-10-2008 10:22 AM

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


All times are GMT -5. The time now is 10:13 AM.